Multiscan/1200 – Measurement Computing TempScan/1100 User Manual
Page 283

TempScan / MultiScan, Appendix C
879696
Program Examples in Quick Basic C-13
MultiScan/1200
Example 15h. FAST_ACQ.BAS Program
(1)
…… 15-CLS : PRINT “The MultiScan/1200 is resetting...”
…… 15-PRINT #1, “OUTPUT 07;*RX”
(3)
…… 15-SLEEP 10
(4)
…… 15-S% = 0
…… 15-WHILE (S% AND 4) = 0
…… 15-PRINT #1, “SPOLL 07"
…… 15-INPUT #2, S%
(8)
…… 15-WEND
(9)
…… 15-PRINT #1, “OUTPUT 07;M#0X”
(10)
…… 15-PRINT #1, “OUTPUT 07;W#32X”
(11)
…… 15-PRINT #1, “OUTPUT 07;C1-24,3X”
(12)
…… 15-PRINT #1, “OUTPUT 07;C25-48,2X”
(13)
…… 15-PRINT #1, “OUTPUT 07;Y50,100,200X”
(14)
…… 15-PRINT #1, “OUTPUT 07;I00:00:00.0,00:00:00.0X”
(15)
…… 15-PRINT #1, “OUTPUT 07;L1,20.0,0X"
(16)
…… 15-PRINT #1, “OUTPUT 07;T4,5,0,0X"
(17)
…… 15-PRINT “The MultiScan/1200 is collecting Pre-Trigger data and has not
been triggered...”
…… 15-PRINT “Waiting for Channel 1 to reach the Trigger level and start the
acquisition...”
(19)
…… 15-WHILE (S% AND 2) <> 2
…… 15- …… 15-PRINT #1,“SPOLL 07”
…… 15- …… 15-INPUT #2, S%
…… 15-WEND
…… 15-PRINT “The Trigger level event has been detected...”
(24)
…… 15-PRINT “Waiting for the Stop level event...”
(25)
…… 15-WHILE (U% AND 1) <> 1
…… 15- …… 15-PRINT #1,“OUTPUT 07;U0X”
…… 15- …… 15-PRINT #1,“ENTER 07”
…… 15- …… 15-INPUT #2, U%
…… 15-WEND
(30)
…… 15-PRINT “The acquisition is now complete...”
(31)
…… 15-PRINT #1, “OUTPUT 07;U6X”
…… 15-PRINT #1, “ENTER 07"
…… 15-LINE INPUT #2, U$
…… 15-PRINT U$
…… 15-UA$ = MID$(U$, 9, 7)
…… 15-UA% = VAL(UA$)
…… 15-PRINT UA%
(38)
…… 15-PRINT #1, “The MultiScan/1200 collected”; UA%; “scans of data.”
(39)
…… 15-FOR i = 1 TO UA%
…… 15-PRINT #1, “OUTPUT 07;R1X”
…… 15-PRINT #1, “ENTER 14"
…… 15-INPUT #2, SCAN$
…… 15-PRINT “Scan ”; i; “ is :”
…… 15-PRINT SCAN$
(45)
…… 15-NEXT i
This program is
FAST_ACQ.BAS
in the
\EXAMPLES\
subdirectory. It will configure 48 thermocouple
channels, set up the MultiScan/1200 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.