/*******************************************************************************
*
Function name: WriteIO
*
Parameters:
*
*
Return value:
*
Description: This routine outputs strings to the oscilloscope device
*
session using SICL commands.
*******************************************************************************/
void WriteIO( char *buffer )
{
unsigned long actualcnt;
unsigned long BytesToWrite;
int send_end = 1;
BytesToWrite = strlen( buffer );
iwrite( scope, buffer, BytesToWrite, send_end, &actualcnt );
}
/******************************************************************************
*
Function name: ReadByte
*
Parameters:
*
*
*
Return value:
*
Description: This routine inputs strings from the scope device session
*
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;
}
char *buffer which is a pointer to the character string to
be output
none
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
integer which indicates the actual number of bytes read
Waveform Commands
DATA? Example for Digital Channels
30-29