07-01-2008 04:35 PM
07-02-2008 08:58 AM
07-02-2008 09:30 AM
Hi Song,
Well, I knew what I was looking for must be out there somewhere. But is nearly overwhelming to start looking... : )
The path is slightly different, but the example here:
C:\Documents and Settings\All Users\Documents\National Instruments\NI-VISA\Examples\C\General\RdWrt.c
is what I was looking for.
For anyone else doing this with Dev-C++, I downloaded version 4.9.9.2 from the internet, and it installed with no issues.
I then created a new project, and added the above example file "RdWrt.c" to the project.
I set the project type to console, and I selected "C" program, not C++.
I had to change the # include visa.h to be #include "C:\VXIPNP\WinNT\include\visa.h" (Is this the right way to do this? It works...)
Then I added the library to the linker by selecting Project -> Project Options and then the Parameters tab in the dialog box.
The press the add libarary or object button, and I selected the path C:\VXIPNP/WinNT/lib/msc/visa32.lib In this case, the msc library worked for me in Dev-C++. I don't know if this means all of needed VISA functions are now available to me or not. But so far this works.
Next select Execute -> compile, followed by Execute -> run. And this works.
You have no idea how good it feels to reach this point. I estimate it took me about 2 days, with many wrong turns, and with a lot of internet reading before settling on Dev-C++ as the IDE. At this point, I have a "hello GPIB instrument" executable, and I think I will be able to do whatever I need to from here.
I hope this is useful information for others. And thanks for your help.
Mike
07-02-2008 12:09 PM