![IOtech MultiScan 1200 User Manual Download Page 252](http://html1.mh-extra.com/html/iotech/multiscan-1200/multiscan-1200_user-manual_2088024252.webp)
242 Chapter 15: Program Examples
TempScan / MultiScan User's Manual
Reading HLL Data from Thermocouple & Volts Cards
TempScan/1100
Example 15c. HLL64.BAS Program
(1)
CLS : PRINT “The TempScan/1100 is resetting...”
PRINT #1, “OUTPUT 07;*RX”
(3)
SLEEP 4
(4)
WHILE (S% AND 4) = 0
PRINT #1, “SPOLL 07"
INPUT #2, S%
(7)
WEND
(8)
PRINT #1, “OUTPUT 07;C1-32,3X”
(9)
PRINT #1, “OUTPUT 07;C33-64,14X”
(10)
PRINT #1,“OUTPUT07;Y1,0,0X”
(11)
PRINT #1,“OUTPUT07;T1,1,0,0X"
(12)
PRINT “The TempScan/1100 is collecting HLL data for all 32 channels”
PRINT “Hit a key to start or stop retrieving HLL data...”
(14)
WHILE INKEY$ = “”: WEND
(15)
WHILE INKEY$ = “”
PRINT #1, “OUTPUT 07;U4X”
PRINT #1, “ENTER 07"
LINE INPUT #2, U$
(19)
FOR i = 1 TO 32
PRINT “High, Low and Last readings of Channel”; i
PRINT MID$(U$, (i * 66) - 65, 66)
NEXT i
(23)
FOR i = 1 TO 32
PRINT “High, Low and Last readings of Channel”; i + 32
PRINT MID$(U$, (32 * 66) + (i * 78) - 77, 78)
NEXT i
(27)
WEND
This program is
HLL64.BAS
in the
\EXAMPLES\
subdirectory. It will configure 32 thermocouple and
32 volts channels, collect the High/Low/Last (HLL) Registers data, and post it on the screen.
•
Lines 1-3:
Although not necessary, it is good practice to reset the TempScan/1100 at the start of
your application by sending the
Reset
Power-On
(
*R
) command. Wait a few seconds.
•
Lines 4-7:
To be certain that the reset was successful and the device is ready, Serial Poll the device
until the proper status is returned.
•
Lines 8-9:
The
Configure Channels
(
C
) command will be used once to configure a range of
channels from 1 to 32 as Type T thermocouples, and used again to configure a range of channels
from 33 to 64 as
±
10 volts DC inputs.
•
Lines 10-11:
Program for one
Pre-Trigger
scan via the
Set Counts
(
Y
) command. Then program
the
Trigger
(trigger start event) and
Stop
(trigger stop event) via the
Set Trigger Configuration
(
T
)
command to arm the acquisition.
•
Lines 12-14:
The next three lines tell you to hit a key to start the acquisition. The program will
not proceed until a key is pressed.
•
Lines 15-27:
Until another key is pressed to exit the loop, the
U4
command is issued and the HLL
data is collected. The IEEE 488 controller command
OUTPUT
sends
U4
to the TempScan/1100, the
command
ENTER
requests the data, then the command
LINE INPUT
gets the data from the
IEEE 488 driver and places it in the variable
U$
. The
FOR
loop extracts the data for the individual
channels from the string
U$
and places them on the screen. Since the format of the volts data is
subtly different than that of the thermocouple data, two different
FOR
loops must be used to extract
the channel data. Time and date information is also available in the HLL data.
Summary of Contents for MultiScan 1200
Page 2: ...TempScan MultiScan User s Manual...
Page 4: ...TempScan MultiScan User s Manual...
Page 10: ...vi TempScan MultiScan User s Manual Notes...
Page 20: ...10 Chapter 1 System Overview TempScan MultiScan User s Manual Notes...
Page 106: ...96 Chapter 8 ChartView ChartView Plus TempScan MultiScan User s Manual Notes...
Page 130: ...120 Chapter 9 TempView TempScan MultiScan User s Manual...
Page 150: ...140 Chapter 9 TempView TempScan MultiScan User s Manual Notes...
Page 166: ...156 Chapter 10 PostView TempScan MultiScan User s Manual Notes...
Page 234: ...224 Chapter 13 System Operation TempScan MultiScan User s Manual Notes...
Page 248: ...238 Chapter 14 System Calibration TempScan MultiScan User s Manual Notes...
Page 284: ...274 Chapter 15 Program Examples TempScan MultiScan User s Manual Notes...
Page 330: ...320 Chapter 16 API Command Reference TempScan MultiScan User s Manual...
Page 342: ...332 Chapter 16 API Command Reference TempScan MultiScan User s Manual...
Page 358: ...348 Appendix TempScan MultiScan User s Manual Notes...
Page 364: ...354 Index TempScan MultiScan User s Manual Notes...