Measurement-computing Micro 488/EX rev.2.1 Uživatelský manuál Strana 122

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 218
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 121
Section 5 Command Descriptions
5.52
The following example program defines two macros. The
STARTUP
event is used
to invoke Macro 80. After running this program, the power is removed from the
Micro488/EX. When power is re-applied, Macro 80 executes. It waits until 1:00 PM
then executes Macro 70, 10 times and 20 second intervals. The
STARTUP
event sets
LOG
ON
. The data that is collected by Macro 70 is then placed in the
LOG
buffer. The
data separator between the
TIME
,
DATE
and Device
16
data was set to a horizontal
TAB
character by the
COMMENT
command.
After execution, the data can be read from the
LOG
buffer with the
READ
LOG
command.
10 PRINT #1,"MACRO80"
Define Macro 80
20 PRINT #1,"REMOTE16"
An external indication that the
Macro is executing
30 PRINT #1,"WAIT 1:00PM"
Wait Until 1:00 PM
40 PRINT #1,"DOMACRO 70,10,20"
Execute Macro 70, 10 times at
20 second intervals
50 PRINT #1,"ENDM"
60 PRINT #1,"MACRO 70" Define Macro 70
70 PRINT #1,"STERM NONE"
Disable Serial terminators
80 PRINT #1,"TIME"
Request the Time
90 PRINT #1,"COMMENT'";CHR$(9);"'"
A Horizontal TAB comment
100 PRINT #1,"DATE"
Request the Date
110 PRINT #1,"COMMENT'";CHR$(9);"'"
A Horizontal TAB comment
120 PRINT #1,"STERM CR"
Serial Terminator to CR
130 PRINT #1,"ENTER 16"
A reading from device 16
140 PRINT #1,"ENDM"
150 PRINT #1,"ON STARTUP DO 80"
Set Macro 80 as the startup
Zobrazit stránku 121
1 2 ... 117 118 119 120 121 122 123 124 125 126 127 ... 217 218

Komentáře k této Příručce

Žádné komentáře