XNET Convert (Byte Array to Frame Raw).vi
- Updated2023-11-11
- 2 minute(s) read
XNET Convert (Byte Array to Frame Raw).vi
Purpose
Converts between an NI-XNET byte array signal 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 contains a byte array representation of the signal value. The bytes will be transferred 1:1 to the signal in the frame.
If the session contains more than one signal, or the signal cannot be represented as a byte array, an error is returned. The data provides the value for the next conversion of each signal. |
![]() |
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 the 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). |





