E5071C
1296
'Shutdown Winsock DLL
x = WSACleanup()
End Sub
Example of control
The E5071C can be controlled by executing the above procedures in order,
following the control flow in Control flow with WinSock API. This is
demonstrated by the procedure autoscale (a procedure that is executed
when the Auto Scale button is clicked) as described in autoscale.
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
When you execute more than one command by connecting and
disconnecting a socket for every command, the sequence of execution may
change.