FlexRay
- Updated2023-02-17
- 4 minute(s) read
FlexRay
Converts between NI-XNET signals and FlexRay frame data.
Inputs/Outputs

session in
The session to read. This session is returned from XNET Create Session. The session mode must be Conversion.

signal data
An input that returns a one-dimensional array of signal values. Each signal value is scaled, 64-bit floating point.
The data provides the value for the next conversion of each signal.

error in
Error conditions that occur before this node runs.
The node responds to this input according to standard error behavior.
Default value: No error

session out
An output that is the same as session in, provided for use with subsequent nodes.

unused payloads
This parameter is empty. No user input is needed.

frame data
Returns the array of LabVIEW clusters.
The elements of each cluster are specific to the FlexRay protocol.

Slot
This element specifies the slot number within the FlexRay cycle.

cycle count
An element that specifies the cycle number.

startup?
A Boolean value that specifies whether the frame is a startup frame (true) or not (false).

sync?
A Boolean value that specifies whether the frame is a sync frame (true) or not (false).

preamble?
A Boolean value that specifies the value of the payload preamble indicator in the frame header.
If the frame is in the dynamic segment, preamble? being true indicates the presence of a message ID at the beginning of the payload. The message ID is always 2 bytes in length.
If preamble? is false, the payload does not contain a network management vector or a message ID.

chA
A Boolean value that specifies whether the frame was received on channel A (true) or not (false).

chB
A Boolean value that specifies whether the frame was received on channel B (true) or not (false).

echo?
A Boolean value that determines whether the frame was an echo of a successful transmit (true), or received from the network (false).

type
The frame type.
| FlexRay Data (32) | FlexRay data frame. The frame contains payload data. This is the most commonly used frame type for FlexRay. All elements in the frame are applicable. |

timestamp
An element that represents the absolute time when the XNET interface received the frame (end of frame), accurate to microseconds.

payload
The array of data bytes for FlexRay frames of type FlexRay Data or FlexRay Null.
According to the FlexRay protocol, this length range is 0-254.
XNET Convert (Signal to Frame FlexRay) writes the FlexRay frame identification to the following fields:
- slot
- cycle count
- chA/chB
In addition, the following fields are set to their database definition:
- startup?
- sync?
- preamble?

error out
Error information.
The node produces this output according to standard error behavior.