ShutterState
public enum ShutterState
Position of the camera's internal shutter (flag).
A cycle runs ShutterState.Open, ShutterState.Closing, ShutterState.Closed, ShutterState.Opening, ShutterState.Open.
Not every camera distinguishes the transitional states. Drive a display from ShutterState.Open and ShutterState.Closed alone if it has to work on every model, and treat the rest as detail when it arrives.
The two transitional states are not symmetric, which matters if you are timing a cycle rather than drawing an iris. ShutterState.Closing is the command: it is raised when the shutter is told to close, before the hardware has confirmed anything. ShutterState.Opening is an observation: it is raised when the flag reports itself open again, which happens well after the reopen was commanded. So ShutterState.Closing to ShutterState.Closed measures how long the shutter took to answer, while ShutterState.Opening to ShutterState.Open measures only how long the SDK then took to resume delivering frames.
| Value | ||
|---|---|---|
Initializing |
0 |
The startup calibration the camera runs after connecting. |
Open |
1 |
Open: the sensor is looking at the scene. |
Closed |
2 |
Closed: the sensor is looking at the shutter. |
Opening |
3 |
The flag has reported itself open again, but frames have not resumed yet. |
Closing |
4 |
Commanded closed, not yet confirmed. |
Error |
5 |
The cycle did not complete: the shutter never reported the state it was asked for. |