Programming The Matrix Module - Pickering 40-884A User Manual

Pxi 8ghz solid state 4x4 matrix module
Table of Contents

Advertisement

pickering

PROGRAMMING THE MATRIX MODULE

Here are some examples of using the drivers with the 40-884A module.
Using PILPXI
To operate a relay the user could use the simple OpCrosspoint, OpBit or the WriteSub commands
OpCrosspoint
DWORD sub_unit = 1;
PIL_OpCrosspoint( card_num, sub_unit, 1, 1, 1); // Operates the X1/Y1 relay
PIL_OpCrosspoint( card_num, sub_unit, 1, 1, 0); // Releases the X1/Y1 relay
PIL_OpCrosspoint( card_num, sub_unit, 1, 4, 1); // Operates the X4/Y1 relay
OpBit
DWORD sub_unit = 1;
PIL_OpBit( card_num, sub_unit, 1, 1);
PIL_OpBit( card_num, sub_unit, 1, 0);
PIL_OpBit( card_num, sub_unit, 4, 1);
WriteSub
// Sub-unit is 16 bits wide, so 1 DWORD is needed to hold the pattern
DWORD data[1];
data[0] = 1;
PIL_WriteSub( card_num, sub_unit, data);
data[0] = 0x04;
PIL_WriteSub( card_num, sub_unit, data);
Using PIPX40
setChannelState
ViUInt32 sub_unit = 1;
pipx40_setChannelState(vi, sub_unit, 1, VI_ON);
pipx40_setChannelState(vi, sub_unit, 1, VI_OFF);
pipx40_setChannelState(vi, sub_unit, 4, VI_ON);
setChannelPattern
// Sub-unit is 16 bits wide, so 1 ViUInt32 value is needed to hold the entire pattern
ViUInt32 data[3];
data[0] = 1;
pipx40_setChannelPattern( vi, sub_unit, data);
data[0] = 0x08;
pipx40_setChannelPattern( vi, sub_unit, data);
Using pi40iv
The IVI driver has no special labelling for this card and treats the array of switches as a simple array, labelling the
channels using the normal x,y labelling tags.
pi40iv_Connect(vi, x1, y1);
pi40iv_Disconnect(vi, x1, y1);
pi40iv_Connect(vi, x4, y1);
The IVI Swtch driver specification contains no bulk setting capabilities.
// Sets lowest bit to 1, X1/Y1 relay
// Sets 4th bit, X4/Y1 relay
// All other relays are set to off
// Sets lowest bit to 1, X1/Y1 relay
// Sets 4th bit, X4/Y1 relay
// All other relays are set to off
// Operates the X1/Y1 relay
// Releases the X1/Y1 relay
// Operates the X4/Y1 relay
8GHz SOLID STATE 4X4 MATRIX 40-884A
SECTION 4 - PROGRAMMING GUIDE
// Operates the X1/Y1 relay
// Releases the X1/Y1 relay
// Operates the X4/Y1 relay
// Operates the X1/Y1 relay
// Releases the X1/Y1 relay
// Operates the X4/Y1 relay
Page 4.3

Advertisement

Table of Contents
loading

Table of Contents