Agilent Technologies 86100-90086 Sprinkler User Manual


 
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.