Programming Examples
9
Agilent 6000 Series Oscilloscopes Programmer's Reference
589
* function from main.
*/
void extra (void)
{
/* RUN_STOP (not executed in this example):
*
- RUN starts the acquisition of data for the active waveform
*
display.
*
- STOP stops the data acquisition and turns off AUTOSTORE.
*/
iprintf(id, ":RUN\n");
iprintf(id, ":STOP\n");
/* VIEW_BLANK (not executed in this example):
*
- VIEW turns on (starts displaying) an active channel or pixel
*
memory.
*
- BLANK turns off (stops displaying) a specified channel or
*
pixel memory.
*/
iprintf(id, ":BLANK CHANNEL1\n");
iprintf(id, ":VIEW CHANNEL1\n");
/* TIME_MODE (not executed in this example) - Set the time base
* mode to MAIN, DELAYED, XY or ROLL.
*/
iprintf(id, ":TIMEBASE:MODE MAIN\n");
}
/*
* capture
* ------------------------------------------------------------------
* This function prepares the scope for data acquisition and then
* uses the DIGITIZE MACRO to capture some data.
*/
void capture (void)
{
/* AQUIRE_TYPE - Sets the acquisition mode.
There are three
* acquisition types NORMAL, PEAK, or AVERAGE.
*/
iprintf(id, ":ACQUIRE:TYPE NORMAL\n");
/* AQUIRE_COMPLETE - Specifies the minimum completion criteria
* for an acquisition.
The parameter determines the percentage
* of time buckets needed to be "full" before an acquisition is
* considered to be complete.
*/
iprintf(id, ":ACQUIRE:COMPLETE 100\n");
/* DIGITIZE - Used to acquire the waveform data for transfer over
* the interface.
Sending this command causes an acquisition to
* take place with the resulting data being placed in the buffer.
*/
/* NOTE!
The use of the DIGITIZE command is highly recommended
* as it will ensure that sufficient data is available for
* measurement.
Keep in mind when the oscilloscope is running,
Содержание DSO6014A/L
Страница 1: ...A Agilent 6000 Series Oscilloscopes Programmer s Reference...
Страница 16: ...16 Agilent 6000 Series Oscilloscopes Programmer s Reference...
Страница 30: ...30 Agilent 6000 Series Oscilloscopes Programmer s Reference 1 What s New...
Страница 540: ...540 Agilent 6000 Series Oscilloscopes Programmer s Reference 6 Error Messages...
Страница 562: ...562 Agilent 6000 Series Oscilloscopes Programmer s Reference 7 Status Reporting...
Страница 584: ...584 Agilent 6000 Series Oscilloscopes Programmer s Reference 8 More About Oscilloscope Commands...
Страница 624: ...624 Agilent 6000 Series Oscilloscopes Programmer s Reference 9 Programming Examples...