
148
Chapter 3
Programming Examples
Entering Amplitude Correction Data
/*Remove the "," from the amplitude correction for analyzing data*/
cToken = strtok(cResult,",");
/*Store the array (frequency) value into a two-dimensional real array*/
aRealArray[lFreq=0][lCount=0] = atof( cToken);
/*Remove the "," from the amplitude correction for analyzing data*/
cToken =strtok(NULL,",");
/*Store the array(amplitude) value into a two-dimensional real array*/
aRealArray[lAmpltd=1][lCount] = atof(cToken);
while (cToken != NULL)
{
+;
if (lCount == iNoOfPoints)
{
lCount --;
break;
}
/*Remove the "," from the amplitude correction for analyzing data*/
cToken =strtok(NULL,",");
/*Store the array (frequency) value into a two-dimensional real array*/
aRealArray[lFreq][lCount] = atof(cToken);
cToken =strtok(NULL,",");
/*Store the array (amplitude) value into a two-dimensional real array*/
aRealArray[lAmpltd][lCount] = atof(cToken);
}
/*Display the contents of the array.*/
for (long i=0;i<=lCount;i++)
{
printf("\tFrequency of point[%d] =
%
f MHz\n",i,aRealArray[lFreq][i]/1e6);
printf("\tAmplitude of point[%d] =
%
f dB\n",i,aRealArray[lAmpltd][i]);
}
/*Close the session*/
viClose(viESA);
viClose(defaultRM);
}
Содержание E7401A
Страница 36: ...36 Commands Alphabetical Listing ...
Страница 92: ...92 Chapter 2 Status Registers Use Status Registers to Determine the State of Analyzer Events and Conditions ...
Страница 185: ...185 4 Programming Command Cross References ...
Страница 283: ...Chapter 5 283 Language Reference SENSe DETector Subsection Figure 5 4 Auto Rules of Detector Selection ...
Страница 339: ...339 6 Agilent 8590 EMC Analyzers Programming Conversion Guide ...