Technical data

Table Of Contents
Waveform Commands 34
Agilent Infiniium 9000 Series Oscilloscopes Programmer's Reference 1105
* acquires new data, and ensures that acquisition criteria are met
* before the acquisition is stopped. Note that the display is
* automatically turned off when you use this form of the
* :DIGitize command and must be turned on to view the captured dat
a
* on screen.
*/
WriteIO(":DIGitize POD1");
WriteIO(":POD1:DISPlay ON");
}
/***********************************************************************
*******
* Function name: SetupDataTransfer
* Parameters: double lTime which is the time value of the first
* waveform memory location of data.
* double rTime which is the time value of the last
* waveform memory location of data.
* Return value: Number of bytes of waveform data to read.
* Description: This routine sets up the waveform data transfer and get
s
* the number of bytes to be read. The beginning of data
* starts with the # character followed by a number which
* tells how many bytes to read for the integer which is t
he
* total number of data bytes that are being transfered.
* Following this is the waveform data. For example, if 1
024
* bytes of waveform data is being transfered then this
* information will be as follows:
* #41024 <1024 data bytes>
************************************************************************
******/
unsigned long SetupDataTransfer( double lTime, double rTime )
{
unsigned long BytesToRead;
char header_str[8];
char cData;
unsigned long BytesRead;
int Size;
char Range[100];
/* Find the index value of the first data memory location */
Start = Round((lTime - xOrg)/xInc);
if (Start < 1) {
Start = 1;
}
/* Find the number of data bytes that you want */
Size = Round((rTime - lTime)/xInc);
sprintf( Range, ":WAVeform:DATA? %d,%d", Start, Size);