10-29-2019 06:25 PM
Hello NI experts,
I am trying to develop an application with mingw32 (windows 7 - 64 bits) to control an external multimeter via GPIB. Manual explanation (370428.pdf) seems pretty forward. There is the direct access method (case 1) using the gpib-32.dll (or ni4882.dll).
Case 1 is not working. I am using the code found in the direct access examples.
ni4882Lib = LoadLibrary ("C:\\Windows\\SysWOW64\\gpib-32.dll");
I tried both gpib-32.dll or ni4882.dll (using respectively ni488.h and ni4882.h in my code). It seems the dll cannot be loaded.
I also tried the solution (case 2) from an old post on this forum as the setup seems similar.
In this case, I have created the object file from the dll. So far I am able to compile using directly the API. But as soon as I am running my exe file in the enduser software. I have a timeout and it stops (even code is not going through any of the ibxxx command).
I miss probably something but I cannot figure out what (32 bits / 64 bits / compilation options / ...)
Any advice on either case 1 or case 2 is welcome.
Thanks in advance for any suggestion
Serge
10-29-2019 10:39 PM
Hello NI experts,
After discusssin with some people. My issue is related to our system setup. COde compiled is executed on a different CPU that cannot access directly the GPIB adapter. We will need to find another approach
Thanks