Pickering 65-218 User Manual page 28

Lxi modular high voltage matrix
Table of Contents

Advertisement

SECTION 4 - PROGRAMMING GUIDE
Direct I/O Driver , piplx
The Direct I/O driver is composed of a suite of separate libraries which interact to provide full control of a Pickering
unit. In the case of a switch card the communications library picmlx, and the switching library piplx, are needed.
Firstly a communication session to the unit is established. This provides a session handle to the remote unit which
must be used in all subsequent communication with the unit.
Then a specified card on the remote unit is opened and a handle to that card obtained, this handle must be used in
all subsequent function calls to that card.
To operate a crosspoint switch, the OpCrosspoint function may be used specifying the session, the card handle then
the sub-unit to access and the crosspoint location and its state. In this case the crosspoint at (x,y) = (12,3) on the
first sub-unit of the opened card is first energised then the corresponding isolation switch of the second sub-unit is
energised using the OpBit function, the both the crosspoint and isolation switch are released.
After use the card should be closed and the session released to free the card and unit for other use.
DWORD err; SESSION session; DWORD card_handle;
DWORD subUnit, ch, x, y;
err = PICMLX_Connect(0, "192.168.1.100", 1024, 2000, &session);
if (err == 0)
{
err = PIPLX_OpenSpecifiedCard( session, 3, 1, &card_handle);
if (err == 0)
{
PIPLX_OpCrosspoint(session, card_handle, subUnit=1, y=12, x=3, 1);
// close crosspoint x/y
PIPLX_OpBit(session, card_handle, subUnit=2, ch=12, 1);
// close isolation relay
PIPLX_OpCrosspoint(session, card_handle, subUnit=1, y=12, x=3, 0);
// open crosspoint x/y
PIPLX_OpBit(session, card_handle, subUnit 2, ch=12, 0);
// open isolation relay
}
PIPLX_CloseSpecifiedCard( session, card_handle);
}
PICMLX_Disconnect(session);
There are other ways to control switches, including a function to set the entire matrix at a single command. The user
should refer to detailed documentation for the driver to be found in the installation folder.
Page 4.4
LXI MODULAR HIGH VOLTAGE MATRIX 65-218
pickering

Advertisement

Table of Contents
loading

Table of Contents