
5-5
System Commands
LONGform
Example
This example examines the header to determine the size of the learn string. Memory is then
allocated to hold the learn string before reading it. To output the learn string, the header is
sent, then the learn string and the EOF.
10 DIM Header$[64]
20 OUTPUT 707;"syst:head on"
30 OUTPUT 707;":syst:set?"
40 More_chars: !
50 ENTER 707 USING "#,A";This_char$
60 Header$=Header$&This_char$
70 IF This_char$<>"#" THEN More_chars
80 !
90 ENTER 707 USING "#,D";Num_of_digits
100 ENTER 707 USING "#,"&VAL$(Num_of_digits)&"D";Set_size
110 Header$=Header$&"#"&VAL$(Num_of_digits)&VAL$(Set_size)
120!
130 ALLOCATE INTEGER Setup(1:Set_size)
140 ENTER 707 USING "#,B";Setup(*)
150 ENTER 707 USING "#,A";Eof$
160 !
170 OUTPUT 707 USING "#,-K";Header$
180 OUTPUT 707 USING "#,B";Setup(*)
190 OUTPUT 707 USING "#,A";Eof$
200
LONGform
Command
:SYSTem:LONGform {ON | 1 | OFF | 0}
This command specifies the format for query responses. If the LONGform is set to OFF, com-
mand headers and alpha arguments are sent from the instrument in the short form (abbrevi-
ated spelling). If LONGform is set to ON, the whole word is output.
This command has no effect on input headers and arguments sent to the instrument. Headers
and arguments may be sent to the instrument in either the long form or short form, regard-
less of the current state of the LONGform command.
Example
The following example sets the format for query response from the instrument to the short
form (abbreviated spelling).
10 OUTPUT 707;":SYSTEM:LONGFORM OFF"
Query
:SYSTem:LONGform?
The query returns the current state of the SYSTem:LONGform command.
Returned Format
[:SYSTem:LONGform] {0 | 1}<NL>
Example
The following example checks the current format for query responses from the oscilloscope
and places the result in the string variable, Result$.
10 DIM Result$[50]
!Dimension variable
Turn Headers Off when Returning Values to Numeric Variables
Turn headers off when returning values to numeric variables. Headers are always off for all common
command queries because headers are not defined in the IEEE 488.2 standard.
Summary of Contents for 86100A
Page 18: ...1 14 Introduction Status Reporting Figure 1 4 Status Reporting Data Structures...
Page 19: ...1 15 Introduction Status Reporting Status Reporting Data Structures continued...
Page 94: ...2 40 Sample Programs BASIC Programming Examples...
Page 124: ...4 16 Root Level Commands VIEW...
Page 132: ...5 8 System Commands TIME...
Page 140: ...6 8 Acquire Commands SWAVeform RESet...
Page 152: ...7 12 Calibration Commands STATus...
Page 192: ...11 12 Display Commands SSAVer...
Page 202: ...12 10 Function Commands VERTical RANGe...
Page 203: ...13 AREA 13 2 DPRinter 13 2 FACTors 13 3 IMAGe 13 3 PRINters 13 4 Hardcopy Commands...
Page 316: ...21 12 TDR TDT Commands Rev A 05 00 and Below STIMulus...
Page 332: ......