Programming Examples
12
Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide
825
* Extra()
* --------------------------------------------------------------
* The commands in this function are not executed and are shown
* for reference purposes only.
To execute these commands, call
* this function from main.
*/
private static void Extra()
{
/* 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.
*/
myScope.DoCommand(":RUN");
myScope.DoCommand(":STOP");
/* 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.
*/
myScope.DoCommand(":BLANk CHANnel1");
myScope.DoCommand(":VIEW CHANnel1");
/* TIME_MODE (not executed in this example) - Set the time base
* mode to MAIN, DELAYED, XY or ROLL.
*/
myScope.DoCommand(":TIMebase:MODE MAIN");
}
/*
* Capture()
* --------------------------------------------------------------
* This function prepares the scope for data acquisition and then
* uses the DIGITIZE MACRO to capture some data.
*/
private static void Capture()
{
/* AQUIRE_TYPE - Sets the acquisition mode.
There are three
* acquisition types NORMAL, PEAK, or AVERAGE.
*/
myScope.DoCommand(":ACQuire:TYPE NORMal");
/* 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.
*/
myScope.DoCommand(":ACQuire:COMPlete 100");
/* 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.
*/
Summary of Contents for InfiniiVision 7000A Series
Page 1: ...Agilent InfiniiVision 7000A Series Oscilloscopes Programmer s Guide...
Page 34: ...34 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer s Guide 1 What s New...
Page 44: ...44 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer s Guide 2 Setting Up...
Page 58: ...58 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer s Guide 3 Getting Started...
Page 750: ...750 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer s Guide 8 Error Messages...
Page 922: ...922 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer s Guide Index...