Omega Vehicle Security OMB-CHARTSCAN 1400 User Manual

Page of 273
Registers, Data Formats, & Queries
Appendix C
C-4 
ChartScan User’s Manual
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
 
‘ HLL terminator of CR LF/ EOI
 
PRINT#1,"OUTPUT07 C1-4,1X"
‘ Configure four channel (no setpoints)
 
.
 
.
 
.
 
‘ Configure and start the acquisition
 
PRINT#1,"OUTPUT07; U13X"
   ‘ Just get the Last channel readings
 
PRINT#1,"ENTER07"
   ‘ Get Last reading for channel 1
 
INPUT
A$
   ‘ Screen shows....
 
PRINT
A$
 
+0950.30
 
PRINT#1,"ENTER07"
   ‘ Get Last reading for channel 2
 
INPUT A$
   ‘ Screen shows....
 
PRINT A$
 
+0250.60
 
PRINT#1,"ENTER07"
   ‘ Get Last reading for channel 3
 
INPUT A$
   ‘ Screen shows....
 
PRINT A$
 
-0050.80
 
PRINT#1,"ENTER07"
   ‘ Get Last reading for channel 4
 
INPUT A$
  
   ‘ Screen shows....
 
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"  ‘ Set format to ASCII degrees F with
 
    ‘ HLL terminator of None
 
PRINT#1,"OUTPUT07 C1-4,1X"
    ‘ Configure four channel (no setpoints)
 
.
 
.
 
.
   
    ‘ Configure and start the acquisition
 
PRINT#1,"OUTPUT07; U13X"
    ‘ Just get the Last channel readings
 
PRINT#1,"ENTER07"
    ‘ Get Last readings for channels 1-4 INPUT A$
  
    ‘ Screen shows....
 
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"
‘ Set format to ASCII degrees C with HLL terminator of None.
 
PRINT#1,"OUTPUT07 C1-4,11X" 
‘ Configure four channel
 
(no setpoints) to VOLTS
 
.
 
.
 
.
 
‘ Configure and start the acquisition
 
PRINT#1,"OUTPUT07; U13X"
‘ Just get the Last channel readings
 
PRINT#1,"ENTER07"
      
‘ Get Last reading for channels 1-4 INPUT A$
     
         ‘ Screen shows....
 
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.