beautypg.com

Sensoray 7429 User Manual

Page 21

background image

Read Data

This command returns the most recently measured sensor data from the specified chan-
nel. The returned value is scaled according to the declared sensor type. Regardless of
sensor type, the returned value is always represented in 16-bit two's complement form.
Refer to the sensor tables near the end of this manual for a description of the data format
used by each sensor type.

COMMAND:

(CHAN)

RESPONSE:

(HIGH DATA),(LOW DATA)

Example: Channel 6 is configured for the 5 Volt measurement range. This se-
quence will read and display the channel 6 voltage:

CALL SendByte (6)'opcode + channel
PRINT ReadWord% * .0002; " volts"

Example: Channel 0 is configured as a 350¾ strain gage rated at 2.7 mV/V at 150
PSI. Data scaling is programmed to 0.1 psi/bit. A suitable program segment to read
and display channel 0 data:

CALL SendByte (0)'opcode + channel
PRINT ReadWord% * .1; " PSI"

This manual is related to the following products: