09-04-2007 09:05 AM
09-04-2007 09:54 AM
09-05-2007 03:17 AM
Ok.
I've managed to get further, using this example: http://www.rohde-schwarz.com/www/rs_sc.nsf/faq/FSPxAnalyzerre.html
problem is, this is Visual Basic in Excel, and I would really like to use it in the language C in another enviroment.
does anyone have any tips?
09-05-2007 07:03 AM
09-05-2007 07:58 AM
09-05-2007 08:37 AM
DAV C++ uses a GCC based compiler. The VISA DLL is compiled with MSVC. This will cause a problem with the calling convertions used and expected.
Basiclly the visa DLL uses 'viOpenDefaultRM' but the GCC expects viOpenDefaultRM@4, and thus can't find it in the DLL. You can solve this manually.
The basic steps are:
1. Generate a .def file from the DLL for example with pexports.
2. correct the .def file so all the functions have the correct decorations as expected by GCC.
3. Create a new import library,
For more infomation see this post about the same issue with NI-DAQmx
An other option would be to use the Visual Studio 2005 express editions?
And in some configuration you will need to buy a license to use NI-VISA: http://www.ni.com/visa/license.htm
Hope this helps
Karsten
09-06-2007 03:23 AM
09-06-2007 10:08 AM