Maximum value of Gain

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

Syntax

C#
short GainMax { get; }
Visual Basic
ReadOnly Property GainMax As Short
	Get
Visual C++
property short GainMax {
	short get ();
}

Field Value

Short integer representing the maximum gain value supported by the camera.

Return Value

The maximum gain value that this camera supports

Remarks

May throw a PropertyNotImplementedException if GainMax is not supported by the camera..

When specifying the gain setting with an integer value, GainMax is used in conjunction with GainMin to specify the range of valid settings.

GainMax shall be greater than GainMin. If either is available, then both must be available.

Please see Gain for more information.

It is recommended that this function be called only after a connection is established with the camera hardware, to ensure that the driver is aware of the capabilities of the specific camera model.

This is only available for the Camera Interface Version 2

Exceptions

ExceptionCondition
PropertyNotImplementedExceptionMust throw an exception if GainMax is not supported
NotConnectedExceptionMust throw an exception if the information is not available. (Some drivers may require an active connection in order to retrieve necessary information from the camera.)

See Also