Control By Making Use Of The Dynamic Data Disk - Agilent Technologies 4294A Programming Manual

Precision impedance analyzer
Hide thumbs Also See for 4294A:
Table of Contents

Advertisement

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
Example 12-8
autoscale
Sub autoscale()
'
' auto scaling
'
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.

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.
184
Call StartIt
Call get_hostname
x = OpenSocket(Hostname$, ScpiPort)
x = SendCommand("AUTO")
Call CloseConnection
Call EndIt
Connection
Command 1
Commands 1 and 2 are always executed in this sequence.
Connection
Command 1
Disconnection
These commands may be in the sequence of Command 2 → command 1.
Command 2
Disconnection
Disconnection
Connection
4294A
.
Command 2
Chapter 12

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents