Agilent Technologies 4294A Service Manual Page 184

  • Download
  • Add to my manuals
  • Print
  • Page
    / 518
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 183
184 Chapter 12
Using LAN
Controlling the Agilent 4294A
Example of control
Like autoscale (subprogram executed when the Auto Scale button is pressed) shown in Example
12-8, executing subprograms above in the sequence above will allow you to control the 4294A.
Example 12-8 autoscale
Sub autoscale()
'
' auto scaling
'
Call StartIt
Call get_hostname
x = OpenSocket(Hostname$, ScpiPort)
x = SendCommand("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.
Connection Command 1 Command 2 Disconnection
Commands 1 and 2 are always executed in this sequence.
Connection Command 1 Disconnection Connection Command 2
Disconnection
These commands may be in the sequence of Command 2 command 1.
Control by making use of the dynamic data disk
You can achieve control from a program via LAN by combining Instrument BASIC
programs and file transfers by use of the dynamic data disk. The procedure is given below.
Step 1. Transfer an Instrument BASIC program you want run to the dynamic data disk from an
external controller under the name prog_run.bas.
Step 2. After having quit the program, transfer necessary measurement data (data_dt.dat and the
like) to the external controller from the dynamic data disk.
NOTE Either in an instance in which you need to work on a measurement result by use of a certain
program or in an instance in which you need to obtain a result (a result of limit test, or the
like) that cannot be transferred directly from the dynamic data disk, write a program in
such a way that it once stores necessary data in a file held on the storage devices of the
4294A, and transfer that file to the external controller after the program quits.
Page view 183
1 2 ... 179 180 181 182 183 184 185 186 187 188 189 ... 517 518

Comments to this Manuals

No comments