I am connected to a HPIB Analyzer using GPIB and CVI.
I use ibwrt and ibrd function to get the data from the Analyzer as given below.
//=========================
//Stops the current measurement in progess
sprintf(cmd, "ABOR;:INIT; *WAI\n");
ibwrt(Analyzer, cmd, strlen(cmd));
/*Returns the result of the calculation for the currently selected marker function*/
sprintf(cmd, "CALC1:MARK:FUNC:RES?\n");
ibwrt(Analyzer, cmd, strlen(cmd));
ibrd(Analyzer, String, 100);
/*Reads the data from the analyzer and stores it in a string */
//=========================
The above code works fine for one Frequency range
Start Freq: 100 Hz
Stop Freq: 6.4 KHz
Start Marker Freq: 1000Hz
Stop Market Freq: 6
000 Hz
But does not work for the below Freq or most of the Frequncies.
Start Freq: 100 Hz
Stop Freq: 1.7 KHz
Start Marker Freq: 200Hz
Stop Market Freq: 1000 Hz
When i start the Test Manualy on the Analyzer everything works fine. Only if i start the test using CVI and get back the data i am getting this error(which works for just one Frequency).
Any help would be appreciated.
Thanks.