Page 4.7
MATRIX MODULE 40-510/511/512/513
pickering
SECTION 4 - PROGRAMMING GUIDE
Using PIPX40
setChannelState
ViUInt32 sub_unit = 1; //select bank 1 (dual matrix) or whole matrix (single matrix)
pipx40_setChannelState(vi, sub_unit, 1, VI_ON);
// Operates the X1/Y1 relay
pipx40_setChannelState(vi, sub_unit, 1, VI_OFF);
// Releases the X1/Y1 relay
pipx40_setChannelState(vi, sub_unit, 6, VI_ON);
// Operates the X6/Y1 relay
setChannelPattern
// Sub-unit is 48 bits wide, so 2 ViUInt32 value is needed to hold the entire pattern
ViUInt32 data[2];
data[0] = 1;
// Sets lowest bit to 1, X1/Y1 relay
pipx40_setChannelPattern( vi, sub_unit, data);
data[0] = 0x20;
// Sets 6th bit, X6/Y1 relay
// All other relays are set to off
pipx40_setChannelPattern( vi, sub_unit, data);
PROGRAMMING THE MODULE
Here are examples of using the drivers with the 40-510 series of modules. These show sub-unit 1 being selected,
which corresponds to the whole matrix of a single matrix module, or bank 1 of a dual matrix module. If bank 2 of a
dual matrix were to be selected, sub-unit 2 would be specified.
Using PILPXI
To operate a relay the user could use the simple OpCrosspoint, OpBit or the WriteSub commands
OpCrosspoint
DWORD sub_unit = 1; //select bank 1 (dual matrix) or whole matrix (single matrix)
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, 6, 1); // Operates the X6/Y1 relay
OpBit
DWORD sub_unit = 1; //select bank 1 (dual matrix) or whole matrix (single matrix)
PIL_OpBit( card_num, sub_unit, 1, 1); // Operates the X1/Y1 relay
PIL_OpBit( card_num, sub_unit, 1, 0); // Releases the X1/Y1 relay
PIL_OpBit( card_num, sub_unit, 6, 1); // Operates the X6/Y1 relay
WriteSub
// Sub-unit is 48 bits wide, so 2 DWORD is needed to hold the pattern
DWORD data[2];
data[0] = 1;
// Sets lowest bit to 1, X1/Y1 relay
PIL_WriteSub( card_num, sub_unit, data);
data[0] = 0x20;
// Sets 6th bit, X6/Y1 relay
// All other relays are set to off
PIL_WriteSub( card_num, sub_unit, data);
Содержание PXI 40-510
Страница 6: ...Page VI MATRIX MODULE 40 510 511 512 513 pickering THIS PAGE INTENTIONALLY BLANK...
Страница 8: ...Page VIII MATRIX MODULE 40 510 511 512 513 pickering THIS PAGE INTENTIONALLY BLANK...
Страница 18: ...Page 3 4 MATRIX MODULE 40 510 511 512 513 pickering SECTION 3 INSTALLATION THIS PAGE INTENTIONALLY BLANK...
Страница 32: ...MATRIX MODULE 40 510 511 512 513 Page 6 2 pickering SECTION 6 TROUBLE SHOOTING THIS PAGE INTENTIONALLY BLANK...