NI-XNET API for LabVIEW and C

XNET Convert (Signal to Frame Raw).vi

  • Updated2023-11-11
  • 3 minute(s) read
 XNET Convert (Signal to Frame Raw).vi

XNET Convert (Signal to Frame Raw).vi

Purpose

Converts between NI-XNET signals and raw frame data.

Format

Inputs

session in is the session to read. This session is returned from the XNET Create Session VI. The session mode must be Conversion.
signal data 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.

For an example of how this data applies, refer to Conversion Mode.
error in is the error cluster input (refer to Error Handling).

Outputs

session out is the same as session in, provided for use with subsequent VIs.
frame data returns an array of bytes.

The raw bytes encode one or more frames using the Raw Frame Format.

This frame format is the same for read and write of raw data, and it is also used for log file examples.

The data always returns complete frames.

For information about which elements of the raw frame are applicable, refer to the frame read for the protocol in use (the XNET Convert (Signal to Frame CAN) VI, XNET Convert (Signal to Frame FlexRay) VI, or XNET Convert (Signal to Frame LIN) VI).

For an example of how this data applies, refer to Conversion Mode.
error out is the error cluster output (refer to Error Handling).

Log in to get a better experience