EasyManua.ls Logo

Pendulum CNT-90 - Default Settings

Pendulum CNT-90
264 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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

Related product manuals