06-03-2021 09:55 AM
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
06-04-2021 11:35 AM
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
06-14-2021 12:38 AM
have the same problem using nidcpower package in python.
06-14-2021 02:00 AM
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
03-18-2022 07:43 AM
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
03-18-2022 08:55 AM
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
03-18-2022 09:01 AM
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.
02-04-2025 08:14 AM
Has anyone been able to figure this out yet? Having the same issue with NI-Switch with a Java wrapper.