Hey everyone,
I am currently working on a project that uses a NI PXI-4070 DMM as part of a NI PXI-1056 chassis. Our company is currently looking to update an old Windows XP computer to Windows 10/11; however, our custom VB6 application seems to only run correctly on Windows XP for the moment. In the process of troubleshooting, one of the biggest hurdles so far has been the combination of Windows 11, VB6, and the PXI-4070 card. With this, we have the following line of code to initialize the DMM and check the response:
DMMStatus = niDMM_init(NewSessionName, PI_VI_TRUE, PI_VI_TRUE, NiDMM.Handle) \\ in our code this will be equal to niDMM_init(PXI1Slot3, 1, 1, -1)
Where DMMStatus is a ViStatus, and we expect this value to be zero if the initialization passes, but we get -1074315028. Additionally, I have tried to replace the IVI logical name "PXI1Slot3" with the DAQ number "PXI7::14::INSTR", but just get a different DMMStatus return of -1074118656. To verify that all software and hardware was working correctly, I went into NI MAX to perform a self-test on the DMM, and it failed both test/cal with Status Code: -223911; however, the device works correctly in the NI-DMM Soft Front Panel (images attached). To clarify, the function returning DMMStatus works correctly on Windows XP but not on Windows 10/11. Any help would be appreciated in figuring out what is causing this problem.
Thanks,
M. Campbell
Reference Info:
NI Package Manager 2023 Q2
NI MAX 2023 Q2
NI-DMM 2023 Q1.1
NI-DMM Soft Front Panel 19.1.0