Page 4.4
PROGRAMMABLE POTENTIOMETER MODULE 40-296
pickering
SECTION 4 - PROGRAMMING GUIDE
Using PIPX40
setChannelState
ViUInt32 sub_unit = 1; // Select channel 1
pipx40_setChannelState(vi, sub_unit, 1, VI_ON); // Operates bit 1 (A1 resistor relay)
pipx40_setChannelState(vi, sub_unit, 2, VI_ON); // Operates bit 2 (A2 resistor relay)
pipx40_setChannelState(vi, sub_unit, 9, VI_ON); // Operates bit 9 (B1 resistor relay)
pipx40_setChannelState(vi, sub_unit, 10, VI_ON); // Operates bit 10 (B2 resistor relay)
pipx40_setChannelState(vi, sub_unit, 11, VI_ON); // Operates bit 11 (B3 resistor relay)
pipx40_setChannelState(vi, sub_unit, 12, VI_ON); // Operates bit 12 (B4 resistor relay)
pipx40_setChannelState(vi, sub_unit, 13, VI_ON); // Operates bit 13 (B5 resistor relay)
pipx40_setChannelState(vi, sub_unit, 14, VI_ON); // Operates bit 14 (B6 resistor relay)
pipx40_setChannelState(vi, sub_unit, 1, VI_OFF); // Releases bit 1 (A1 resistor relay)
pipx40_setChannelState(vi, sub_unit, 2, VI_OFF); // Releases bit 2 (A2 resistor relay)
pipx40_setChannelState(vi, sub_unit, 9, VI_OFF); // Releases bit 9 (B1 resistor relay)
pipx40_setChannelState(vi, sub_unit, 10, VI_OFF); // Releases bit 10 (B2 resistor relay)
pipx40_setChannelState(vi, sub_unit, 11, VI_OFF); // Releases bit 11 (B3 resistor relay)
pipx40_setChannelState(vi, sub_unit, 12, VI_OFF); // Releases bit 12 (B4 resistor relay)
pipx40_setChannelState(vi, sub_unit, 13, VI_OFF); // Releases bit 13 (B5 resistor relay)
pipx40_setChannelState(vi, sub_unit, 14, VI_OFF); // Releases bit 14 (B6 resistor relay)
setChannelPattern
// Sub-unit is 16 bits wide, so 1 ViUInt32 value is needed to hold the entire pattern
ViUInt32 data[1];
data[0] = 0x3F03; // Operates bits 1, 2, 9, 10, 11, 12, 13 and 14
pipx40_setChannelPattern( vi, sub_unit, data);
data[0] = 0; // Releases all bits of channel
pipx40_setChannelPattern( vi, sub_unit, data);