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

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?

Marcos Kirsch
Chief Software Engineer
NI Driver Software
Message 11 of 35
(107 Views)

ChetKnu_0-1744040335507.png

 

import nidcpower
import nidcpower.errors

try:
    session = nidcpower.Session(resource_name='PX1Slot3')
    session.abort()
except nidcpower.errors.DriverError as e:
    print(f"DriverError: {e.code} - {e.description}")
except Exception as e:
    print(f"An unexpected error: {e}")
 
ChetKnu_1-1744040373337.png

 

0 Kudos
Message 12 of 35
(101 Views)

Sorry, I had a error in slot naming, same result either way... trying multiple things

 

ChetKnu_0-1744040654465.png

 

0 Kudos
Message 14 of 35
(97 Views)

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)

```



Jay
Senior Software Engineer
Driver Software
National Instruments
Message 15 of 35
(87 Views)
import nidcpower
import nidcpower.errors

try:
    session = nidcpower.Session(resource_name='PXI1Slot3',channels='1',independent_channels=False)
    session.abort()
except nidcpower.errors.DriverError as e:
    print(f"DriverError: {e.code} - {e.description}")
except Exception as e:
    print(f"An unexpected error: {e}")
 
ChetKnu_0-1744041714670.png

 

ChetKnu_1-1744041737720.pngChetKnu_2-1744041753775.png

 

 
0 Kudos
Message 16 of 35
(73 Views)

Please remove the try/except. Let's see exactly which C library call the error is coming back from.

Marcos Kirsch
Chief Software Engineer
NI Driver Software
Message 17 of 35
(41 Views)

>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).


Jay
Senior Software Engineer
Driver Software
National Instruments
Message 18 of 35
(41 Views)

Removed try/except trap:

ChetKnu_0-1744049454616.png

import nidcpower
import nidcpower.errors

session = nidcpower.Session(resource_name="PXI1Slot3",channels="1",independent_channels=False,)
session.abort()
 
more simplier form:
ChetKnu_0-1744049538602.png

 

import nidcpower
import nidcpower.errors

session = nidcpower.Session(resource_name="PXI1Slot3")
session.abort()
0 Kudos
Message 19 of 35
(32 Views)

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.

 

import nidaqmx

with nidaqmx.Task() as task:
    task.ai_channels.add_ai_voltage_chan("PXI1Slot2/ai0")
    test = task.read()
    print(test)
 
ChetKnu_0-1744050313591.png

 

0 Kudos
Message 20 of 35
(28 Views)