Programming The Module - Pickering PXI 40-748 1 Series User Manual

Rf multiplexer modules
Table of Contents

Advertisement

SECTION 4 - PROGRAMMING GUIDE

PROGRAMMING THE MODULE

Here are some simple examples of using the drivers with the 40-747 module.
Using PILPXI
To operate a relay the user could use the simple OpBit command or the WriteSub commands
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] = 0x8;
PIL_WriteSub( card_num, sub_unit, data);
Using PIPX40
setChannelState
ViUInt12 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[1];
data[0] = 1;
pipx40_setChannelPattern( vi, sub_unit, data);
data[0] = 0x8;
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 com/ch labelling tags.
pi40iv_Connect(vi, com, ch1);
pi40iv_Disconnect(vi, com, ch1);
pi40iv_Connect(vi, com, ch4);
Note: comA/chA (etc) tags are used for the 40-748/749 modules
The IVI Switch driver specification contains no bulk setting capabilities.
Page 4.4
// Sets lowest bit to 1, channel 1 to common
// Sets 4th bit, channel 4 to common
// All other relays are set to off
// Sets lowest bit to 1, channel 1 to common
// Sets 4th bit, channel 6 to common
// All other relays are set to off
// Connects channel 1 to common
// Disconnects channel 1 from common
// Connects channel 4 to common
RF MULTIPLEXER MODULES 40-747 / 748 / 749
// Connects channel 1 to common
// Disconnects channel 1 from common
// Connects channel 4 to common
// Connects channel 1 to common
// Disconnects channel 1 from common
// Connects channel 4 to common
pickering

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pxi 40-747-731Pxi 40-749-731Pxi 40-748-731

Table of Contents