
176
Chapter 12
Using LAN
Controlling the Agilent 4294A
Control from a program
To control the 4294A from a program stored on an external controller, make connection by
use of the socket of Port 5025.
NOTE
You cannot use some of functions usable within GPIB, such as service request, by way of
LAN.
Control with HP VEE
In HP VEE, using To/From Socket makes connection with the socket of Port 5025 so that
you can control the 4294A. Figure 12-4 shows an example (in which the IP address
1.10.100.50 is assigned to the 4294A). Type
5025
in the Connection Port field (1 in Figure
12-4) and type either the IP address or the host name of the 4294A in the Host Name field
(2 in Figure 12-4).
Figure 12-4
An example of control using HP VEE
Control with languages, such as C and Visual Basic
Socket programming allows you to control the 4294A through socket programming from C
language in a UNIX environment, or Visual C++ or Visual Basic in a Windows
environment. Socket programming requires a library for network connection with TCP/IP
protocol. For this purpose, BSD (Berkeley Software Distribution) Sockets API is supplied
in the UNIX environment, while WinSock (WinSock1.1, or WinSock2.0), prepared by
porting BSD Sockets onto Windows and extending it, in the Windows environment.
The sample program disk contains a sample program (ctrl_lan.bas: Microsoft Excel file)
for control with Visual Basic (VBA macro).
First, let us begin with how to use this program. Opening this file will display the screen
shown in Figure 12-5. Below are described how to operate each part of this screen.
Summary of Contents for 4294A
Page 4: ...4 ...
Page 18: ...18 Contents ...
Page 24: ...24 Chapter1 To make effective use of this manual Other manuals attached to this unit ...
Page 94: ...94 Chapter6 Reading Writing Measurement Data Reading Writing Data ...
Page 110: ...110 Chapter7 Processing Measurement Results Analyzing Measurement Results ...
Page 136: ...136 Chapter10 Handling Errors Sample program for error handling ...
Page 246: ...246 13 Application Sample Programs File Transfer Function ...
Page 254: ...254 Chapter15 Setting the Display LCD Sample program for setting the LCD screen ...
Page 507: ...Index Index 507 Index ...
Page 508: ...508 Index Index ...
Page 509: ...Index Index 509 Index ...
Page 510: ...510 Index Index ...
Page 511: ...Index Index 511 Index ...
Page 512: ...512 Index Index ...
Page 513: ...Index Index 513 Index ...
Page 514: ...514 Index Index ...
Page 515: ...Index Index 515 Index ...
Page 516: ...516 Index Index ...
Page 517: ...Index Index 517 Index ...
Page 518: ...518 Index Index ...