Pickering 65-218 User Manual page 29

Lxi modular high voltage matrix
Table of Contents

Advertisement

pickering
IVI Driver, pi40iv
Using the pi40iv driver, the pi40iv_InitWithOptions function should be used to establish a session on the matrix
card. Switch closures on the matrix are made using the pi40iv_Connect function and released using the pi40iv_
Disconnect function.
The following code snippet demonstrates the minimum steps required to operate a switch on a Pickering unit.
Firstly a device session is opened on the unit located at 192.168.1.100. Then a switch closure of the matrix point
at (x,y) location (12,3) is made then released.
Finally the session is closed.
ViSession vi;
ViStatus err;
ViRsrc rsrc_name = "TCPIP::192.168.1.100::INSTR";
ViString options = "Simulate=1,RangeCheck=1,QueryInstrStatus=0, \
err = pi40iv_InitWithOptions(rscr_name, VI_TRUE, VI_TRUE, options, &vi);
if (err == VI_SUCCESS)
{
pi40iv_Connect(vi, "x12", "y3");
...
pi40iv_Disconnect(vi, "x12", "y3");
}
pi40iv_Close(vi);
Cache=1,DriverSetup=Model:65-218-111;";
LXI MODULAR HIGH VOLTAGE MATRIX 65-218
SECTION 4 - PROGRAMMING GUIDE
Page 4.5

Advertisement

Table of Contents
loading

Table of Contents