Table Of Contents

XNET Convert (Signal to Frame » FlexRay) (G Dataflow)

Last Modified: November 2, 2017

Converts between NI-XNET signals and FlexRay frame data.

connector_pane_image
datatype_icon

session in

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

datatype_icon

signal data

An input that returns a one-dimensional array of signal values. Each signal value is scaled, 64-bit floating point. Each array element corresponds to a signal configured for the session. The order of signals in the array corresponds to the order in the session list.

The data provides the value for the next conversion of each signal.

datatype_icon

error in

Error conditions that occur before this node runs.

The node responds to this input according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Default: No error

datatype_icon

session out

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

datatype_icon

unused payloads

This parameter is empty. No user input is needed.

datatype_icon

frame data

Returns the array of LabVIEW clusters. Each array element corresponds to a frame the session converted.

The elements of each cluster are specific to the FlexRay protocol.

datatype_icon

Slot

This element specifies the slot number within the FlexRay cycle.

datatype_icon

cycle count

An element that specifies the cycle number. The FlexRay cycle count increments from 0 to 63, then rolls over back to 0.

datatype_icon

startup?

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

datatype_icon

sync?

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

datatype_icon

preamble?

A Boolean value that specifies the value of the payload preamble indicator in the frame header. If the frame is in the static segment, preamble? being true indicates the presence of a network management vector at the beginning of the payload. The XNET Cluster FlexRay:Network Management Vector Length property specifies the number of bytes at the beginning.

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.

datatype_icon

chA

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

datatype_icon

chB

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

datatype_icon

echo?

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

datatype_icon

type

The frame type.The decimal value is in parentheses.

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.
datatype_icon

timestamp

An element that represents the absolute time when the XNET interface received the frame (end of frame), accurate to microseconds. The timestamp returned by the conversion is always invalid (0).

datatype_icon

payload

The array of data bytes for FlexRay frames of type FlexRay Data or FlexRay Null. The array size indicates the received frame value payload length.

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?
datatype_icon

error out

Error information.

The node produces this output according to standard error behavior.

Standard Error Behavior

Many nodes provide an error in input and an error out output so that the node can respond to and communicate errors that occur while code is running. The value of error in specifies whether an error occurred before the node runs. Most nodes respond to values of error in in a standard, predictable way.

error in does not contain an error error in contains an error
If no error occurred before the node runs, the node begins execution normally.

If no error occurs while the node runs, it returns no error. If an error does occur while the node runs, it returns that error information as error out.

If an error occurred before the node runs, the node does not execute. Instead, it returns the error in value as error out.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Supported

Web Server: Not supported in VIs that run in a web application


Recently Viewed Topics