User Guide

21
Standard NetLinx API (SNAPI) R 1.8.0
Camera
Component
Name: Camera
Interface: ICameraComponent
ICameraComponent
Component Functions:
Name: Channel: Level: Command: Constant: Notes:
cycleAutoFocus() 172 AUTO_FOCUS Momentary Function Channel: Cycle auto focus when channel is activated
cycleAutoIris() 173 AUTO_IRIS Momentary Function Channel: Cycle auto iris when channel is activated
cycleCameraPreset() 177 CAM_PRESET Momentary Function Channel: Cycle camera preset when channel is activated
getCameraComponent-
Count()
?CAMERACOMPONENTCOUNT Query for number of camera components
getCameraPreset() ?CAMERAPRESET Query for camera preset, responds with CAMERAPRESET-<preset>
getCameraPresetCount() ?CAMERAPRESETCOUNT Query for number of camera presets
getCameraPresetProper-
ties()
?CAMERAPRESETPROPERTIES Query for properties of all camera presets
getCameraPresetProp-
erty(index)
?CAMERAPRESETPROPERTY Query for properties of specific camera preset
saveCameraPreset(pre-
set)
CAMERAPRESETSAVE-<preset> Save Camera Preset where <preset> is 1 to x and x is the maximum supported preset
(see specific module documentation)
setAutoFocusOn(state) 162 AUTO_FOCUS_ON Discrete Function Channel: Auto focus is on while channel is active
setAutoIrisOn(state) 163 AUTO_IRIS_ON Discrete Function Channel: Auto iris is on while channel is active
setCameraPreset(pre-
set)
CAMERAPRESET-<preset> Recall camera preset where <preset> is 1-x and x is the maximum supported preset
(see specific module documentation)
setFocus(focus) 16 FOCUS_LVL Set focus position, range is 0-255 (0=near)
setFocusRamp(FAR) 161 FOCUS_FAR Ramping Channel: Focus is ramped far while channel is active
setFocusRamp(NEAR) 160 FOCUS_NEAR Ramping Channel: Focus is ramped near while channel is active
setFocusSpeed(speed) 19 FOCUS_SPEED_LVL Set focus speed, range is 0-255 (0=slow)
setIris(iris) 17 IRIS_LVL Set iris position, range is 0-255 (0=closed)
setIrisRamp(CLOSE) 175 IRIS_CLOSE Ramping Channel: Iris is ramped closed while channel is active
setIrisRamp(OPEN) 174 IRIS_OPEN Ramping Channel: Iris is ramped open while channel is active
setIrisSpeed(speed) 20 IRIS_SPEED_LVL Set iris speed, range is 0-255 (0=slow)
setPan(pan) 27 PAN_LVL Set pan position, range is 0-255 (0=left)
setPanRamp(LEFT) 134 PAN_LT Ramping Channel: Pan is ramped left while channel is active
setPanRamp(RIGHT) 135 PAN_RT Ramping Channel: Pan is ramped right while channel is active
setPanSpeed(speed) 29 PAN_SPEED_LVL Set pan speed, range is 0-255 (0=slow)
setTilt(tilt) 28 TILT_LVL Set tilt position, range is 0-255 (0=down)