Click or drag to resize

ICameraV3StartExposure Method

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

Namespace:  ASCOM.DeviceInterface
Assembly:  ASCOM.DeviceInterfaces (in ASCOM.DeviceInterfaces.dll) Version: 3351c4f3fa64146a7efd5b51ed4591e32a0a5484
Syntax
void StartExposure(
	double Duration,
	bool Light
)

Parameters

Duration
Type: SystemDouble
Duration of exposure in seconds, can be zero if Light is false
Light
Type: SystemBoolean
true for light frame, false for dark frame (ignored if no shutter)
Exceptions
ExceptionCondition
InvalidValueExceptionNumX, NumY, BinX, BinY, StartX, StartY, or Duration parameters are invalid.
InvalidOperationExceptionCanAsymmetricBin is false and BinX != BinY
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 a MethodNotImplementedException.

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.

See Also