XNET Read (State FlexRay Comm) VI
- Updated2025-10-07
- 4 minute(s) read
Reads the state of FlexRay communication using an XNET session.

Inputs/Outputs
session in
—
session in is the session to read. This session is selected from the LabVIEW project or returned from the XNET Create Session VI.
error in (no error)
—
The error in cluster can accept error information wired from VIs previously called. Use this information to decide if any functionality should be bypassed in the event of errors from other VIs. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed.
session out
—
session out is the same as session in, provided for use with subsequent VIs.
FlexRay comm
—
FlexRay comm returns a LabVIEW cluster containing the communication elements. The elements are:
error out
—
The error out cluster passes error or warning information out of a VI to be used by other VIs. The pop-up option Explain Error (or Explain Warning) gives more information about the error displayed. |
Description
You can use the XNET Read (State FlexRay Comm) VI with any XNET session mode, as long as the session interface is FlexRay. Because the state reflects the FlexRay interface, it can apply to multiple sessions.
Your application can use the XNET Read (State FlexRay Comm) VI to check for problems on the FlexRay network independently from the other aspects of your application. For example, you intentionally may introduce noise into the FlexRay cables to test how your ECU behaves under these conditions. When you do this, you do not want the error out of NI-XNET VIs to return errors, because this may cause your application to stop. Your application can use the XNET Read (State FlexRay Comm) VI to read the FlexRay network state quickly as data, so that it does not introduce errors into the flow of your LabVIEW VIs.
session in
—
error in (no error)
—
session out
—
FlexRay comm
—
fault code
—
fault?
—
FlexRay POC state
—
error out
—