05-12-2014 08:54 AM
Hello,
I have been trying to write C code to automate a Keithley 2410 through GPIB. I am using Windows XP 32-bit, and VC++.
I believe I was successful in getting a handle to the gpib-32.dll. However, I am getting a linking error when I try to use ibsta: 1>helloworld.obj : error LNK2001: unresolved external symbol _ibsta
1>C:\Documents and Settings\Prober\My Documents\C Programs\helloworld\Debug\helloworld.exe : fatal error LNK1120: 1 unresolved externals
However, when I look through the ni488.h, I see that ibsta is a global variable. Therefore I am confused as to why I am getting a linking error
I am following this guide: http://na.tm.agilent.com/pna/help/latest/Programming/GPIB_Example_Programs/GPIB_using_Visual_C++.htm
My code is attached 🙂
05-13-2014 04:57 PM
Check out the 4882query.c
example located on your computer at National Instruments > NI-488.2 > Examples > Standard C > 4882query
. The National Instruments folder might be in a sub-folder of Public or Public Documents. Look at the ReadMe.txt
file first. It contains a C++ section. Then try compiling the example and see what happens.