EasyManua.ls Logo

Keysight Technologies N5173B EXG - Optimizing Performance for All Models; Using the Dual Power Meter Display (with USB U2000 A Series Power Sensors)

Keysight Technologies N5173B EXG
398 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
Loading...
86 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Programming Examples
GPIB Programming Interface Examples
// generator can be queried for conditions and instrument states.
These commands are of
// the type "*IDN?"; the question mark indicates a query.
//
//*****************************************************************
#include <visa.h>
#include "StdAfx.h"
#include <iostream>
#include <conio.h>
#include <stdlib.h>
using namespace std;
void main ()
{
ViSession defaultRM, vi; // Declares variables of type
ViSession
// for instrument communication
ViStatus viStatus = 0; // Declares a variable of type
ViStatus
// for GPIB verifications
char rdBuffer [256]; // Declares variable to hold string
data
int num; // Declares variable to hold integer
data
// Initialize the VISA system
viStatus=viOpenDefaultRM(&defaultRM);
// Open session to GPIB device at
address 19
viStatus=viOpen(defaultRM, "GPIB::19::INSTR", VI_NULL, VI_NULL,
&vi);
if(viStatus){ // If problems, then prompt user
printf("Could not open ViSession!\n");
printf("Check instruments and connections\n");
printf("\n");

Table of Contents

Other manuals for Keysight Technologies N5173B EXG

Related product manuals