Agilent Technologies InfiniiVision 5000 Series Programmer's Manual page 720

Hide thumbs Also See for InfiniiVision 5000 Series:
Table of Contents

Advertisement

12
Programming Examples
720
* 0.1 to 1000.
*/
oscp.DoCommand(":CHANnel1:PROBe 10");
/* CHANNEL_RANGE - Sets the full scale vertical range in volts.
* The range value is eight times the volts per division.
*/
oscp.DoCommand(":CHANnel1:RANGe 8");
/* TIME_RANGE - Sets the full scale horizontal time in seconds.
* The range value is ten times the time per division.
*/
oscp.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.
*/
oscp.DoCommand(":TIMebase:REFerence CENTer");
/* TRIGGER_SOURCE - Selects the channel that actually produces
* the TV trigger.
*/
oscp.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.
*/
oscp.DoCommand(":TRIGger:MODE EDGE");
/* TRIGGER_EDGE_SLOPE - Set the slope of the edge for the
* trigger to either POSITIVE or NEGATIVE.
*/
oscp.DoCommand(":TRIGger:EDGE:SLOPe POSitive");
}
/*
* Extra()
* --------------------------------------------------------------
* The commands in this function are not executed and are shown
* for reference purposes only.
* 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.
*/
oscp.DoCommand(":RUN");
oscp.DoCommand(":STOP");
/* VIEW_BLANK (not executed in this example):
Agilent InfiniiVision 5000 Series Oscilloscopes Programmer's Guide
Any channel can be selected.
To execute these commands, call

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents