Agilent Technologies E1300B Spezifikationen Seite 44

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 78
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 43
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
Seitenansicht 43
1 2 ... 39 40 41 42 43 44 45 46 47 48 49 ... 77 78

Kommentare zu diesen Handbüchern

Keine Kommentare