User`s guide

Table Of Contents
192 Chapter 12
Sample Application Programs
Controlling Using Telnet Server
Example of control
The
E5061A/E5062A can be controlled by executing the above procedures in order,
following the control flow in Figure 12-6. This is demonstrated by the procedure autoscale
(a procedure which is executed when the Auto Scale button is clicked) as described in
Example 12-14.
Example 12-14 autoscale
Sub autoscale()
'
' auto scaling
'
Call StartIt
Call get_hostname
x = OpenSocket(Hostname$, ScpiPort)
x = SendCommand(":DISP:WIND1:TRAC1:Y:AUTO")
Call CloseConnection
Call EndIt
End Sub
NOTE When you execute more than one command by connecting and disconnecting a socket for
every command, the sequence of execution may change.
R Connection
Command 1 Command 2 Disconnection
Commands 1 and 2 are always executed in this sequence.
R Connection
Command 1 Disconnection Connection Command 2
Disconnection
These commands may be in the sequence of Command 2 command 1.