Download Agilent Technologies 86100A Technical data
Transcript
Sample Programs
Listings of the Sample Programs
}/* end get_learnstring */
sicl_IO.c Sample Program
/* sicl_IO.c */
#include <stdio.h>
#include <string.h>
#include "hpibdecl.h"
/* location of: printf ( ) */
/* location of: strlen ( ) */
/* This file contains IO and initialization routines for the SICL libraries. */
/*
* Function name: init_IO
* Parameters: none
* Return value: none
* Description: This routine initializes the SICL environment. It sets up
* error handling, opens both an interface and device session, sets timeout
* values, clears the interface by pulsing IFC, and clears the instrument
* by performing a Selected Device Clear.
*/
void init_IO ( )
{
ionerror (I_ERROR_EXIT);
/* set-up interface error handling */
/* open interface session for verifying SRQ line */
bus = iopen ( INTERFACE );
if ( bus == 0 )
printf ("Bus session invalid\n");
itimeout ( bus, 20000 );
iclear ( bus );
/* set bus timeout to 20 sec */
/* clear the interface - pulse IFC */
scope = iopen ( DEVICE_ADDR );
if ( scope == 0)
printf ( "Scope session invalid\n");
/* open the scope device session */
itimeout ( scope, 20000 );
iclear ( scope );
/* set device timeout to 20 sec */
/* perform Selected Device Clear on scope */
} /* end init_IO */
/*
* Function name: write_IO
* Parameters: char *buffer which is a pointer to the character string to be
* output; unsigned long length which is the length of the string to be output
* Return value: none
* Description: This routine outputs strings to the scope device session
* using the unformatted I/O SICL commands.
*/
2-29
Related documents
Agilent Technologies Sprinkler 54753a User's Manual
CoursEval Administrator User Guide
Texas Instruments TMS3320C5515 User's Manual
Agilent Technologies Ininiium 90000 Technical data
Agilent Technologies Ininiium 9000 Technical data
(Agilent) 83495A Optical/electrical clock recovery
Agilent Technologies 86100C Technical data
Agilent Technologies 86100C Specifications
R&S TS-PAM User Manual - rohde
USER MANUAL - Rohde & Schwarz