Specifications

Chapter 18 543
COM Interface Reference
SCPI object
18. COM Interface Reference
Output method
Explanation Executes a GPIB command of the E4991A.
VB syntax Application.SCPI.Output(Cmd)
or
SCPI.Output(Cmd)
Parameter Cmd: Specifies GPIB command by enclosing it within double quotation marks (“”) in the
form of a string.
Examples The following is a program example of using the Output method.
Example 18-18 Example of using Output method
Application.SCPI.Output "DISP:TRAC1 ON"
Application.SCPI.Output "DISP:TRAC1:TITL:DATA ""Test Data"" "
Application.SCPI.Output "DISP:TRAC1:TITL ON"
Query method
Explanation Executes a GPIB command of the E4991A by Query and receives its response.
VB syntax Application.SCPI.Query(Cmd)
or
SCPI.Query(Cmd)
Parameter Cmd: Specifies GPIB command with “?” by enclosing it within double quotation marks
(“”) in string form.
Response Response to Query command is sent back.
Data type should be specified as variant. When specifying a data type other than variant,
refer to the description of Query response of applicable GPIB commands in
Chapter 17,
“GPIB Command Reference,” on page 275.
Examples The following is a program example of using the Query method.
Example 18-19 Example of using Query method
Dim Cw_freq As Double
Cw_freq = Application.SCPI.Query("FREQ?")
MsgBox "CW Frequency : " & Cw_freq & "Hz"