Agilent Technologies Infiniium 8000A Programmer's Reference Manual page 100

Table of Contents

Advertisement

/*
*
Function name:
*
Parameters:
none
*
Return value:
*
Description:
This routine initializes the oscilloscope for proper
*
acquisition of data. The instrument is reset to a known state and the
*
interface is cleared. System headers are turned off to allow faster
*
throughput and immediate access to the data values requested by queries.
*
The oscilloscope time base, channel, and trigger subsystems are then
*
configured. Finally, the acquisition subsystem is initialized.
*/
void initialize( void )
{
write_IO("*RST");
write_IO("*CLS");
write_IO(":SYSTem:HEADer OFF"); /* turn off system headers */
/* initialize time base parameters to center reference, */
/* 2 ms full-scale (200 us/div), and 20 us delay */
write_IO(":TIMebase:REFerence CENTer;RANGe 2e-3;POSition 20e-6");
/* initialize Channel1 1.6V full-scale (200 mv/div); offset -400mv */
write_IO(":CHANnel1:RANGe 1.6;OFFSet -400e-3");
/* initialize trigger info: channel1 waveform on positive slope at 300mv */
write_IO(":TRIGger:EDGE:SOURce CHANnel1;SLOPe POSitive");
write_IO(":TRIGger:LEVel CHANnel1,-0.40");
/* initialize acquisition subsystem */
/* Real time acquisition - no averaging; memory depth 1,000,000 */
write_IO(":ACQuire:MODE RTIMe;AVERage OFF;POINts 1000000");
}
/* end initialize() */
Sample Programs
Sample C Programs
init.c - Initializing the Oscilloscope
initialize
none
/* reset oscilloscope - initialize to known state */
/* clear status registers and output queue */
6-6

Advertisement

Table of Contents
loading

Table of Contents