03-25-2010 02:13 PM
I am trying to Communicate with a E4440a Agilent Spectrum Analyzer over a GPIB connection using C++. does any one know how to communicating using.
Also does any one know how to get this header file to work
#include "decl-32.h" in c++ it says error no file or directory exist but i saw it in a few sample programs.
03-26-2010 08:45 AM
03-26-2010 09:03 AM
03-26-2010 09:09 AM
From other post:
I found this as a location to find the file
But when i try to go there i cant get all the way to that directory there are missing folders
I am using M S visual studio 6.0 2005
As for the examples, have you made sure to actually install the examples? This needs to be selected in the NI-488 installer.
03-26-2010 11:07 AM
03-26-2010 11:38 AM
Your right my mistake its MS Visual Studio 6.0
I installed the NI-488.2.2.7.3
I copied and pasted a example C++ program to communicate over the GPIB and this was the error i got
fatal error c1083: cannot open include files: ni488.h: no such files or directory
I followed this instructions below but was not able to locate the folders after National Instruments\NI-488.2\Languages\Microsoft C
just the ones in bold
Solution:
For development of GPIB programs in Microsoft Studio Visual C/C++, you must include the ni488.h file. Previously, the decl-32.h file provided this information to C compilers. Current driver versions still include a stub decl-32.h that references ni488.h. These files will be located in one of two places, depending on the version of your drivers:
03-29-2010 06:12 PM - edited 03-29-2010 06:13 PM
What operating system are you running? The headers will install in different directories based on this, and once we know this, I can let you know exactly where these files should be. In the meantime you can also do a system search to ensure that you do have these files.
I would also recommend opening up an example shipping program that installs with the driver (not copying and pasting) and running this to ensure that this runs properly and can find the header.
03-30-2010 05:19 AM
04-05-2010 09:17 AM