Agilent Technologies InfiniiVision 3000 X-Series Programmer's Manual page 1233

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

Advertisement

Agilent InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
fp);
fclose (fp);
printf("Wrote screen image (%d bytes) to ", num_bytes);
printf("c:\\scope\\data\\screen.png.\n");
/* Download waveform data.
* ------------------------------------------------------------- */
/* Set the waveform points mode. */
do_command(":WAVeform:POINts:MODE RAW");
do_query_string(":WAVeform:POINts:MODE?");
printf("Waveform points mode: %s\n", str_result);
/* Get the number of waveform points available. */
do_command(":WAVeform:POINts 10240");
do_query_string(":WAVeform:POINts?");
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");
Programming Examples
1233
40

Advertisement

Table of Contents
loading

Table of Contents