Agilent Technologies 6000 Series quick start Capturing Data, Analyzing Captured Data

Page 17

Getting Started

2

Capturing Data

Once you initialize the oscilloscope, you can begin capturing data for analysis. Remember that while the oscilloscope is responding to commands from the controller, it is not performing acquisitions. Also, when you change the oscilloscope configuration, any data already captured will most likely be rendered.

To collect data, you use the :DIGitize command. This command clears the waveform buffers and starts the acquisition process. Acquisition continues until acquisition memory is full, then stops. The acquired data is displayed by the oscilloscope, and the captured data can be measured, stored in trace memory in the oscilloscope, or transferred to the controller for further analysis. Any additional commands sent while :DIGitize is working are buffered until :DIGitize is complete.

You could also put the oscilloscope into run mode, then use a wait loop in your program to ensure that the oscilloscope has completed at least one acquisition before you make a measurement. Agilent does not recommend this because the needed length of the wait loop may vary, causing your program to fail.

:DIGitize, on the other hand, ensures that data capture is complete. Also, :DIGitize, when complete, stops the acquisition process so that all measurements are on displayed data, not on a constantly changing data set.

Analyzing Captured Data

After the oscilloscope has completed an acquisition, you can find out more about the data, either by using the oscilloscope measurements or by transferring the data to the controller for manipulation by your program. Built-in measurements include: frequency, duty cycle, period, positive pulse width, and negative pulse width.

Using the :WAVeform commands, you can transfer the data to your controller. You may want to display the data, compare it to a known good measurement, or simply check logic patterns at various time intervals in the acquisition.

Agilent 6000 Series Oscilloscopes Programmer’s Quick Start Guide

17

Image 17
Contents Programmer’s Quick Start Guide WA R N I N G Programming the Oscilloscope-At a Glance This Book Contents Index Setting Up Connect and set up the oscilloscope Install Agilent IO Libraries Suite softwareUsing the LAN Interface Using the USB Device InterfaceUsing the Gpib Interface Verify the oscilloscope connection Click Test Connection Setting Up To get the latest versions via the web Access the Programmer’s Reference To access the Programmer’s Reference help file Language for Program Examples Getting StartedInitializing Basic Oscilloscope Program StructureAnalyzing Captured Data Capturing DataReferencing the IO Library Programming the OscilloscopeOpening the Oscilloscope Connection via the IO Library Information for Initializing the Instrument Using AUToscale to Automate Oscilloscope SetupInitializing the Interface and the Oscilloscope Example Oscilloscope Setup Code Using Other Oscilloscope Setup CommandsEnsure New Data is Collected Capturing Data with the DIGitize CommandSet TIMebaseMODE to Main or DELayed when using DIGitize Aborting a Digitize Operation Over Gpib Following program example shows a typical setupReading Query Responses from the Oscilloscope Reading Query Results into Numeric Variables Express String Variables Using Exact SyntaxReading Query Results into String Variables #8000010001000 bytes of dataterminator Reading Definite-Length Block Query Response DataChecking Instrument Status Sending Multiple Queries and Reading ResultsTelnet Sockets Other Ways of Sending CommandsSending Scpi Commands using Browser Web Control Index Index Page Index
Related manuals
Manual 368 pages 7.71 Kb