Returns the current camera operational state.

Namespace: ASCOM.DeviceInterface
Assembly: ASCOM.DeviceInterfaces (in ASCOM.DeviceInterfaces.dll) Version: 6.0.0.0 (6.1.1.2619)

Syntax

C#
VideoCameraState CameraState { get; }
Visual Basic
ReadOnly Property CameraState As VideoCameraState
	Get
Visual C++
property VideoCameraState CameraState {
	VideoCameraState get ();
}

Field Value

The state of the camera.

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:

Exceptions

ExceptionCondition
NotConnectedExceptionMust return an exception if the camera status is unavailable.

See Also