I want to communicate with a 33120A waveform generator in Visual Studio 2008.
I found these examples:
http://www.home.agilent.com/agilent/edi ... SR.General
I've downloaded the example for C++ (no C# example is available ).
I want to test "SimpleSine". I have included visa.h and visa32.lib from IVI Foundation (C:\Programme\IVI Foundation\VISA\WinNT...).
This is the main program of the example:
When I debug this program the last two lines after the big comment (strcpy...) will NEVER be executed. There are no warnings or errors within Visual Studio.
What's wrong?
I can communicate with the 33120A with the Agilent Connection Expert.
I've done a debugging in detail ... maybe it is useful for solving my problem:
After running through every line of all files I've found a error message in the command line:
This error first occurs within the string variable "p" (and is then copied to "lfbuf") in these lines of codes in "write.c":
After returning to "void main" the following method is executed (in crt0dat.c) instead of the last two lines in the main code above:
I found these examples:
http://www.home.agilent.com/agilent/edi ... SR.General
I've downloaded the example for C++ (no C# example is available ).
I want to test "SimpleSine". I have included visa.h and visa32.lib from IVI Foundation (C:\Programme\IVI Foundation\VISA\WinNT...).
This is the main program of the example:
When I debug this program the last two lines after the big comment (strcpy...) will NEVER be executed. There are no warnings or errors within Visual Studio.
What's wrong?
I can communicate with the 33120A with the Agilent Connection Expert.
I've done a debugging in detail ... maybe it is useful for solving my problem:
After running through every line of all files I've found a error message in the command line:
This error first occurs within the string variable "p" (and is then copied to "lfbuf") in these lines of codes in "write.c":
After returning to "void main" the following method is executed (in crt0dat.c) instead of the last two lines in the main code above: