Technical data

Waveform Commands 32
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference 879
* Function name: WriteIO
* Parameters: char *buffer which is a pointer to the character
* string to be output
* Return value: none
* Description: This routine outputs strings to the oscilloscope
* device session using SICL commands.
*********************************************************************/
void WriteIO( char *buffer )
{
unsigned long actualcnt;
unsigned long BytesToRead;
int send_end = 1;
BytesToRead = strlen( buffer );
iwrite( scope, buffer, BytesToRead, 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 indicates the
* maximum number of bytes to read
* Return value: integer which indicates the actual number of bytes
* read
* Description: This routine inputs strings from the scope device
* session using SICL commands.
********************************************************************/
unsigned long ReadByte( char *buffer, unsigned long BytesToRead )
{
unsigned long BytesRead;
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
* int reason which is the reason that the read
* terminated
* unsigned long BytesToRead which indicates the
* maximum number of bytes to read
* Return value: integer which indicates the actual number of
* bytes read
* Description: This routine inputs an array of short values from
* the oscilloscope device session using SICL commands.
*********************************************************************/