EasyManua.ls Logo

IOtech TempScan 1100 - Same Rate

Default Icon
364 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
248 Chapter 15: Program Examples TempScan / MultiScan User's Manual
Acquiring Pre- & Post-Trigger Data at the Same Rate
TempScan/1100
Example 15g. FAST_ACQ.BAS Program
(1)
CLS : PRINT “The TempScan/1100 is resetting...”
PRINT #1, “OUTPUT 07;*RX”
(3)
SLEEP 10
(4)
S% = 0
WHILE (S% AND 4) = 0
PRINT #1, “SPOLL 07"
INPUT #2, S%
(8)
WEND
(9)
PRINT #1, “OUTPUT 07;C1-32,3X”
(10)
PRINT #1, “OUTPUT 07;C33-48,2X”
(11)
PRINT #1, “OUTPUT 07;Y50,100,200X”
(12)
PRINT #1, “OUTPUT 07;I00:00:00.1,00:00:00.1X”
(13)
PRINT #1, “OUTPUT 07;L1,20.0,0X"
(14)
PRINT #1, “OUTPUT 07;T4,5,0,0X"
(15)
PRINT “The TempScan/1100 is collecting Pre-Trigger data and has not
been triggered...”
PRINT “Waiting for Channel 1 to reach the Trigger level and start the
acquisition...”
(17)
WHILE (S% AND 2) <> 2
PRINT #1,“SPOLL 07”
INPUT #2, S%
WEND
PRINT “The Trigger level event has been detected...”
(22)
PRINT “Waiting for the Stop level event...”
(23)
WHILE (U% AND 1) <> 1
PRINT #1,“OUTPUT 07;U0X”
PRINT #1,“ENTER 07”
INPUT #2, U%
WEND
(28)
PRINT “The acquisition is now complete...”
(29)
PRINT #1, “OUTPUT 07;U6X”
PRINT #1, “ENTER 07"
LINE INPUT #2, U$
PRINT U$
UA$ = MID$(U$, 8, 6)
UA% = VAL(UA$)
PRINT UA%
(36)
PRINT #1, “The TempScan/1100 collected”; UA%; “scans of data.”
(37)
FOR i = 1 TO UA%
PRINT #1, “OUTPUT 07;R1X”
PRINT #1, “ENTER 14"
INPUT #2, SCAN$
PRINT “Scan ”; i; “ is :”
PRINT SCAN$
(43)
NEXT I
This program is FAST_ACQ.BAS in the \EXAMPLES\ subdirectory. It will configure 48 thermocouple
channels, set up the TempScan/1100 for fast acquisition, and then bring the values into the controller
after the acquisition is complete. From a logic standpoint, the difference between this program and the
SLOW_ACQ.BAS program is that this FAST_ACQ.BAS program reads blocks of data instead of one scan
at a time. This method is usually more efficient in case of fast scan intervals.

Table of Contents

Related product manuals