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

Table of Contents

Advertisement

/*****************************************************************************
* Function name:
*
Parameters:
*
Return value: none
*
Description:
*
*
*
*
******************************************************************************/
int InitIO( void )
{
ionerror( I_ERROR_EXIT );
bus = iopen( INTERFACE );
if ( bus == 0 ) {
printf( "Bus session invalid\n" );
return FALSE;
}
itimeout( bus, IO_TIMEOUT );
iclear( bus );
#ifdef LAN
scope = bus;
#else
scope = iopen( DEVICE_ADDR );
if ( scope == 0) {
printf( "Scope session invalid\n" );
iclose( bus );
_siclcleanup();
return FALSE;
}
itimeout( scope, IO_TIMEOUT );
iclear( scope );
#endif
}
InitIO
none
This routine initializes the SICL environment.
error
handling, opens both an interface and device session,
sets timeout values, clears the GPIB interface card,
and clears the oscilloscope's GPIB card by performing a
Selected Device Clear.
/* open interface session */
/* close interface session */
/* required for 16-bit applications */
/* perform Selected Device Clear on oscilloscope */
DATA? Example for Analog Channels
/* set-up interface error handling */
/* set bus timeout */
/* clear the interface */
/* open the scope device session */
/* set device timeout */
Waveform Commands
It sets up
30-15

Advertisement

Table of Contents
loading

Table of Contents