Page 4.6
6-CHANNEL BATTERY SIMULATOR MODULE 41-752
pickering
SECTION 4 - PROGRAMMING GUIDE
Output Sub-Unit 13 - Channel 1 to 6 Output Enable
A value of 1 will enable the output, 0 will disable.
This example turns the output on for channels 1 and 6.
Driver
Command
pilpxi (kernel)
DWORD data[1];
data[0] = 0x21;
PIL_WriteSub(cardNum, 13, data);
pipx40 (VISA)
ViUInt32 pattern[1];
pattern[0] = 0x21;
pipx40_setChannelPattern (vi, 13, pattern);
PIPLX (LXI)
DWORD data[1];
data[0] = 0x21;
PIPLX_WriteSub(session, cardNum, 13, dac 1);
SOAP (LXI)
my $data = (0x21);
$device -> WriteSub(13, $data);
Output Sub-UnitS 7 to 12 - Current Sinks for channels 1 to 6
Each of these sub-units appear as a 16 bit register, each bit represents one element of a bank of parallel current
sinks, each element draws current (nominally 6.25mA) from the input. With all bits set high, all current sinks are
enabled and will sink the maximum 100mA, fewer bits set produce an output pro-rata.
For example, the following will set the current sink to maximum current.
Driver
Command
pilpxi (kernel)
DWORD data[1];
data[0] = 0xffff;
PIL_WriteSub(cardNum, subunit, data);
pipx40 (VISA)
ViUInt32 pattern[1];
pattern[0] = 0xffff;
pipx40_setChannelPattern (vi, subunit, pattern);
PIPLX (LXI)
DWORD data[1];
data[0] = 0xffff;
PIPLX_WriteSub(session, cardNum, subunit, data 1);
SOAP (LXI)
my @data = (0xffff)
$device -> WriteSub(subunit, @data);