Measurement-computing TempScan/1100 Manual de usuario Pagina 281

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 306
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 280
TempScan / MultiScan, Appendix C 879696 Program Examples in Quick Basic C-11
Acquiring Pre- & Post-Trigger Data at the Same Rate
TempScan/1100
Example 15g. FAST_ACQ.BAS Program
(1) …… 15-CLS : PRINT “The TempScan/1100 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;C1-32,3X”
(10) …… 15-PRINT #1, “OUTPUT 07;C33-48,2X”
(11) …… 15-PRINT #1, “OUTPUT 07;Y50,100,200X”
(12) …… 15-PRINT #1, “OUTPUT 07;I00:00:00.1,00:00:00.1X”
(13) …… 15-PRINT #1, “OUTPUT 07;L1,20.0,0X"
(14) …… 15-PRINT #1, “OUTPUT 07;T4,5,0,0X"
(15) …… 15-PRINT “The TempScan/1100 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...”
(17) …… 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...”
(22) …… 15-PRINT “Waiting for the Stop level event...”
(23) …… 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
(28) …… 15-PRINT “The acquisition is now complete...”
(29) …… 15-PRINT #1, “OUTPUT 07;U6X”
…… 15-PRINT #1, “ENTER 07"
…… 15-LINE INPUT #2, U$
…… 15-PRINT U$
…… 15-UA$ = MID$(U$, 8, 6)
…… 15-UA% = VAL(UA$)
…… 15-PRINT UA%
(36) …… 15-PRINT #1, “The TempScan/1100 collected”; UA%; “scans of data.”
(37) …… 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$
(43) …… 15-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.
Vista de pagina 280
1 2 ... 276 277 278 279 280 281 282 283 284 285 286 ... 305 306

Comentarios a estos manuales

Sin comentarios