XNET Convert (Byte Array to Frame Raw) VI
- Updated2024-07-10
- 3 minute(s) read
Converts signal data to NI-XNET raw frame data.

Inputs/Outputs
![]() 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. ![]() 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 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. ![]() 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. |