Click or drag to resize

IVideoCameraState Property

Returns the current camera operational state.

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

Property Value

Type: VideoCameraState
The state of the camera.
Exceptions
ExceptionCondition
NotConnectedExceptionIf the device is not connected
DriverExceptionAn error occurred that is not described by one of the more specific ASCOM exceptions. Include sufficient detail in the message text to enable the issue to be accurately diagnosed by someone other than yourself.
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