Double check which CAN read and write functions you are using. There are 2 different ways to read and write to the bus, CANobject, and CANnet.
CANobjects use a ObjectHandle to refer to just that object, meaning you can assign and configure 1 CAN message with that object. If you try to use the wrong object handle for the wrong CAN message you will get errors. Each CAN message will usually have its own object handle.
CANnet is a more basic function, the CANreadNet and CANwriteNet basically are a simple way of sending and recieving any CAN message. If you are sending and recieving strictly with CANnet calls, they will usually share the same NCCANconfigure, meaning you use 1 object handle to refer to the CAN bus interface for both reads and writes.
the CANo
bject reads and writes are more complex, but they do have distinct advantages, and the CANnet reads and writes are more primitive, but also more universal.
Check out the NI-CAN examples for more help at this link;
<>
>