XNET Convert (Byte Array to Frame CAN).vi
- Updated2023-11-11
- 4 minute(s) read
XNET Convert (Byte Array to Frame CAN).vi
Purpose
Converts between an NI-XNET byte array signal and CAN 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 the 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 the array of LabVIEW clusters.
Each array element corresponds to a frame the session converted. The elements of each cluster are specific to the CAN protocol. For more information, refer to Summary of the CAN Standard or the CAN protocol specification. The cluster elements are:
|
||||||||||||
![]() |
error out is the error cluster output (refer to Error Handling). |










