EasyManuals Logo
Home>Prodigit>Power Supply>3350F Series

Prodigit 3350F Series User Manual

Prodigit 3350F Series
133 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 #124 background imageLoading...
Page #124 background image
3350F Series Operation Manual 115
Appendix A GPIB programming Example
C Example Program
/* Link this program with appropriate *cib*.obj. */
/* This application program is written in TURBO C 2.0 for the IBM PC-AT compatible. The National
Instruments Cooperation (NIC) Model PC-2A board provides the interface between the PC-AT and
a PRODIGIT MPAL ELECTRONIC LOAD. The appropriate *cib*.obj file is required in each
program to properly link the NIC board to C LANGUAGE. and include the <decl.h.> HEADER FILE
to C LANGUAGE. */
#include <stdio.h>
#include <dos.h>
#include <math.h>
#include "decl.h" /* NI GPIB CARD HEADER FILE */
main()
{
char ouster[20],rdbuf[15],spec[10];
int i,ch,load;
/* Assign unique identifier to the device "dev5" and store in variable load. check for error. ibfind
error = negative value returned. */
if((load = ibfind("dev5")) < 0) /* Device variable name is load */
{ /* GPIB address is 5 */
printf("\r*** INTERFACE ERROR ! ***\a\n");
printf("\r\nError routine to notify that ibfind failed.\n");
printf("\r\nCheck software configuration.\n");
exit(1);
}
/* Clear the device */
if((ibclr(load)) & ERR);
{
printf("INTERFACE ERROR ! \a");
exit(1);
}
clrscr();
/* Clear load error register */
{
outstr=chan[0];
ibwrt(load,outstr,6);
ibwrt(load,"CLR",3);
}

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Prodigit 3350F Series and is the answer not in the manual?

Prodigit 3350F Series Specifications

General IconGeneral
BrandProdigit
Model3350F Series
CategoryPower Supply
LanguageEnglish

Related product manuals