101
General Information Methods
AllState_Get ( )
AllState_Get ( )
AllState_Get ( )
AllState_Get ( )
Returns the entire hardware state
Syntax
HRESULT AllState_Get(
[out, retval] VARIANT* Array
);
Parameters
Array
[out, retval] Array representing entire hardware state.
Remarks
The array is filled as follows. Each port value is separated from the next port value by a comma.
Element
#
Field
Type
Example
0
Date
DATE
1
Serial Rcv Buffer
Count
BSTR
“0,1092”
(Elements 2-7 pertain to the WACI NX+ only.)
2
Relays
BSTR
“1,0,0,1”
3
DIO IsOutput
BSTR
“0,1,0,0”
4
DIO State
BSTR
“1,1,1,1”
5
DIO Is Pulled Up
BSTR
“1,0,0,0”
6
AD Digital Readings
BSTR
“128,54,2096,8194”
7
AD Voltages
BSTR
“0.2,0,1.2,2.4”
GetMachineType ( )
GetMachineType ( )
GetMachineType ( )
GetMachineType ( )
Returns the type of WACI, either Plus or Junior
Syntax
HRESULT GetMachineType(
[out, retval] long* Type
);
Parameters
Type
[out, retval] The parameter returns 1 for a WACI Plus and 2 if the device is a WACI NX Jr.
Ge
Ge
Ge
GetFirmwareVersion ( )
tFirmwareVersion ( )
tFirmwareVersion ( )
tFirmwareVersion ( )
Returns a string containing the version information about the firmware loaded into the WACI.