Registers, Data Formats, & Queries Appendix D
D-4 NetScan Users Manual
Example 3:
Example shows how to read only the Last readings.
PRINT#1,"F0,0 Q1,1,0,0, 0X" Set format to ASCII degrees C with
HLL terminator of CR LF/ EOI
PRINT#1,"C1-4,1X" Configure four channel (no setpoints)
.
.
.
Configure and start the acquisition
PRINT#1,"U13X" Just get the Last channel readings
INPUT #1, A$ Get Last reading for channel 1
PRINT A$ Screen shows....
+0950.30
INPUT #1, A$ Get Last reading for channel 2
PRINT A$ Screen shows....
+0250.60
INPUT #1, A$ Get Last reading for channel 3
PRINT A$ Screen shows....
-0050.80
INPUT #1, A$ Get Last reading for channel 4
PRINT A$ Screen shows....
+0010.90
Notice that since a HLL response terminator was specified that each channel’s Last reading had to be ENTERed
separately.
Example 4:
This example is the same as the previous, except no HLL response terminators are specified and the format has
been changed to °F.
PRINT#1,"F1,0 Q1,0,0,0, 0X" Set format to ASCII degrees F with
HLL terminator of None
PRINT#1,"C1-4,1X" Configure four channel (no setpoints)
.
.
. Configure and start the acquisition
PRINT#1,"U13X" Just get the Last channel readings
LINE INPUT#1, A$ Get Last readings for channels 1-4
PRINT A$ Screen shows....
+1743.08+0483.08- 0059.44+0051.62
Notice that there are no HLL channel terminators and that the readings are now in °F.
Example 5:
Example 5 shows how changing the channel type can effect the output of HLL queries.
PRINT#1,"F0,0 Q1,0,0,0, 0X" Set format to ASCII degrees C with HLL terminator of None.
PRINT#1,"C1-4,11X" Configure four channel
(no setpoints) to VOLTS
.
.
.
Configure and start the acquisition
PRINT#1,"U13X" Just get the Last channel readings
LINE INPUT#1, A$ Get Last reading for channels 1-4
PRINT A$ Screen shows....
+000.0045603+000.0000895- 000.00800870+000.0090865
Notice that even though the format was degrees C since the cha nnels have been configured to be VOLTS
channels, the response is in VOLTS.