Page 4.2
SECTION 4 - PROGRAMMING GUIDE
pickering
ISOLATED MILLIVOLT THERMOCOUPLE SIMULATOR 41-761
PROGRAMMING THE 41-761
The 41-761 Thermocouple Simulator uses the same driver software as the Pickering range of switches, pilpxi
or pipx40, requiring version 4.45 or later. Unlike other modules the Millivolt Thermocouple Simulator comes with
dedicated commands to set and get voltage and ranges which will be dened in the next section.
The sub-unit usage for each version of the 41-761 is sumarized in Table 4.1. For detailed sub-unit and bit usage
tables, refer to the Appendix at the end of this section.
Setting and Reading Back Output Voltage
C code example using the Direct I/O Driver (requires Pilpxi.h and Pilpxi.lib found in the Pickering folder structure)
DWORD l_CardNum; //assumed you have opened the card using OpenCards() or OpenSpeciedCard()
DWORD l_SubUnit;
double l_Val;
SubUnit = 3; //Select the 3rd channel
l_Val = 5.43; //request 5.43 mV
l_RetCode = PIL_VsourceSetVoltage(l_CardNum, l_SubUnit, l_Val); //select voltage specied in l_Val
l_RetCode = PIL_VsourceGetVoltage (l_CardNum, l_SubUnit, &l_Val);//get the current voltage into
l_Val
//rounded to nearest obtainable value
You can also use the VXIPnp driver (pipx40) which can be found in the VXIPnp path.
Table 4.1 – Summary of Sub-Unit Usage For The Thermocouple Simulator
Sub-Unit
Functionality Comment
41-761-001
32-Channel
Version
41-761-002
24-Channel
Version
41-761-003
16-Channel
Version
41-761-004
8-Channel
Version
1-32 1-24 1-16 1-8
Voltage Source
Channels
Only to be used with the Set and
Get Voltage functions.
33 25 17 9
Isolation
Switches
Isolation Switches for vo and vcold
(2-bits per channel).