PXI

cancel
Showing results for 
Search instead for 
Did you mean: 

Python library "nidcpower" to NI PXIe-4163 SMU returns error on session open "-1074135040: IVI: (Hex 0xBFFA0000) Unrecoverable Failur"

Solved!
Go to solution

> Just a clarification, the 64 bit python example is still failing.

 

This is after changing all parameters to match the functional C# code?

 

> Thankyou for all the debug steps. Very enlightening.

 

You are welcome, we're trying our best.

 


 

I'm unsure what to try next short of actually debugging the failing system 🙁

Marcos Kirsch
Chief Software Engineer
NI Driver Software
Message 31 of 39
(330 Views)

I know this does not solve the issue with the 64 bit python version, but will report, that on my 3rd SMU system, I downgraded to a 32 version of python and the python example session connect worked.

 

Thankyou everyone, for the help. 🙂

0 Kudos
Message 32 of 39
(319 Views)

Yes, changing the address from PXI1Slot  to SMU2 and adding the channel as SMU2/0.

That did not work, same error.

 

The 64 bit python version is still reporting the error on my main SMU system whereas my third SMU system I uninstalled 64 bit python, installed 32 bit version, loaded python libraries and voila, it ran with no error.

0 Kudos
Message 33 of 39
(306 Views)

I forgot to list the fact that you can use the nidaqmx module just fine from the same 64-bit Python executable in this reply. The nidaqmx module calls into the DLL using ctypes just like the nidcpower module.

 

Is using 32-bit Python a reasonable workaround? Otherwise the options I can think of are:

 

  1. hope uninstall / reinstall fixes the problem
  2. slap a C++ debugger and try to see where the problem originates from.

 

Marcos Kirsch
Chief Software Engineer
NI Driver Software
Message 34 of 39
(282 Views)
Solution
Accepted by topic author ChetKnu

No this is a workable solution for me

And enough bread crumbs for the next chap to dig deeper should need be.

Good thread IMO. 😛

 

We de-embedded Anaconda recently btw, having be with a change to their licensing.

 

All good. Just dealing now with the python removal on the primary SMU machine.

 

You can close the ticket as solved*.

 

Thankyou again.

0 Kudos
Message 35 of 39
(280 Views)

If you are/were using Anaconda, I wonder if your path is messed up and while the top-level nidcpower_64.dll DLL is found, the things it libloads on initialize aren't found or fail to load. You could write quick Python code to print that for both your interpreters (32 and 64).

 

You aren't using the stock Python downloaded from python.org?

 

Marcos Kirsch
Chief Software Engineer
NI Driver Software
0 Kudos
Message 36 of 39
(268 Views)

 

The de-embed of Anaconda was performed by our IT group.

 

I loaded a newer 64 bit version of Python before reaching out to the NI community as indicated in my earlier posts. I upgraded all the NI stuff thereafter to the latest.

 

The 32 bit version is working good at this point.

 

All three of my SMU systems have the issue with the 64 bit version of python. I've only updated one with the 32 bit version of python and will report when the other's successfully work.

0 Kudos
Message 37 of 39
(226 Views)

Hi all,

 

I'm encountering the same exact issue - the same 4163 card, same chassis, and same error when using nidcpower. This thread seems to have the best information on the issue so far.

 

I'm wondering if the root cause has been determined, or if a solution other than using 32bit python has been developed? 

 

Thanks!

0 Kudos
Message 38 of 39
(32 Views)

 

Hi,

 

As the author of this thread, I do not have any updates to share other than using the v3.9 32 bit python interpreter. Many libraries have dead-ended at python v3.9 32 bit and the new ones don't have 32 bit available. So it is very limited solution at best.

 

-Chet 

0 Kudos
Message 39 of 39
(25 Views)