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

Table of Contents

Advertisement

/*****************************************************************************
* Function name:
*
Parameters:
*
*
*
*
Return value: integer which indicates the actual number of bytes read
*
Description:
*
******************************************************************************/
unsigned long ReadWord( short *buffer, unsigned long BytesToRead )
{
long BytesRead;
int reason;
BytesRead = BytesToRead;
iread( scope, (char *) buffer, BytesToRead, &reason, &BytesRead );
return BytesRead;
}
/*****************************************************************************
* Function name:
*
Parameters:
*
Return value: none
*
Description:
*
device session using SICL commands.
******************************************************************************/
void ReadDouble( double *buffer )
{
iscanf( scope, "%lf", buffer );
}
ReadWord
short *buffer which is a pointer to the word array
to store the bytes read
unsigned long BytesToRead which indicates the maximum
number of bytes to read
This routine inputs an array of short values from the
oscilloscope device session using SICL commands.
ReadDouble
double *buffer which is a pointer to the float value to read
This routine inputs a float value from the oscilloscope
Waveform Commands
DATA? Example for Analog Channels
30-17

Advertisement

Table of Contents
loading

Table of Contents