Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

My 16-bit EasyWin program can't communicate with the GPIB board.

I developed an EasyWin 16bit application using Borland Turbo C++ version 4.5. I downloaded the language specific files and followed the examples, however, the GPIB board will not communicate with this program. The GPIB board works fine with LabView and the troubleshooter shows it is okay. I have included the Windecl.h and linked with the gpib.lib files that I downloaded and the program compiles and links okay, but I don't get any response from the GPIB board when I run it. NI Spy also shows no activity when I run the EasyWin program, yet I see all the GPIB traffic with my LabView program.

Here is some of the code I am trying to execute (the gpiberr function is from the examples):

if (ibfind(0) < 0)
gpiberr("ibfind Error");

Bd = ibdev (GPIB0, 4, 0, T10s, 1, 0);
if (Bd < 0)gpiberr("ibdev Error");

Both of these functions will return the EDVR error code.

Any advise would be greatly appreciated.
0 Kudos
Message 1 of 2
(3,340 Views)
I'm not familiar with EasyWin or Labview but maybe your problem is similar to one I had with a DOS window...
I was trying to run Turbo C++ code from a DOS window in Windows 98. In my case the PCI-GPIB card worked fine from the NI communicator window but not from my program running in the DOS window. For me the solution was to follow the instructions for enabling DOS support. I found the instructions to do this in one of the manuals.
0 Kudos
Message 2 of 2
(3,340 Views)