User Guide

49
Standard NetLinx API (SNAPI) R 1.8.0
Camera
ICameraComponent
ICameraComponentListener
IModuleComponent
IModuleComponentListener
IPowerComponent
IPowerComponentListener
Name: Camera
Interface: ICamera
Camera Functions
Name Component Channel Level Command Constant Notes
cycleAutoFocus() ICameraComponent 172 AUTO_FOCUS Momentary Function Channel: Cycle auto
focus when channel is activated
cycleAutoIris() ICameraComponent 173 AUTO_IRIS Momentary Function Channel: Cycle auto
iris when channel is activated
cycleCameraPreset() ICameraComponent 177 CAM_PRESET Momentary Function Channel: Cycle cam-
era preset when channel is activated
getCameraComponentCount() ICameraComponent ?CAMERACOMPO-
NENTCOUNT
Query for number of camera components
getCameraPreset() ICameraComponent ?CAMERAPRESET Query for camera preset, responds with
CAMERAPRESET-<preset>
getCameraPresetCount() ICameraComponent ?CAMERAPRESET-
COUNT
Query for number of camera presets
getCameraPresetProperties() ICameraComponent ?CAMERAPRESET-
PROPERTIES
Query for properties of all camera presets
getCameraPresetProperty(index) ICameraComponent ?CAMERAPRESET-
PROPERTY
Query for properties of specific camera pre-
set
saveCameraPreset(preset) ICameraComponent CAMERAPRESET-
SAVE-<preset>
Save Camera Preset where <preset> is 1
to x and x is the maximum supported pre-
set (see specific module documentation)
setAutoFocusOn(state) ICameraComponent 162 AUTO_FOCUS_ON Discrete Function Channel: Auto focus is
on while channel is active
setAutoIrisOn(state) ICameraComponent 163 AUTO_IRIS_ON Discrete Function Channel: Auto iris is on
while channel is active
setCameraPreset(preset) ICameraComponent CAMERAPRESET-
<preset>
Recall camera preset where <preset> is 1-
x and x is the maximum supported preset
(see specific module documentation)
setFocus(focus) ICameraComponent 16 FOCUS_LVL Set focus position, range is 0-255 (0=near)
setFocusRamp(NEAR) ICameraComponent 160 FOCUS_NEAR Ramping Channel: Focus is ramped near
while channel is active
setFocusRamp(FAR) ICameraComponent 161 FOCUS_FAR Ramping Channel: Focus is ramped far
while channel is active