API Command Reference Appendix A
A-42 NetScan Users Manual
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 = 128 for NetScan.
DESCRIPTION
The Read Last Readings (R#) command will return a subset of the Query Last (U13) command. It allows the
specifying of specific channels within the current channel configuration. Thi s command is useful for querying
specific channels without having unwanted channels returned. The response to this comm and t ak es the same
form as the Query Last (U13) command, whereby each reading conforms to the reading output f orm at specified
by the Set Data Format (F) command. In addition, each channel is terminated by the HLL terminator hll, as
specified with the Set Query Terminator (Q) command.
Note: If the specified channel, or a range of channels, is not currently defined in the s can group as configured by
the Channel Configuration (C) command, a conflict error will be flagged.
EXAMPLES
PRINT#1,"C1-16,1X"
Configure channels 1 - 16 for T/C Type J
PRINT#1,"F1,0X"
Set format for engineering units degrees C
PRINT#1,"R#16X"
Get the last reading for channel 16
LINE INPUT #1, R$
PRINT R$
Screen shows +0103.20 (channel 16 is 103.2 °C)
PRINT#1,"R#1-4X"
Get the Last readings for channels 1 - 4
LINE INPUT #1, R$
PRINT R$
Screen shows
-0003.70 (channel 1 is -3.7 °C)
+0005.60 (channel 2 is 5.6 °C)
+0010.20 (channel 3 is 10.2 °C)
+0024.40 (channel 4 is 24.4 °C)
S - Set Real Time Clock
TYPE
System
EXECUTION
Immediate
SYNTAX
Stime
Set the units internal real-time clock where time is in the standard time/dat e
stamp format: HH:MM:SS:T,mm/dd/yy where H is hours, MM is
minutes, SS is seconds, T is tenths of a second, mm is m ont h,
dd is day, and yy is year.
S?
Query Stime as defined above.
DESCRIPTION
The Set Real Time Clock (S) command is used to set the units internal real-t ime clock. The time argument
follows the same format as the standard time/date stamp input format as specified in the Data Format section of
Appendix D.
The Set Real Time Clock command is used to set the battery backed int ernal real-time clock of the unit. In order
for the time/date stamped data to be accurate, the internal real-tim e c lock must be set to an accurate time/date.
Once set, however, the battery-backed real-time clock will remember the current time, even when powered-off.
EXAMPLE
PRINT#1, S14:00:00.0,4/30/93X
Current date and time