Technical data

Table Of Contents
1102 Agilent Infiniium 9000 Series Oscilloscopes Programmer's Reference
34 Waveform Commands
************************************************************************
*******/
int InitIO( void )
{
ionerror( I_ERROR_EXIT ); /* set-up interface error handling */
bus = iopen( INTERFACE ); /* open interface session */
if(bus==0){
printf( "Bus session invalid\n" );
return FALSE;
}
itimeout( bus, IO_TIMEOUT ); /* set bus timeout */
iclear( bus ); /* clear the interface */
#ifdef LAN
scope = bus;
#else
scope = iopen( DEVICE_ADDR ); /* open the scope device session *
/
if ( scope == 0) {
printf( "Scope session invalid\n" );
iclose( bus ); /* close interface session */
_siclcleanup(); /* required for 16-bit applications */
return FALSE;
}
itimeout( scope, IO_TIMEOUT ); /* set device timeout */
iclear( scope ); /* perform Selected Device Clear on oscilloscop
e*/
#endif
return TRUE;
}
/***********************************************************************
********
* Function name: WriteIO
* Parameters: char *buffer which is a pointer to the character stri
ng 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 BytesToWrite;
int send_end = 1;
BytesToWrite = strlen( buffer );