Agilent Technologies InfiniiVision 3000 Programmer's Manual page 1180

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

Advertisement

39
Programming Examples
}
/* Initialize the oscilloscope to a known state.
* --------------------------------------------------------------- */
void initialize (void)
{
}
/* Capture the waveform.
* --------------------------------------------------------------- */
void capture (void)
{
1180
/* Capture data. */
capture();
/* Analyze the captured waveform. */
analyze();
/* Close the device session to the instrument. */
iclose(id);
printf ("Program execution is complete...\n");
/* For WIN16 programs, call _siclcleanup before exiting to release
* resources allocated by SICL for this application.
* a no-op for WIN32 programs.
*/
_siclcleanup();
/* Set the I/O timeout value for this session to 5 seconds. */
itimeout(id, TIMEOUT);
/* Clear the interface. */
iclear(id);
/* Get and display the device's *IDN? string. */
do_query_string("*IDN?");
printf("Oscilloscope *IDN? string: %s\n", str_result);
/* Clear status and load the default setup. */
do_command("*CLS");
do_command("*RST");
int num_bytes;
FILE *fp;
/* Use auto-scale to automatically configure oscilloscope.
* ------------------------------------------------------------- */
do_command(":AUToscale");
/* Set trigger mode (EDGE, PULSe, PATTern, etc., and input source. */
do_command(":TRIGger:MODE EDGE");
do_query_string(":TRIGger:MODE?");
printf("Trigger mode: %s\n", str_result);
/* Set EDGE trigger parameters. */
do_command(":TRIGger:EDGE:SOURCe CHANnel1");
do_query_string(":TRIGger:EDGE:SOURce?");
printf("Trigger edge source: %s\n", str_result);
Agilent InfiniiVision 3000 X-Series Oscilloscopes Programmer's Guide
This call is

Advertisement

Table of Contents
loading

Table of Contents