Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Is NI-CAN threadsafe?

Can I use NI-CAN functions like ncwrite,ncread etc. simultaneous in 6 different threads? I have three PXI CAN-2port cards, 6 ports configured as separated CAN-objects.
0 Kudos
Message 1 of 2
(3,688 Views)
Hi,

From what you described, you want to handle each port in a separate thread. If that is the case, you shouldn't have any problems.

They only problem I've seen is using ncWait in to threads for the same CAN object.

DiegoF.
0 Kudos
Message 2 of 2
(3,688 Views)