Every camera can be controlled from within a macro by changing its properties. There is a CameraGet_* and CameraSet_* macro function available for each camera property (e.g. CameraGet_Exposure
and CameraSet_Exposure
). The number of functions (beginning with CameraSet_ and CameraGet_) and their actual names depend on the type of camera(s) you have currently connected to NIS-Elements.
The CameraGet_... functions retrieve current values of the properties determined by the function name postfix. So the CameraGet_Exposure(int CameraPropMode, double *CameraPropLpDblParam);
function retrieves the current value of exposure of the specified Mode.
The CameraSet_... functions allows you to adjust camera properties. So the CameraSet_Exposure(int CameraPropMode, double CameraPropDblParam);
function sets a new Exposure value for the specified Mode.
How To Set Camera Properties
Instead of describing each property function, it is better to show you a universal way to handle a camera by macro:
Display the View > Acquisition Controls > [Camera name] Settings
control panel and find the property you would like to control.
Make a change of the property from within the control panel. For example, change the exposure time.
Display the View > Macro Controls > Command History
window and see the last function which has been called and its parameters (e.g. CameraSet_Exposure(1, 500);). This is the function you will control the exposure time with.
Experiment with the camera control panel in order to determine the right parameter values of the functions to be called within your macro.