Read last readings – Measurement Computing TempScan/1100 User Manual
Page 247
TempScan / MultiScan User’s Manual
889897
API
Command Reference A-51
R#
- Read Last Readings
TYPE
System
EXECUTION
Immediate
SYNTAX
R#chans
Queries the last readings from the HLL Registers for specified channels.
chans
may be in two forms:
chan
(for a single channel where
1
<
chan
<
max
) or
first-last
(for a range of channels where
1
<
first
<
last
<
max
), where
max
=
992
for the TempScan/1100 and
max
=
744
for the MultiScan/1200.
DESCRIPTION
The Read Last Readings (
R#
) command will return the last readings for specific channels from the High/Low/Last
(HLL) Registers, as a subset of the following User Status (
U
) command query - Query last scan read (
U13
) –
which returns the last readings for all the configured channels in the scan. This command is useful for querying
specific channels within the current channel configuration without having unwanted channels returned. The
response to this command takes the same form as the
U13
command query, whereby each reading conforms to
the data output format specified via the Set Data Format (
F
) command. In addition, each channel is terminated
by the query terminator
hll
, as specified via the Set Query Terminator (
Q
) command.
For more information on the HLL Registers or data output formats, see section High/Low/Last (HLL) Registers in
the chapter System Operation, or see section Data Format Configuration in the chapter System Configuration.
EXAMPLE
PRINT#1,"OUTPUT07;C1-32,1X"
‘ Configure Channels 1 - 32 for Type J thermocouples
PRINT#1,"OUTPUT07;F1,0X"
‘ Set format for engineering units degrees C
PRINT#1,"OUTPUT07;R#32X"
‘ Get the last reading for Channel 32
PRINT#1,"ENTER07"
LINE INPUT #2, R$
PRINT R$
+0103.20
‘ Screen shows the last reading
(Channel 32 is 103.2
°C)
PRINT#1,"OUTPUT07;R#1-4X"
‘ Get the last readings for Channels 1 - 4
PRINT#1,"ENTER07"
LINE INPUT #2, S$
PRINT S$
-0003.70
+0005.60
+0010.20
+0024.40
‘
Screen shows the last readings
(Channel 1 is -3.7
°C)
(Channel 2 is 5.6
°C)
(Channel 3 is 10.2
°C)
(Channel 4 is 24.4
°C)