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 37
(130 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 37
(118 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 37
(106 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 37
(82 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 37
(80 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 37
(67 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 37
(25 Views)