EasyManuals Logo

Agilent Technologies 75000 Series B User Manual

Agilent Technologies 75000 Series B
78 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 #44 background imageLoading...
Page #44 background image
Program Example
The following program example sends a SCPI command and returns the data into a character string.
#include < stdio.h>
#include < string.h>
#include < cfunc.h> /* This file is from the GPIB Command Library Disk * /
#define ADDR 70900L /* Defines the GPIB address * /
/****************************************************************/
void main(void)
{
char * cmd = SYSTem:ERRor? , /* SCPI command * /
rd_msg[257];
int length = 256;
/* Send SCPI command */
IOOUTPUTS(ADDR, cmd, strlen(cmd));
/* Read returned data * /
IOENTERS(ADDR, rd_msg, &length);
/* Print returned data */
printf(“ \n%s” ,rd_msg);
}
2-12 Sending SCPI Commands

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Agilent Technologies 75000 Series B and is the answer not in the manual?

Agilent Technologies 75000 Series B Specifications

General IconGeneral
BrandAgilent Technologies
Model75000 Series B
CategoryControl Unit
LanguageEnglish

Related product manuals