Technical data
126 Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
7 Remote Acquisition Synchronization
Single Shot Device Under Test (DUT)
The examples in the previous section (Acquisition Synchronization)
assumed the DUT is continually running and, therefore, the oscilloscope
will have more than one opportunity to trigger. With a single shot DUT,
there is only one opportunity for the oscilloscope to trigger so it is
necessary for the oscilloscope to be armed and ready before the DUT is
enabled.
This example is the same as the previous example with the addition of
checking for the armed event status.
Example
TIMEOUT = 1000ms
currentTime = 0ms
// Setup
:STOP; *OPC? // if not stopped
:ADER? // clear ADER event
// Acquire
:SINGLE
while(AER? == 0)
{
wait(100ms)
}
//oscilloscope is armed and ready, enable DUT here
while(currentTime <= TIMEOUT)
{
if (:ADER? == 1)
{
break;
}
else
{
// Use small wait to prevent excessive
// queries to the oscilloscope
wait (100ms)
currentTime += 100ms
}
}
//Get results
if (currentTime < TIMEOUT)
{
NOTE
The blocking :DIGitize command cannot be used for a single shot DUT because once the
:DIGitize command is issued, the oscilloscope is blocked from any further commands until
the acquisition is complete.