Agilent Technologies InfiniiVision 3000 Programmer's Manual page 1136

X-series
Hide thumbs Also See for InfiniiVision 3000:
Table of Contents

Advertisement

39
Programming Examples
1136
printf("Waveform points available: %s\n", str_result);
/* Set the waveform source. */
do_command(":WAVeform:SOURce CHANnel1");
do_query_string(":WAVeform:SOURce?");
printf("Waveform source: %s\n", str_result);
/* Choose the format of the data returned (WORD, BYTE, ASCII): */
do_command(":WAVeform:FORMat BYTE");
do_query_string(":WAVeform:FORMat?");
printf("Waveform format: %s\n", str_result);
/* Display the waveform settings: */
do_query_numbers(":WAVeform:PREamble?");
wav_format = dbl_results[0];
if (wav_format == 0.0)
{
printf("Waveform format: BYTE\n");
}
else if (wav_format == 1.0)
{
printf("Waveform format: WORD\n");
}
else if (wav_format == 2.0)
{
printf("Waveform format: ASCii\n");
}
acq_type = dbl_results[1];
if (acq_type == 0.0)
{
printf("Acquire type: NORMal\n");
}
else if (acq_type == 1.0)
{
printf("Acquire type: PEAK\n");
}
else if (acq_type == 2.0)
{
printf("Acquire type: AVERage\n");
}
else if (acq_type == 3.0)
{
printf("Acquire type: HRESolution\n");
}
wav_points = dbl_results[2];
printf("Waveform points: %e\n", wav_points);
avg_count = dbl_results[3];
printf("Waveform average count: %e\n", avg_count);
x_increment = dbl_results[4];
printf("Waveform X increment: %e\n", x_increment);
x_origin = dbl_results[5];
Agilent InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide

Advertisement

Table of Contents
loading

Table of Contents