Registers, Data Formats, & Queries
Example 3:
Example shows how to read only the Last readings.
PRINT#1,"OUTPUT07 F0,0 Q1,1,0,0, 0X" ' Set format to ASCII degrees C with
PRINT#1,"OUTPUT07 C1-4,1X"
.
.
.
PRINT#1,"OUTPUT07; U13X"
PRINT#1,"ENTER07"
INPUT
A$
PRINT
A$
+0950.30
PRINT#1,"ENTER07"
INPUT A$
PRINT A$
+0250.60
PRINT#1,"ENTER07"
INPUT A$
PRINT A$
-0050.80
PRINT#1,"ENTER07"
INPUT A$
PRINT A$
+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,"OUTPUT07 F1,0 Q1,0,0,0, 0X"
PRINT#1,"OUTPUT07 C1-4,1X"
.
.
.
PRINT#1,"OUTPUT07; U13X"
PRINT#1,"ENTER07"
PRINT A$
+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,"OUTPUT07 F0,0 Q1,0,0,0, 0X"
PRINT#1,"OUTPUT07 C1-4,11X"
.
.
.
PRINT#1,"OUTPUT07; U13X"
PRINT#1,"ENTER07"
PRINT A$
+000.0045603+000.0000895- 000.00800870+000.0090865
Notice that even though the format was degrees C since the channels have been configured to be VOLTS
channels, the response is in VOLTS.
C-4
' HLL terminator of CR LF/ EOI
' Configure four channel (no setpoints)
' Configure and start the acquisition
' Just get the Last channel readings
' Get Last reading for channel 1
' Screen shows....
' Get Last reading for channel 2
' Screen shows....
' Get Last reading for channel 3
' Screen shows....
' Get Last reading for channel 4
' Screen shows....
' Set format to ASCII degrees F with
' HLL terminator of None
' Configure four channel (no setpoints)
' Configure and start the acquisition
' Just get the Last channel readings
' Get Last readings for channels 1-4 INPUT A$
' Screen shows....
' Set format to ASCII degrees C with HLL terminator of None.
' Configure four channel
(no setpoints) to VOLTS
' Configure and start the acquisition
' Just get the Last channel readings
' Get Last reading for channels 1-4 INPUT A$
' Screen shows....
Appendix C
ChartScan User's Manual
Need help?
Do you have a question about the OMB-CHARTSCAN 1400 and is the answer not in the manual?