Agilent Technologies Infiniium 90000 Series Programmer's Manual page 1061

Oscilloscopes
Hide thumbs Also See for Infiniium 90000 Series:
Table of Contents

Advertisement

}
/* Initialize the oscilloscope to a known state.
* --------------------------------------------------------------- */
void initialize (void)
{
}
/* Capture the waveform.
* --------------------------------------------------------------- */
void capture (void)
{
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
if (err != VI_SUCCESS) error_handler();
/* Initialize - start from a known state. */
initialize();
/* Capture data. */
capture();
/* Analyze the captured waveform. */
analyze();
/* Close the vi session and the resource manager session. */
viClose(vi);
viClose(defaultRM);
/* Clear status. */
do_command("*CLS");
/* Get and display the device's *IDN? string. */
do_query_string("*IDN?");
printf("Oscilloscope *IDN? string: %s\n", str_result);
/* Load the default setup. */
do_command("*RST");
int num_values;
FILE *fp;
/* Set probe attenuation factor. */
do_command(":CHANnel1:PROBe 1.0");
do_query_string(":CHANnel1:PROBe?");
printf("Channel 1 probe attenuation factor: %s\n", str_result);
/* Use auto-scale to automatically configure oscilloscope. */
do_command(":AUToscale");
/* Set trigger mode. */
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);
do_command(":TRIGger:LEVel CHANnel1,-2E-3");
38
Sample Programs
1061

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents