Reads the state of FlexRay communication using an XNET session.


icon

Inputs/Outputs

  • cgenclassrntag.png 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.

  • cerrcodeclst.png 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.

  • igenclassrntag.png session out

    session out is the same as session in, provided for use with subsequent VIs.

  • icclst.png FlexRay comm

    FlexRay comm returns a LabVIEW cluster containing the communication elements. The elements are:

  • ii32.png fault code

    fault? indicates that a fault occurred, and its code is available is fault code.

  • ibool.png fault?

    fault? indicates that a fault occurred, and its code is available is fault code.

  • iu8.png FlexRay POC state

    POC state specifies the FlexRay interface state (decimal value in parentheses):

  • iu8.png clock correction failed

    clock correction failed returns the number of consecutive even/odd cycle pairs that have occurred without successful clock synchronization. If this count reaches the value in the XNET Cluster FlexRay:Max Without Clock Correction Passive property, the FlexRay interface POC state transitions from Normal Active to Normal Passive state. If this count reaches the value in the XNET Cluster FlexRay:Max Without Clock Correction Fatal property, the FlexRay interface POC state transitions from Normal Passive to Halt state. In the FlexRay specification, this value is referred to as vClockCorrectionFailed.

  • iu8.png passive to active count

    passive to active count returns the number of consecutive even/odd cycle pairs that have occurred with successful clock synchronization. This count increments while the FlexRay interface is in POC state Error Passive. If the count reaches the value in the XNET Session Interface:FlexRay:Allow Passive to Active property, the interface POC state transitions to Normal Active. In the FlexRay specification, this value is referred to as vAllowPassiveToActive.

  • ibool.png fault?

    fault? indicates that a fault occurred, and its code is available is fault code.

  • ibool.png fault?

    fault? indicates that a fault occurred, and its code is available is fault code.

  • ierrcodeclst.png 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.