EasyManuals Logo

Agilent Technologies N9310A User Manual

Agilent Technologies N9310A
188 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 #160 background imageLoading...
Page #160 background image
154 N9310A User’s Guide
6 Subsystem Command Reference
Example 1 - Checking USB Connection
Usually, using “*IDN?” verifies the data transferring
between the controller PC and the instrument.
****************************************************
#include "visa.h"
#include <studio.h>
#define BufferSize 128
static Vistatus status;
static ViSession defaultRM;
static ViSession inst_N9310A;
static ViUInt32 rcount;
static unsigned char buffer[BufferSize];
int main(void)
{
/* Connect N9310A and read its “IDN”. */
status = viOpen (defaultRM,
“USB0::2391::8216::0115000001::0::INSTR”,
VI_NULL, VI_NULL, &inst_N9310A);
if (STATUS != VI_SUCCESS);
return -1; //failed to connect N9310A
/* Read “IDN” from N9310A” */
status = viWrite (inst_N9310A, “*RST\n”,
StringLength(“*RST\n), &rcount);
status = viWrite (inst_N9310A, “*IDN?\n”,
StringLength(“*IDN?\n”), &rcount);
status = viRead (inst_N9310A, buffer,
BufferSize, &rcount);
/* Close connection to N9310A. */
status = viClose (inst_N9310A);
status = viClose (defaultRM); return 1;
}

Table of Contents

Other manuals for Agilent Technologies N9310A

Questions and Answers:

Question and Answer IconNeed help?

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

Agilent Technologies N9310A Specifications

General IconGeneral
BrandAgilent Technologies
ModelN9310A
CategoryTest Equipment
LanguageEnglish

Related product manuals