IVideoV2Gain Property

Index into the Gains array for the selected camera gain.

Definition

Namespace: ASCOM.DeviceInterface
Assembly: ASCOM.DeviceInterfaces (in ASCOM.DeviceInterfaces.dll) Version: 7.1.3+4851.c5da65c2b
C#
short Gain { get; set; }

Property Value

Int16
Short integer index for the current camera gain in the Gains string array.

Return Value

Int16
Index into the Gains array for the selected camera gain

Remarks

Gain can be used to adjust the gain setting of the camera, if supported. There are two typical usage scenarios:
  • Discrete gain video cameras will return a 0-based array of strings - Gains, which correspond to different discrete gain settings supported by the camera. Gain must be set to an integer in this range. GainMin and GainMax must thrown an exception if this mode is used.
  • Adjustable gain video cameras - GainMin and GainMax return integers, which specify the valid range for Gain.

The driver must default Gain to a valid value.

Exceptions

InvalidValueExceptionMust throw an exception if not valid.
PropertyNotImplementedExceptionMust throw an exception if gain is not supported.
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.

Revision History

DateVersionDescription
IVideoPlatform 6.1Member added.

See Also