EasyManuals Logo

Pendulum CNT-90 Series Programmer's Handbook

Pendulum CNT-90 Series
264 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 #39 background imageLoading...
Page #39 background image
Individual Mesurements (Ex. #1)
Sample program to perform individual measurements on the '9X'.
Written for National AT-GPIB/TNT for Windows NT and later.
/*
**
Sample program to perform individual measurements on the '9X'.
Written for National AT-GPIB/TNT for Windows NT and later.
**
*/
#include <windows.h>
#include <stdio.h>
#include <time.h>
#include “decl-32.h”
void ibwrite(int counter, const char *string);
void sleep (long mswait);
void main() {
int address = 10;
int i, counter; /* file descriptor for counter */
char reading[50];
char buf[100];
printf (“Connecting to the '9X' on address %d using
National Instruments GPIB card.\n”, address);
if ((counter = ibdev(0, address, 0, T10s, 1, 0)) < 0) {
printf(“Could not connect to counter”);
exit(1);
}
ibclr(counter);
do {
ibwrite(counter, “syst:err?”);
ibrd(counter, buf, 100L); buf[ibcnt]=0;
printf(“Errors before start: %s\n”, buf);
} while (atoi(buf)!=0);
ibwrite(counter, “*idn?”);
ibrd(counter, buf, 100L); buf[ibcnt]=0;
printf(“Counter identification string: %s\n”, buf);
printf(“Setup\n”);
// Reset counter to known state
ibwrite(counter, “*rst;*cls”);
Programming Examples
Individual Mesurements (Ex. #1) 4-3

Table of Contents

Other manuals for Pendulum CNT-90 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Pendulum CNT-90 Series and is the answer not in the manual?

Pendulum CNT-90 Series Specifications

General IconGeneral
BrandPendulum
ModelCNT-90 Series
CategoryMeasuring Instruments
LanguageEnglish

Related product manuals