Starts an exposure. Use ImageReady to check when the exposure is complete.

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

Syntax

C#
public void StartExposure(
	double Duration,
	bool Light
)
Visual Basic
Public Sub StartExposure ( _
	Duration As Double, _
	Light As Boolean _
)
Visual C++
public:
virtual void StartExposure(
	double Duration, 
	bool Light
) sealed

Parameters

Duration
Type: System..::..Double
Duration of exposure in seconds, can be zero if Light is false
Light
Type: System..::..Boolean
True for light frame, False for dark frame (ignored if no shutter)

Implements

ICameraV2..::..StartExposure(Double, Boolean)

Remarks

A dark frame or bias exposure may be shorter than the V2 ExposureMin value and for a bias frame can be zero. Check the value of Light and allow exposures down to 0 seconds if Light is False. If the hardware will not support an exposure duration of zero then, for dark and bias frames, set it to the minimum that is possible.

Some applications will set an exposure time of zero for bias frames so it's important that the driver allows this.

Exceptions

ExceptionCondition
ASCOM..::..InvalidValueExceptionNumX, NumY, BinX, BinY, StartX, StartY, or Duration parameters are invalid.
ASCOM..::..InvalidOperationExceptionCanAsymmetricBin is False and BinX != BinY
ASCOM..::..NotConnectedExceptionthe exposure cannot be started for any reason, such as a hardware or communications error

See Also