Documentation Home Page RT-LAB Home Page
Pour la documentation en FRANÇAIS, utilisez l'outil de traduction de votre navigateur Chrome, Edge ou Safari. Voir un exemple.

OpPickering_41_752_BattSimulator

Block

Mask

Description

OpPickering_41_752_BattSimulator block

Designed to program Pickering's PXI-41-752 6-channel battery simulator module.

41-752 boardSingle slot PXI module to be placed in an appropriate PXI chassis (e.g. Pickering PXI 40-922). RT-Lab block running in the target communicates with the module through a regular PCIe link, therefore a PXI-PCI interface is required (e.g. Pickering PXI 41-924 kit).
41-752 moduleContains 6 battery channels which can be programmed independently. At this end, every input of the RT-Lab block is a 6-value vector addressing each channel of the battery simulator.
Battery simulatorCan supply maximum 7V and 300mA per channel and sink up to 100mA per channel. Cells can be chained together in order to increase the final output.

Parameters

Module ID (Slot ID)Index of the board on target's PCI bus; it can be found using the command lspci.
Bus IDLogical bus ID tied to board on target's PCI bus; it can be found using the command lspci.

Example with 4 boards available:

08:0b.0 Class ff00: PLX Technology, Inc. PCI9030 32-bit 33MHz PCI <-> IOBus Bridge
08:0c.0 Class ff00: PLX Technology, Inc. PCI9030 32-bit 33MHz PCI <-> IOBus Bridge
08:0d.0 Class ff00: PLX Technology, Inc. PCI9030 32-bit 33MHz PCI <-> IOBus Bridge
08:0e.0 Class ff00: PLX Technology, Inc. PCI9030 32-bit 33MHz PCI <-> IOBus Bridge 

When multiple cards are available, they are arranged from right to left in the PXI chassis. In the example above, the board with slot ID = 0x0b (11) is the right-most one, and Bus ID is the first number on each row, in this case 08.

Inputs

Vout6-value input vector set the output voltage for each channel. Vector values are in volts going from 0 to 7V.
Isink6-value input vector to set sink current for each channel. Vector values are in Amps going from 0 to 0.1A.
Cell_en6-value input vector to enable/disable a channel of the module. Vector values are 0 for disabled and 1 for enabled.
Ex: [1 1 1 0 0 0 ]enables the first 3 channels and disable the 3 last channels.

Outputs

InterLockSt

Reports the module interlock status. Value is set to 0 if interlock is disabled (jumper between pins 16 and 17 is missing), and 1 if enabled.

The module will not operate until interlock status is 1 (this is a hardware condition).

ModuleErrError reported by the module at board level.
CellErrError reported by the module at the channel level (vector of 6 error codes).



Note: Not all error codes apply for Pickering 41-752 Battery simulator board.



List of Error Codes

0OK
1No Pickering card has the specified number
2Cannot obtain information for specified card
3Specified card is disabled
4Sub-unit value out-of-range for target card
5Bit-number out-of-range for target sub-unit
6Target sub-unit has no calibration data to read/write
7SafeArray type, shape or size is incorrect
8Non-zero write data value is illegal for MUX sub-unit
9Execution would cause closure limit to be exceeded
10One or more of the specified channels cannot be masked
11Cannot activate an output that is masked
12Cannot open a Pickering card at the specified location
13Failed read from hardware
14Failed write to hardware
15Hardware driver failure
16Incompatible hardware driver version
17Function call incompatible with sub-unit type or capabilities
18Matrix row value out-of-range
19Matrix column value out-of-range
20Attenuation value out-of-range
21Voltage value out-of-range
22Calibration index value out-of-range
23Segment number out of range
24Function code value out of range
25Subswitch value out of range
26Action code out of range
27Cannot execute due to corrupt sub-unit state
28Unrecognized attribute code
29Timeout writing to EEPROM
30Operation is illegal in the sub-unit's current state
31Unrecognized pot number requested
32Invalid write pattern for MATRIXR sub-unit
33Attempted operation on non-existent channel
34Card cannot be accessed (failed/removed/unpowered)
35Unsupported internal floating-point format (internal error)
36Sub-unit is not calibrated
37Unobtainable resistance value
38Invalid calibration store number
39Invalid mode value
40Conflicting device settings
41Function call incompatible with card type or capabilities
42Switch pole value out of range
43Attempted to activate a non-existent capability
44Action requires hardware that is not present
45Faulty hardware
46Failed to execute (e.g. blocked by a hardware condition)
47Current value out of range
48Invalid range value
49Attribute not supported
50Register number out of range
51Invalid channel closure or write a pattern for MATRIXP sub-unit
52Data buffer too small
53Inconsistent shared access mode

Characteristics and Limitations

Multiple blocks can be added in an OPAL-RT model as long as each one drives a different module (unique slot ID).

For further information on the PXI 41-752 module itself, please read the following documentation given with your system from Pickering: 41-752D.pdf (datasheet), 41-752M.pdf (user manual).



Note: The channel is equivalent to a cell of a real battery.


Installation Requirements

This block requires Pickering's libpilpxi32 shared library (must be found in the libraries path).

Direct FeedthroughNo
Discrete sample timeYes
XHP supportN/A
Work offlineYes

OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323
Follow OPAL-RT: LinkedIn | Facebook | YouTube | X/Twitter