Technical data

Table Of Contents
Waveform Commands 34
Agilent Infiniium 9000 Series Oscilloscopes Programmer's Reference 1103
iwrite( scope, buffer, BytesToWrite, send_end, &actualcnt );
}
/***********************************************************************
*******
* Function name: ReadByte
* Parameters: char *buffer which is a pointer to the array to store
* the read bytes unsigned long BytesToRead which indica
tes
* the maximum number of bytes to read
* Return value: integer which indicates the actual number of bytes re
ad
* Description: This routine inputs strings from the scope device sessi
on
* using SICL commands.
************************************************************************
******/
unsigned long ReadByte( char *buffer, unsigned long BytesToRead )
{
unsigned long BytesRead=0L;
int reason;
BytesRead = BytesToRead;
iread( scope, buffer, BytesToRead, &reason, &BytesRead );
return BytesRead;
}
/***********************************************************************
*******
* Function name: ReadWord
* Parameters: short *buffer which is a pointer to the word array to
store
* the bytes read unsigned long BytesToRead which indica
tes
* the maximum number of bytes to read
* Return value: integer which indicates the actual number of bytes re
ad
* Description: This routine inputs an array of short values from the
* oscilloscope device session using SICL commands.
************************************************************************
******/
unsigned long ReadWord( short *buffer, unsigned long BytesToRead )
{
long BytesRead=0L;
int reason;
BytesRead = BytesToRead;
iread( scope, (char *) buffer, BytesToRead, &reason, &BytesRead );
return BytesRead;
}