Agilent Technologies 86100A Wartungshandbuch Seite 88

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 364
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 87
2-34
Sample Programs
Listings of the Sample Programs
int read_IO (void *buffer,unsigned long length)
{
ibrd (scope, buffer, ( long ) length );
return ( ibcntl );
} /* end read_IO ( ) */
/*
* Function name: check_SRQ
* Parameters: none
* Return value: integer indicating if bus SRQ line was asserted
* Description: This routine checks for the status of SRQ on the bus and
* returns a value to indicate the status.
*/
int check_SRQ ( )
{
int srq_asserted;
short control_lines = 0;
iblines ( bus, &control_lines);
if ( control_lines & BusSRQ )
srq_asserted = TRUE;
else
srq_asserted = FALSE;
return ( srq_asserted );
} /* end check_SRQ ( ) */
/*
* Function name: read_status
* Parameters: none
* Return value: unsigned char indicating the value of status byte
* Description: This routine reads the scope status byte and returns the status.
*/
unsigned char read_status ( )
{
unsigned char statusbyte;
/* Always read the status byte from instrument */
ibrsp ( scope, &statusbyte );
return ( statusbyte );
} /* end read_status ( ) */
/*
* Function name: close_IO
* Parameters: none
* Return value: none
Seitenansicht 87
1 2 ... 83 84 85 86 87 88 89 90 91 92 93 ... 363 364

Kommentare zu diesen Handbüchern

Keine Kommentare