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.

Pickering (UI)

This document explains how to use the Pickering driver. This driver allows communication between OPAL-RT simulators and programmable modules from Pickering. 

Pickering driver supports pickering modules on two chassis interface namely PXI and LXI chassis.

The modules have to be inserted into a PXI or LXI chassis. The PXI chassis is connected to a PCI-Express slot of the simulator. While the LXI chassis is connected to the simulator through IP network.

Each LXI chassis can be configured with an IP address and a port. The simulator and LXI chassis have to be connected in the same network in order to establish the network connection between them.

Supported Cards

The driver supports four different types of modules:

  • Resistive
  • Fault Insertion Unit (FIU)
  • Relay, and
  • battery simulator.

Resistive Module Supported Cards

The following are a list of the supported cards for the resistive module:

  • 40-295-121 (10 subunits and 12 bits per channel)
  • 40-295-121 (10 subunits and 16 bits per channel)
  • 40-295-121 (6 subunits and 24 bits per channel)
  • 40-297-020
  • 40-298-050
  • 50-295-021 (5 subunits and 12 bits per channel)
  • 50-295-021 (5 subunits and 16 bits per channel)
  • 50-295-021 (10 subunits and 8 bits per channel)
  • 50-295-021 (6 subunits and 24 bits per channel)
  • 50-295-121 (and its flavor 50-295A-121 - 6 subunits and 24 bits per channel)
  • 50-297-020
  • 50-297-041 
  • 50-298-020

FIU Module Supported Cards

The following are a list of the supported cards for the FIU module:

  • 40-194-002 
  • 40-195-001
  • 40-190B-001
  • 40-190B-002
  • 40-199-002

Relay Module Supported Cards

The following are a list of the supported cards for the relay module:

  • 50-110A-021
  • 50-110A-121

Battery Simulator Module

  • Only the 41-752-001 card is supported. The 41-752 board is a single slot PXI module that is to be placed in an appropriate PXI chassis (e.g. Pickering PXI 40-922).
  • The OPAL-RT simulator communicates with this board through a regular PCIe link, therefore a PXI-PCI interface is required (e.g. Pickering PXI 41-924 kit).
  • The 41-752 module contains 6 battery channels that can be programmed independently. The battery simulator can supply a maximum of 7V and 300mA per channel and sink up to 100mA per channel.
  • Cells can be chained together in order to increase the final output.


Unsupported custom cards

It is possible to configure a custom card. The user is responsible to configure the correct card identifier and all other settings associated with the card.


NOTE: Custom cards have not been officially tested by OPAL-RT.

Please send a  request to OPAL-RT to officially support it. 


Configuration

The driver is entirely configurable via the RT-LAB interface. 

General Parameters

The driver has the following general parameter:

Use an RT core for asynchronous computation
  • If set to true, the driver reserves a real-time CPU core for its communication.
  • If set to false, the communication system defaults to core 0.
Chassis type

Options are PXI and LXI

  • PXI
If PXI chassis type is selected, the chassis is connected to simulator via PCIe interface card
  • LXI
If LXI chassis type is selected, the chassis is connected to simulator via IP network
IP addressThe IP address of the LXI chassis interface
PortThe TCP-IP port of the LXI chassis interface

LXI Chassis Network Configuration

This section explains how to configure the LAN network settings of a LXI chassis.  The configuration can be done in the following steps:

  1. The LXI chassis needs to be connected to a PC or laptop directly via an Ethernet cable.
  2. The LXI chassis comes with a default IP address and a port already configured. Enter the default IP address of the LXI chassis in a browser of the PC.
  3. Once the configuration page is loaded, select the LAN configurations settings tab from this page as shown below.



As seen below, the LAN configuration page shows the current network settings in the Ethernet network status section.

The Ethernet Network settings section provides three options to configure the network:

  • DHCP option uses the network DHCP server to assign network credentials dynamically.
  • Auto-IP option assigns network credentials dynamically without a DHCP server.
  • Manual option configures network credentials statically. This section takes manual input of each parameters of the Ethernet network settings.

Although any of the three methods can be used to configure the network settings, it is recommended to configure the network settings statically (Manual option).

Card Parameters

Card typeOptions are Resistive, FIU, Relay, and Battery simulator.
  • Resistive card
When the Card type option is Resistive, select the type of resistive card from this list.
  • FIU card
When the Card type option is FIU, select the type of FIU card from this list.
  • Relay card
When the Card type option is Relay, select the type of relay card from this list.
  • Battery simulator card
If the Card type option is Battery simulator, the 41-752 Battery simulator card is selected by default.
Serial number

The serial number of the programmable Pickering card.

This unique number that can be retrieved from the front panel of the module is used to identify the module.

Minimum update rate (us)This is the minimum delay, in microseconds, for which the channels in this card are updated.

Resistive Card Parameters

Number of subunitsThis is the number of channels. A channel corresponds to a resistor.
Bits per channelThis is the number of switches used to set a resistor. This is equivalent to the number of columns.
Precision settingSet to true or false depending on the type of resistive card.

FIU Card Parameters

Number of faulty channelsThe number of fault insertion channels in the FIU card.
Number of faulty busesThe number of fault insertion buses in the FIU card.
Number of faulty multiplexersThe number of fault insertion multiplexers in the FIU card.
Number of faulty monitorsThe number of fault insertion monitors in the FIU card.
Number of faulty pairsThe number of fault insertion pairs in the FIU card.

Relay Card Parameters

Number of channelsThis is the number of channels in the Relay card

Battery Simulator Card Parameters

Number of channelsThis is the number of channels in the battery simulator card.

Channel/Subunit Parameters

NameName of the channel/subunit
IndexIndex of the channel/subunit.
Default valueDefault state applied to the specific card before execution and when the simulation resets. 
GainGain applied to the resistive value coming from the model.
OffsetOffset used to compensate for the resistive value coming from the model.
Max bitsThe maximum number of switches used to represent the resistor.
TypeType of the FIU channel. Options are Channel, Fault, or Monitor


The resistor cards with the precision setting value set to false are calculated according to the following algorithm:

temp = value_specified_by_user * gain + offset
if(temp > 2^maxBits - 1 ){
	resistor_value = 2^maxBits - 1
}
else{
	resistor_value = temp;
}

Connections 

Once the driver has been configured as desired and the model has been compiled, connection points in the model can be connected to points in the driver via the RT-LAB Configuration interface.

Connections to LabVIEW panels from the driver can also be made.

The connectable points of the driver depend on the card type selected.

Resistive Card Connectable Points

Connectable Name

Description

Direction

ChannelResistive valueFrom model
StatusStatus of resistive channelTo model

FIU Card Connectable Points

Connectable Name

Description

Direction

ChannelFIU value (if type is channel)From model
FaultFIU value (if type is fault)From model
MonitorFIU value (if type is monitor)From model
EnableIf set to 1, channels can be updated. Default is 0From model
ResetIf set to 1, channels are set to 0From model
StatusStatus of the FIU cardTo model


NOTE: Depending on how channels and faults are wired, enabling two faults on two separate fault buses results in a short-circuit on these two fault buses.

This will result in a "Short Fault Bus" action on every enabled fault for each channel.


Relay Card Connectable Points

Connectable Name

Description

Direction

ChannelRelay channel valueFrom model
StatusStatus of relay cardTo model

Battery Simulator Card Connectable Points

Connectable Name

Description

Direction

VoltageVoltage value for channelFrom model
CurrentCurrent value for channelFrom model
Enable

If set to 1, channel can be updated.

Default is 0

From model
ErrorChannel error codeTo model
Board errorError at the board levelTo model
Interlock status

0 = success; non-zero = error code

To model

List of Error Codes

0OK
1No Pickering card has the specified card number
2Cannot obtain information for the card
3Card is disabled
4Subunit value out of range for 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 subunit
9Execution would cause the 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 to read from the hardware
14Failed to 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
25Sub switch value out of range
26Action code out of range
27Cannot execute due to corrupt subunit state
28Unrecognized attribute code
29Timeout writing to EEPROM
30Operation is illegal in the subunit's current state
31Unrecognized port number requested
32Invalid write pattern for MATRIXR subunit
33Attempted operation on non-existent channel
34The card cannot be accessed (failed/removed/unpowered)
35Unsupported internal floating-point format (internal error)
36The subunit 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


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



OPAL-RT TECHNOLOGIES, Inc. | 1751, rue Richardson, bureau 1060 | Montréal, Québec Canada H3K 1G6 | opal-rt.com | +1 514-935-2323