Technical data

System Commands 29
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference 745
:SYSTem:DEBug
Command :SYSTem:DEBug {{ON|1}[,<output_mode>[,"<file_name>" [,<create_mode>]]] |
{OFF|0}}
The :SYSTem:DEBug command turns the debug mode on and off. This
mode enables the tracing of incoming remote commands. If you select
CREate mode, a new file is created, and/or an existing file is overwritten.
If you select APPend mode, the information is appended to an existing
file. The :SYSTem:DEBug command shows any header and/or parameter
errors.
The default create mode is CREate, the default output mode is FileSCReen,
and the default file name is "c:\Document and Settings\All Users\Shared
Documents\Infiniium\Data\debug.txt". In debug mode, the File View button
lets you view the current debug file, or any other debug file. This is a
read- only mode.
<output_mode> {FILE | SCReen | FileSCReen}
<file_name> An MS- DOS compatible name of the file, a maximum of 254 characters
long (including the path name, if used). The file name assumes the present
working directory if a path does not precede the file name.
<create_mode> {CREate | APPend}
Examples This example turns on the debug/trace mode and creates a debug file.
myScope.WriteString ":SYSTEM:DEBUG ON,FILE,
""C:\Document and Settings\All Users\Shared Documents\Infiniium\Data\
pacq8xx.txt"",CREATE"
The created file resembles:
Debug information file C:\Document and Settings\All Users\
Shared Documents\Infiniium\Data\pacq8xx.txt
Date: 1 DEC 2002
Time: 09:59:35
Model: DSO90804A
Serial#: sn ?
>:syst:err? string$<NL>
<:SYSTEM:ERROR 0,"No error"$
>:ACQuire:BEST FLATness$<NL>
?^
?-113, Undefined header
>:syst:err? string$<NL>
<:SYSTEM:ERROR -113,"Undefined header"$
>:syst:err? string$<NL>
<:SYSTEM:ERROR 0,"No error"$
This example appends information to the debug file.