Agilent Technologies Infiniium 8000A Programmer's Reference Manual page 836

Table of Contents

Advertisement

void main( void )
{
double xOrg=0.0, xInc=0.0; /* Values used to create time data */
double yOrg=0.0, yInc=0.0; /* Values used to convert data to volts */
char Term;
unsigned long BytesToRead;
if ( !InitIO() ) {
exit( 1 );
}
AcquireData();
WriteIO( ":WAVeform:FORMat WORD" );
WriteIO( ":WAVeform:BYTeorder LSBFirst" );/* Setup transfer of LSB first */
WriteIO( ":WAVeform:SOURce CHANnel1" ); /* Waveform data source channel 1 */
GetVoltageConversionFactors( &yInc, &yOrg );
BytesToRead = SetupDataTransfer();
ReadWord( wordData, BytesToRead );
ReadByte( &Term, 1L ); /* Read termination character */
ConvertWordDataToVolts( wordData, wordVolts, BytesToRead,
WriteIO(":WAVeform:FORMat BYTE");/* Setup transfer format */
GetVoltageConversionFactors( &yInc, &yOrg );
BytesToRead = SetupDataTransfer();
ReadByte( byteData, BytesToRead );
ReadByte( &Term, 1L ); /* Read the termination character */
ConvertByteDataToVolts( byteData, byteVolts, BytesToRead,
GetTimeConversionFactors( &xInc, &xOrg );
CreateTimeData( xInc, xOrg, BytesToRead, TimeValues );
WriteCsvToFile( TimeValues, wordVolts, byteVolts, BytesToRead );
CloseIO( );
}
Waveform Commands
DATA? Example for Analog Channels
yInc, yOrg );
yInc, yOrg );
30-14
/* Setup transfer format */

Advertisement

Table of Contents
loading

Table of Contents