QuercusVL Programming Manual
5, only the first numRedLights positions will be written. The detectors will be located
following the same configuration order . Possible values: 0 “red state”, other value “any
other state”.
int *inputValues:
status of the 2 digital inputs. Each one of the first 2 bits corresponds
to the status of an input, being the least significant bit for the input zero. Possible
values: 1 enabled, 0 disabled.
int *outputValues
: status of the 8 digital outputs. Each one of the first 8 bits
corresponds to the status of an output, being the least significant bit for the output
zero. Possible values: 1 enabled, 0 disabled.
In C, the parameter “h” is a handler of unit (Unit).
●
ActivateOutput
C++:
bool ActivateOutput(int bit, int time)
C:
int VL_Unit_ActivateOutput(int h, int bit, int time)
Enables the digital output “bit” for the “time” specified in milliseconds.
In C, the parameter “h” is a handler of unit (Unit).
●
GetIOValues
C++:
bool GetIOValues(int &inputValues,int &outputValues)
C:
int VL_Unit_GetIOValues(int h, int *inputValues, int *outputValues)
Informs about the status of the digital inputs and outputs. Each one of the first 2 bits of
intputValues and 8 bits of outputValues corresponds to the status of an input/output,
being the least significant bit for the input/output zero. Possible values: 1 enabled, 0
disabled.
Returns true if answered successfully, and false otherwise.
In C, the parameter “h” is a handler of unit (Unit).
●
GetVersion
C++:
VersionInformation GetVersion()
C:
int Unit_GetVersion(int h)
Returns the firmware version of the unit.
In C, the parameter “h” is a handler of unit (Unit).
Quercus Technologies
36