Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

IVI unrecoverable failure at initialization with nidmm and niswitch

Hi all,

I've developped several test benches with PXI chassis including DMM (PXI-4065) and Switch (PXI-2432) cards, and using Python to communicate with the equipments. Computers are running on Windows 10 Pro (x64) and I'm using the NI 20.0 drivers and Python 3.7 with the most recent modules for NI. All of the set up were running nicely but whitin a month, each of these set up went down because the nidmm.session or niswitch.session used to initialize the cards lead to an IVI unrecoverable failure at initialization. Would you have an idea of what could be the root cause of the issue which is occuring on every of the systems ?

Thanks a lot

Message 1 of 8
(2,569 Views)

Here is an update of the issue. I tried to connect my DMM and switch cards directly using the dll file with this code : 

import ctypes
import visatype

niswitchDLL = ctypes.cdll.LoadLibrary(r'C:\Program Files\IVI Foundation\IVI\Bin\niswitch_64.dll')
resource_name_ctype = ctypes.create_string_buffer('PXI1Slot4'.encode('windows-1251'))
topology_ctype = ctypes.create_string_buffer('2534/1-Wire 8x32 Matrix'.encode('windows-1251'))
simulate_ctype = visatype.ViBoolean(False)
reset_device_ctype = visatype.ViBoolean(True)
session = visatype.ViSession()

switch = niswitchDLL.niSwitch_InitWithTopology(resource_name_ctype, topology_ctype,simulate_ctype,
reset_device_ctype, ctypes.pointer(session))

return switch

 

But I always get -107413540 which correspond to IVI : (Hex 0xBFFA0000) Unrecoverable Failure

Please note that I've already installed the last version from IVI compliance components without solving the error.

I've read this issue could from failing to load the IVI engine but I don't know what could prevent the computer to load the IVI engine.

I'm open to any kind of proposition to solve this because I really don't know where to look at.

Thanks

 

Message 2 of 8
(2,512 Views)

have the same problem using nidcpower package in python.

Message 3 of 8
(2,470 Views)

Hi Valentinas,

We were able to solve this issue by rolling back our computers and windows OS to factory settings. Maybe this could solved your issue with the niDCpower module.

The problem is that we don't know if this issue can come back on the rolled back system and how to solve it except by doing this hard reset.

Regards

0 Kudos
Message 4 of 8
(2,465 Views)

Hello @RomainFoissac,

 

i see the same problem here on a fresh installed pxi system with Windows 10. Also nidmm and niswitch at the initialization step.

It used to work with a windows 7 OS.

Which OS are you using?

Do you found a solution / the reason meanwhile?

 

BR

TM

0 Kudos
Message 5 of 8
(2,238 Views)

Hi,

 

The issue occured on a Windows 10 OS.

 

The issue was coming from the antivirus installed by the IT service (Eset Endpoint Security). Removing this antivirus allowed to recover a proper functionning of niswitch and nidmm.

 

I hope it can help.

 

Best regards

Romain

0 Kudos
Message 6 of 8
(2,228 Views)

Thanks for the info. But here i only have the pure Windows 10 installed without any antivirus software 😞

Which version of NI ICP and are you using? I have the newest from packagemanager.

 

0 Kudos
Message 7 of 8
(2,224 Views)

Has anyone been able to figure this out yet? Having the same issue with NI-Switch with a Java wrapper.

0 Kudos
Message 8 of 8
(195 Views)