Technical data
Connecting to the Pulse/Pattern Generator for Remote Programming Connecting to the Instrument via LAN
14 Agilent 81133A/81134A Pulse Generator Programming Guide, March 2007
3 Run IO Config.
The IO Config utility (iocfg32.exe) can be found at (default
location):
C:\Program Files\Agilent\IO Libraries Suite\bin
Note that you can also open the IO Config from the Agilent IO
Libraries Control icon in the task bar.
4 Edit “inst0” to “lan0”.
Select “TCPIP Lan”, then click Edit. This will bring up the list of
TCPIP devices already configured. Select the device you need to
change, then click Edit Device. You can now change the device
name to “lan0”.
NOTE You will see a red circle with “!” in the Agilent Connection Expert.
Example for Connecting via LAN
The following code snippet shows how to use the VISA library to
connect to the instrument via LAN.
This example queries a device for an identification string and
prints the results.
Implementation
#include <visa.h>
#include <stdio.h>
void main () {
ViSession defaultRM, vi;
char buf [256] = {0};
/* Open session to the device */
viOpenDefaultRM (&defaultRM);
viOpen (defaultRM,
"TCPIP0::123.123.123.123::lan0::INSTR"
VI_NULL,VI_NULL, &vi);
/* Initialize device */
viPrintf (vi, "*RST\n");
/* Send an *IDN? string to the device */
viPrintf (vi, "*IDN?\n");
/* Read results */
viScanf (vi, "%t", &buf);
/* Print results */
printf ("Instrument identification string: %s\n", buf);
/* Close session */
viClose (vi);