08-25-2023 03:24 PM
I have been successfully using the nidaqmx Python package to run a cDaq-9174 with multiple modules. I also have another successful Python application that uses Kvaser canlib for CAN communications. When I try to add this CAN communications functionality to the working application I've been using with the cDaq-9174, I get an error of:
nidaqmx.errors.DaqError: The specified software component is not available. The component was not loaded.
I also get:
ResourceWarning: Task of name "ni9205" was not explicitly closed before it was destructed. Resources on the task
device may still be reserved.
This error occurs on the following line that has previously been working correctly:
08-25-2023 03:40 PM
What if you use only nidaqmx with python and kvaser software, or kvaser can with python and Test Panels?
08-25-2023 04:01 PM
Thanks for the tip. I tried that. I am able to access the Kvaser with CAN King while my nidaqmx app is running without either crashing. Also, looks like they are on different ports. So it's not a port conflict.
I did find an article talking about dependency conflicts. If two packages use the same dependencies but different versions of that dependency, that can cause this because only one version of a dependency package can be loaded at a time. Now I am digging into what dependencies nidaqmx and canlib have to see if I can see if there are conflicts.
08-26-2023 03:13 PM
I am adding an example script that demonstrates the error I am encountering. The attached script runs as expected until I uncomment either of the import lines for canlib components.