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.

OpNI-CAN Send

Block

Mask

Description

The OpNI-CAN Send block allows sending a CAN message for one Standard or Extended identifier. The block refers to a physical port that is configured in the OpNI-CAN Ctl block.

Parameters

Controller IDControllerID refers to the OpNI-CAN Ctl block where the CAN port configuration is provided.
IdentifierIdentifier of the message to be sent.
Identifier TypeNormal type allows 11 bits identifier while extended allows 29 bits.
Input Line WidthList that defines how the data from the CAN message is supplied on the Data input pin. The list is handled from left to right and starts at Byte 0 of the CAN message. ie. A list of [4 4 8] means that the first (MSB) 4 bits of CAN message Byte 0 will be supplied on the Data input pin followed by the next 4 bits of Byte0 and the 8 bits formingByte1.
Cyclic Transmission rate in msEnable the use of the internal card timer in order to manage packet interval timing. When set to0, the message is sent each time the block is called. When set to values greater than 0, the message are sent at each specified interval and the data is updated when the block is called. The interval starts when the block is called for the first time.
Use enableCreates an additional inport which can be used to enable or disable transmission. Set it to 0 to disable and 1 to enable.
Data packingThis option allows to format data packing for compatibility with other devices. 2 notions are implied.


The first specifies if the packing of the signal should be started from the start or end of the packet. If Signal 1 to N is selected, packing will start from the less significant bits of the first transmitted byte. If Signal N to 1 is selected, packing will start from the most significant bits of the last transmitted byte and progress backward into the packet.

The second specifies if groups of 8, 16 or 32 bits must be permuted within the packet with respect to its middle boundary. Swapping is performed after signal packing.

Signal 1 to N - No swapping corrsponds to the Intel formatwhile Signal N to 1 - Swap 8-bit corresponds to the Motorolaformat.

Inputs

DataVector containing the values of the message to be sent in the format specified in the Input Line Width List parameter.
EnableOptionnal inport to to enable or disable ttransmission.


Outputs

Error: Send Error value. The following table shows possible values and meaning:

Error values
0No Error
-1Bus Error

Status: Currently, it is always 0.

Characteristics and Limitations

Board

The PXI-CAN board is very sensitive to IRQ problems. In the PXI chassis, the model can crash silently if the board is sharing its IRQ line with other devices. If crashes are experienced, changing the PXI slot may correct the problem, if not, use the BIOS utility to assign a nIRQ line exclusively for the CAN board.

Direct FeedthroughNo
Discrete sample timeYes
XHP supportNo
Work offlineNo

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