I have been having a problem initializing session using python nidcpower.
code:
import nidcpower
import numpy as np
from time import sleep
import datetime
class SMU:
def __init__(self,device_name ='PXI1Slot2' , channels = '0', options = {"simulate": True}):
self.session = nidcpower.Session(device_name, channels)
self.session.measure_when = nidcpower.MeasureWhen.AUTOMATICALLY_AFTER_SOURCE_COMPLETE
error:
File "C:/Users/valentinasa/Desktop/PD setup Scripts/PD GUI/PXIESMU.py", line 99, in <module>
PX1440 = SMU()
File "C:/Users/valentinasa/Desktop/PD setup Scripts/PD GUI/PXIESMU.py", line 19, in __init__
self.session = nidcpower.Session(device_name, channels)
File "C:\ProgramData\Anaconda3\lib\site-packages\nidcpower\session.py", line 3995, in __init__
self._vi = self._initialize_with_channels(resource_name, channels, reset, options)
File "C:\ProgramData\Anaconda3\lib\site-packages\nidcpower\session.py", line 5075, in _initialize_with_channels
errors.handle_error(self, error_code, ignore_warnings=False, is_error_handling=False)
File "C:\ProgramData\Anaconda3\lib\site-packages\nidcpower\errors.py", line 95, in handle_error
raise DriverError(code, description)
DriverError: -1074135040: IVI: (Hex 0xBFFA0000) Unrecoverable Failure.
The instrument itself works as expected if using "NI_DCPower soft front panel", all modules shows up in the software and self calibration works and etc. The example code attached was also working, but it seems to have start giving this error after windows update. don't know exactly which one(maybe KB5003637), but other computer has the same results were you cant even simulate the instrument.
I have tried reinstalling all NI software including deleting everything using package manager , deleting package manager itself and having a clean install(installed software attached in software.png)
Any help would be appreciated .