Measurement-computing Micro 488/EX rev.2.1 Instrukcja Użytkownika Strona 111

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 218
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 110
Section 5 Command Descriptions
5.41
LOG
The
LOG
command enables macro command responses to be placed into the
LOG
Buffer rather than being sent to the serial output buffer. Only those responses of
commands issued from within macros are placed into the
LOG
buffer. Commands
issued to the serial input are not
LOG
ed.
The data in the log buffer is maintained in non-volatile storage until it is deleted
with either of the
ERASE
LOG
or
FACTORY
commands. The amount of characters in
the log buffer can be requested with the
LOG
MEMORY
command and the data can be
requested with a
READ
LOG
command.
When a
STARTUP
Macro is executed,
LOG
is automatically set to
ON
.
SYNTAX
LOG
{
OFF
|
ON
}
RESPONSE None
MODE Any
BUS STATES None
EXAMPLES
PRINT#1,"MACRO 1"
Define a macro
PRINT#1,"STATUS"
PRINT#1,"ENDM"
PRINT#1,"DOMACRO 1" Execute the macro
CONTROLLER 10
Macro response
PRINT#1,"LOG ON"
Enable logging
PRINT#1,"DOMACRO 1"
Execute the macro
This time, the response is
logged
PRINT#1,"LOG OFF"
Disable logging
PRINT#1,"READ LOG"
Request Logged data
CONTROLLER 10
Logged Macro response
PRINT#1,"ERASE LOG"
Delete Logged data
Przeglądanie stron 110
1 2 ... 106 107 108 109 110 111 112 113 114 115 116 ... 217 218

Komentarze do niniejszej Instrukcji

Brak uwag