EasyManuals Logo
Home>Agilent Technologies>Test Equipment>86100A

Agilent Technologies 86100A User Manual

Agilent Technologies 86100A
366 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #73 background imageLoading...
Page #73 background image
2-19
Sample Programs
C Programming Examples
} /* end close_SICL ( ) */
National I/O Example
File: natl_IO.c
/* natl_IO.c */
#include <stdio.h> /* location of: printf ( ) */
#include <string.h> /* location of: strlen ( ) */
#include "hpibdecl.h"
/* This file contains IO and initialization routines for the NI488.2 commands. */
/*
* Function name: hpiberr
* Parameters: char* - string describing error
* Return value: none
* Description: This routine outputs error descriptions to an error file.
*/
void hpiberr( char *buffer )
{
printf ("Error string: %s\n",buffer );
} /* end hpiberr ( ) */
/*
* Function name: init_IO
* Parameters: none
* Return value: none
* Description: This routine initializes the NI 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 ( )
{
bus = ibfind ( INTERFACE ); /* open and initialize GPIB board */
if ( ibsta & ERR )
hpiberr ("ibfind error");
ibconfig ( bus, IbcAUTOPOLL, 0); /* turn off autopolling */
ibsic ( bus ); /* clear interface - pulse IFC */
if ( ibsta & ERR )
{
hpiberr ( "ibsic error" );
}
/* open device session */
scope = ibdev ( board_index, prim_addr, second_addr, timeout,

Other manuals for Agilent Technologies 86100A

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies 86100A and is the answer not in the manual?

Agilent Technologies 86100A Specifications

General IconGeneral
BrandAgilent Technologies
Model86100A
CategoryTest Equipment
LanguageEnglish

Related product manuals