Click or drag to resize
IVideoCameraState Property
Returns the current camera operational state.

Namespace: ASCOM.DeviceInterface
Assembly: ASCOM.DeviceInterfaces (in ASCOM.DeviceInterfaces.dll) Version: 6.0.0.0 (6.2.0.2774)
Syntax
VideoCameraState CameraState { get; }

Property Value

Type: VideoCameraState
The state of the camera.
Exceptions
ExceptionCondition
NotConnectedExceptionMust return an exception if the camera status is unavailable.
Remarks

Must be implemented, must not throw an ASCOM.PropertyNotImplementedException.

Returns one of the following status information:
  • 0 CameraRunning The camera is running and video frames are available for viewing and recording
  • 1 CameraRecording The camera is running and recording a video
  • 2 CameraError Camera error condition serious enough to prevent further operations (connection fail, etc.).

CameraIdle and CameraBusy are optional states. Free running cameras cannot be stopped and don't have a CameraIdle state. When those cameras are powered they immediately enter CameraRunning state. Some digital cameras or vdeo systems may suport operations that take longer to complete. Whlie those longer operations are running the camera will remain in the state it was before the operation started.

The video camera state diagram is shown below:

See Also