824
Agilent InfiniiVision 7000A Series Oscilloscopes Programmer's Guide
12
Programming Examples
myScope.DoCommand("*CLS");
// Clear the status data structures.
/* IDN - Ask for the device's *IDN string.
*/
strResults = myScope.DoQueryString("*IDN?");
// Display results.
Console.Write("Result is: {0}", strResults);
/* AUTOSCALE - This command evaluates all the input signals
* and sets the correct conditions to display all of the
* active signals.
*/
myScope.DoCommand(":AUToscale");
/* CHANNEL_PROBE - Sets the probe attenuation factor for the
* selected channel.
The probe attenuation factor may be from
* 0.1 to 1000.
*/
myScope.DoCommand(":CHANnel1:PROBe 10");
/* CHANNEL_RANGE - Sets the full scale vertical range in volts.
* The range value is eight times the volts per division.
*/
myScope.DoCommand(":CHANnel1:RANGe 8");
/* TIME_RANGE - Sets the full scale horizontal time in seconds.
* The range value is ten times the time per division.
*/
myScope.DoCommand(":TIMebase:RANGe 2e-3");
/* TIME_REFERENCE - Possible values are LEFT and CENTER:
*
- LEFT sets the display reference one time division from
*
the left.
*
- CENTER sets the display reference to the center of the
*
screen.
*/
myScope.DoCommand(":TIMebase:REFerence CENTer");
/* TRIGGER_SOURCE - Selects the channel that actually produces
* the TV trigger.
Any channel can be selected.
*/
myScope.DoCommand(":TRIGger:TV:SOURCe CHANnel1");
/* TRIGGER_MODE - Set the trigger mode to, EDGE, GLITch,
* PATTern, CAN, DURation, IIC, LIN, SEQuence, SPI, TV,
* UART, or USB.
*/
myScope.DoCommand(":TRIGger:MODE EDGE");
/* TRIGGER_EDGE_SLOPE - Set the slope of the edge for the
* trigger to either POSITIVE or NEGATIVE.
*/
myScope.DoCommand(":TRIGger:EDGE:SLOPe POSitive");
}
/*
Содержание InfiniiVision 7000A Series
Страница 1: ...Agilent InfiniiVision 7000A Series Oscilloscopes Programmer s Guide...
Страница 34: ...34 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer s Guide 1 What s New...
Страница 44: ...44 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer s Guide 2 Setting Up...
Страница 58: ...58 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer s Guide 3 Getting Started...
Страница 652: ...652 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer s Guide 5 Commands by Subsystem...
Страница 750: ...750 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer s Guide 8 Error Messages...
Страница 784: ...784 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer s Guide 10 Synchronizing Acquisitions...
Страница 810: ...810 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer s Guide 11 More About Oscilloscope Commands...
Страница 922: ...922 Agilent InfiniiVision 7000A Series Oscilloscopes Programmer s Guide Index...