AIO_InW Function

Reads analog value from optional analog I/O input channel.

Syntax
AIO_InW(Channel Number)

Parameters

Channel Number
Specify the channel number of the analog I/O.

Return Values
Returns the input states (long integers from 0 to 65535) of specified analog I/O channel.

The following table shows input voltage (current) and return value of each input channel according to input range configuration of analog I/O board.

Input Data Input Range Configuration
Hexadecimal Decimal ±10.24(V) ±5.12(V) 0-5.12(V) 0-10.24(V) 0-24(mA)
0xFFFF 65535 10.23969 5.11984 5.12000 10.24000 24.00000
0x8001 32769 0.00031 0.00016 2.56008 5.12016 12.00037
0x8000 32768 0.00000 0.00000 2.56000 5.12000 12.00000
0x0000 0 -10.24000 -5.12000 0.00000 0.00000 0.00000

See Also
AIO_In Function, AIO_Out, AIO_OutW, AIO_Out Function, AIO_OutW Function, AIO_Set, Wait

AIO_In Function Example

Long word0

word0 = AIO_InW(1)