Agilent Technologies InfiniiVision 6000 Series Manual de servicio Pagina 861

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 934
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 860
Programming Examples 12
Agilent InfiniiVision 6000 Series Oscilloscopes Programmer's Guide 861
viPrintf(vi, ":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.
*/
viPrintf(vi, ":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.
*/
viPrintf(vi, ":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,
* communication with the computer interrupts data acquisition.
* Setting up the oscilloscope over the bus causes the data
* buffers to be cleared and internal hardware to be reconfigured.
* If a measurement is immediately requested there may not have
* been enough time for the data acquisition process to collect
* data and the results may not be accurate. An error value of
* 9.9E+37 may be returned over the bus in this situation.
*/
viPrintf(vi, ":DIGITIZE CHAN1\n");
}
/*
* analyze
* ------------------------------------------------------------------
* In this example we will do the following:
* - Save the system setup to a file for restoration at a later time.
* - Save the oscilloscope display to a file which can be printed.
* - Make single channel measurements.
*/
void analyze (void)
{
double frequency, vpp; /* Measurements. */
double vdiv, off, sdiv, delay; /* Values calculated from preamble
data. */
Vista de pagina 860
1 2 ... 856 857 858 859 860 861 862 863 864 865 866 ... 933 934

Comentarios a estos manuales

Sin comentarios