exposure.setCurrent()

Description

Sets the exposure for the current camera.

Syntax

DCSObject.camera.exposure.setCurrent(exposure);

Parameters

<long> exposure: Specifies the exposure setting, in log base 2 seconds. In other words, for values less than zero, the exposure time is 1/2^n seconds, and for values zero or above, the exposure time is 2^n seconds. For example:

Value Seconds
-3 1/8
-2 1/4
-1 1/2
0 1
1 2
2 4

Return value

bool

true indicates success. false indicates failure.

Remarks

The method should be called after camera.selectCamera(). If there is only one data source available, it will be selected automatically.

Please make sure to use a exposure that the current camera supports.

Example

             DCSObject.camera.selectCamera("Integrated Camera");
             DCSObject.camera.exposure.getMin();  //Check the minimum value of exposure
             DCSObject.camera.exposure.getMax();  //Check the maximum value of exposure
             DCSObject.camera.exposure.setCurrent(-10);  // Set the exposure for the current camera.
      

See also

.camera.exposure.getCurrent()
.camera.exposure.getDefault()
.camera.exposure.getMin()
.camera.exposure.getMax()
.camera.exposure.getIfAuto()
.camera.exposure.setIfAuto()
.camera.exposure.getIfDefaultAuto()

Is this page helpful?

Leave a Reply

Your email address will not be published.