Automotive and Embedded Networks

cancel
Showing results for 
Search instead for 
Did you mean: 

Is NI-CAN v2.3 & NI PCI-CAN/XS2 with Frame API Thread Safe?

Hi, I'm downloading a file from the host computer to the modules. When I downloaded the data to the four module at the same time (with 4 threads), I'm getting communication failure ~ 20% of the time. When I synchronized the software, so it will download two modules at a time (using one port from each card at a time). The communication failure disappeared. I just wonder if the NI-CAN software & PCI-CAN/XS2 are thread-safe. I'd appreciate if anyone have any suggestion.
 
Information of the software & hardware
- Computer: Pentium4 2.8GHz, 512M Ram
- OS: Windows 2000
- Development Tool: Borland C++ Builder v5
- NI-CAN v2.3 - The application is using Frame API
- PCI-CAN/XS2 (SW-Selectable CAN, 2 Ports)
- CAN bus: 500k High Speed
 
Thanks
Eric
 
 
 
0 Kudos
Message 1 of 2
(3,229 Views)
The NI-CAN software does support threads. What's the specific error you're getting that 20% of the time? It may be due to something besides the multi-threading.

Regards,
Matt S.

LabVIEW Integration Engineer with experience in LabVIEW Real-Time, LabVIEW FPGA, DAQ, Machine Vision, as well as C/C++. CLAD, working on CLD and CLA.
0 Kudos
Message 2 of 2
(3,221 Views)