Sensoray 518 User Manual
Page 22

21
Read Data From All Channels
This command returns the most recent sensor data from all eight channels, starting with channel
0. Data is returned from all eight channels, including disabled channels.
Sensor data is scaled as a function of the declared sensor type connected to each channel. Refer
to the Sensor Data section for a list of sensor data scalars. In the case of disabled channels, the
returned value is meaningless.
COMMAND: (88)
RESPONSE: (CH0 MSB), (CH0 LSB),
(CH1 MSB), (CH1 LSB),
(CH2 MSB), (CH2 LSB),
(CH3 MSB), (CH3 LSB),
(CH4 MSB), (CH4 LSB),
(CH5 MSB), (CH5 LSB),
(CH6 MSB), (CH6 LSB),
(CH7 MSB), (CH7 LSB)
EXAMPLE:
‘ Read sensor data from all eight 518 channels into a linear array.
SUB Read8Channels (BasePort%, DataArray%())
CALL Send518byte (BasePort%, 88) ‘send command to 518
FOR Channel% = 0 TO 7 ‘read scaled data from 518 into array
DataArray%(Channel%) = Read518word (BasePort%)
NEXT Channel%
END SUB