Waveform Commands
34
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
949
int Start;
void main( void )
{
char Term;
unsigned long BytesToRead;
if ( !InitIO() ) {
exit( 1 );
}
AcquireData();
WriteIO( ":SYStem:HEADer OFF" );
WriteIO( ":SYStem:LONGform OFF" );
WriteIO( ":WAVeform:BYTEorder LSBFirst" ); /* Setup byte order */
WriteIO( ":WAVeform:FORMat WORD" );
/* Setup transfer format *
/
WriteIO( ":WAVeform:SOURce POD1" );
/* Waveform data source pod
1 */
GetTimeConversionFactors( );
BytesToRead = SetupDataTransfer( -25E-6, 25E-6);
ReadWord( wordData, BytesToRead );
ReadByte( &Term, 1L );
/* Read termination character *
/
WriteIO(":WAVeform:FORMat BYTE");
/* Setup transfer format */
BytesToRead = SetupDataTransfer( -25E-6, 25E-6);
ReadByte( byteData, BytesToRead );
ReadByte( &Term, 1L );
/* Read termination character *
/
CreateTimeData( BytesToRead, TimeValues );
WriteCsvToFile( TimeValues, wordData, byteData, BytesToRead );
CloseIO( );
}
/***********************************************************************
********
*
Function name: InitIO
*
Parameters:
none
*
Return value:
none
*
Description:
This routine initializes the SICL environment.
It se
ts up
*
errorhandling, opens both an interface and device ses
sion,
*
sets timeout values, clears the GPIB interface card,
and
*
clears the oscilloscope's GPIB card by performing a
*
Selected Device Clear.
Summary of Contents for Infiniium 90000 Q-Series
Page 1: ...s1 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference...
Page 50: ...50 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 2 Setting Up...
Page 274: ...274 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 14 Digital Commands...
Page 292: ...292 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 15 Disk Commands...
Page 318: ...318 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 16 Display Commands...
Page 364: ...364 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 17 Function Commands...
Page 382: ...382 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 19 Histogram Commands...
Page 412: ...412 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 21 Limit Test Commands...
Page 416: ...416 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 22 Lister Commands...
Page 696: ...696 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 25 Measure Commands...
Page 702: ...702 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 26 Pod Commands...
Page 760: ...760 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 29 Self Test Commands...
Page 818: ...818 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 31 System Commands...
Page 830: ...830 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 32 Time Base Commands...
Page 930: ...930 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 33 Trigger Commands...
Page 1018: ...1018 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 37 Error Messages...
Page 1150: ...1150 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference 38 Sample Programs...
Page 1186: ...1186 Agilent Infiniium 90000 Series Oscilloscopes Programmer s Reference Index...