Error -1074384283 When Writing Above 8 Bytes of Payload in XNET Write Raw Frame

Updated Jul 19, 2024

Reported In

Driver

  • NI-XNET

Issue Details

I m trying to send CAN FD + BRS frames with LabVIEW XNET shipping example that uses XNET Write Frame Raw VI. I noticed that I could only send up to 8 bytes and if I write more than 8 bytes in the payload length section, I get the error -1074384283.
NotOK.png

Solution

The Raw Frame Format requires array length for payload length section to be the same with the size of the payload length. For example, to send 16 bytes of payload for CAN FD + BRS frame, the array length for payload section needs to be extended to 16. 
ExampleWOrking.png

Additional Information

The PayloadLength indicates the number of valid data bytes in Payload. For all standard CAN and LIN frames, PayloadLength cannot exceed 8. Because this base unit always contains 8 bytes of payload data, the entire frame is contained in the base unit, and no additional payload units exist. For CAN FD frames, PayloadLength can be 0–8, 12, 16, 20, 24, 32, 48, or 64.