04-07-2025 10:09 AM
I'll be honest that this is stumping us. You are the first to report it.
The driver seems to work, overall... except when called from python.exe
We can tell that the driver library loads successfully, and the error code is coming back from apparently the initialize function.
Could you try to capture the NI I/O Trace output to see exactly what parameters are being passed into it?
04-07-2025 10:39 AM
04-07-2025 10:42 AM
04-07-2025 10:44 AM
Sorry, I had a error in slot naming, same result either way... trying multiple things
04-07-2025 10:57 AM - edited 04-07-2025 11:03 AM
It looks like the wrong init function is being called, given your arguments. Try
```
session = nidcpower.Session(resource_name='PXI1Slot3',channels='0', independent_channels=False)
```
04-07-2025 11:03 AM
04-07-2025 12:42 PM
Please remove the try/except. Let's see exactly which C library call the error is coming back from.
04-07-2025 12:51 PM - edited 04-07-2025 12:51 PM
>It looks like the wrong init function is being called, given your arguments.
Please disregard this comment. niDCPower_InitializeWithChannels is deprecated in favor of niDCPower_InitializeWithIndependentChannels (which you are calling and which does accept individual channel names, if you are only opening a session to a single device).
04-07-2025 01:11 PM - edited 04-07-2025 01:12 PM
Removed try/except trap:
04-07-2025 01:26 PM
Not to go off topic, but using the python daqmx library, I have no issue communicating with the PXIe-6341 DAQ in slot 2 of the PXI mainframe PXIe-1084, over the Thunderbolt interface PXIe-1084.