User Guide

273
Standard NetLinx API (SNAPI) R 1.8.0
VCR Functions (Cont.)
Name Component Channel Level Command Constant Notes
processDebugEvent(int) IModuleComponentListener DEBUG-<state> Debug state changed where <state> is 1-4
for ERROR, WARNING, DEBUG, INFO
processDeviceOnLineEvent(boolean) IModuleComponentListener 251 DEVICE_COMMUNICATING Feedback Channel: Communication is
established with device while channel is on
processPassbackEvent(byte[]) IModuleComponentListener When passback is on, each string received
form the device is sent to the NetLinx pro-
gram as a string. Use a DATA_EVENT
event with a STRING handler to caputre
the data from the device.
cyclePower() IPowerComponent 9 POWER Momentary Function Channel: Cycle power
when channel is activated
setPower(ON) IPowerComponent 27 PWR_ON Momentary Function Channel: Power is
turned on when channel is activated
setPower(OFF) IPowerComponent 28 PWR_OFF Momentary Function Channel: Power is
turned off when channel is activated
setPower(ps) IPowerComponent 255 POWER_ON Discrete Function Channel: Power is on
while channel is active
setPowerSensor(nld,nIOChan) IPowerComponent IOLINK-<dps>,<chan-
nel>
Associate a Power Sensor with the device
where <dps> is the DPS in string form, i.e.
17:1:0, and <channel> is the channel on
the IO device to which the power sensor is
connected.
processPowerEvent(ON) IPowerComponentListener 255 POWER_FB Feedback Channel: Power state changed,
power is on while channel is on
cycleInputSource() ISourceSelectComponent 196 SOURCE_CYCLE Momentary Function Channel: Cycle input
source when channel is activated
getInputCount() ISourceSelectComponent ?INPUTCOUNT Query for the number of inputs
getInputGroupSelect() ISourceSelectComponent ?INPUTGROUPSE-
LECT
Query for currently selected input group
getInputProperties() ISourceSelectComponent ?INPUTPROPERTIES Query for the properties of all inputs
getInputProperty(index) ISourceSelectComponent ?INPUTPROPERTY Query for the properties of a specific input
getInputSelect() ISourceSelectComponent ?INPUTSELECT Query for currently selected input
getInputSource() ISourceSelectComponent ?INPUT Query current input, responds with INPUT-
<sourceSelect>,<inputNumber> where
<sourceSelect> is RGB,SVIDEO,COM-
POSITE,COMPO-
NENT,DVI,HDMI,SDI,VGA,AUDIO,AUXILIA
RY,CABLE,CAM-
ERA,CD,DVD,FRONT,HDTV,LASER-
DISC,LINE,MEDIAPLAYER,MINIDISC,PH
ONO,SATEL-
LITE,TAPE,TUNER,TV,VCR,VIDEO and
<inputNumber> is the instance number of
the source select