From NI Max 18x, clicking on Test Panels for either a NI PXIe 4140 or a NI PXIe 4113, brings up the Instrument Studio, which proceeds to show an initialization error -1074106671. Our code errors out with the same error when calling "niDCPower Initialize with Channels". Instrument Studio claims "Error description not found", our code claims "An internal error has occurred".
This setup used to work, some equipment on GPIB/USB and USB was moved around but the PXI mainframe wasn't touched. I've updated NI-488, VISA, Switch, DCPower and DAQmx to the latest, but no luck.
How does one track this error down?
Could you please provide the versions you have installed for each piece of software you are using? This should include at least those mentioned in your previous email but a full list could be useful.
After spending two days, uninstalling/installing NI packages and or repairing some installation, applying Windows patches, etc, it seems that with each try things got worse and worse with progressively worse failure modes. It went from giving the error code above, to crashing with a segmentation violation, to completely going puff and disappearing, to disabling some of our USB-Serial adapters (?!)
I'll be nuking that computer and cloning it again from one of our images. I brought another computer in and things work fine (after installing the few pieces of software that were missing on that one.)
Maybe there's some bad sectors, maybe bad memory, maybe some corrupted file ....
It is definitely possible that there could be some corrupt software working against you. In those cases, it is often a good idea to perform a force reinstall on the software to ensure it is properly installed. For future reference, a guide on force reinstalling can be found here.
@hdellereit is often a good idea to perform a force reinstall on the software to ensure it is properly installed.
That's what I tried for a day and a half and things just kept going south. In my case it is much easier to clone a machine from a working one.