Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 105
Programming Examples
GPIB Programming Interface Examples
— error checking
— clears the signal generator
— resets the signal generator
— the data questionable status register is enabled to read an unleveled
condition
— prompts user to manually set up the signal generator for an unleveled
condition
— queries the data questionable status register for any set bits and converts
the string data to numeric
— based on the numeric value, program checks for a corresponding status
check value
— similarly checks for over or undermodulation condition
The following program example is available on the signal generator
Documentation CD-ROM as
visaex9.cpp
.
//*****************************************************************
// PROGRAM NAME:visaex9.cpp
//
// PROGRAM DESCRIPTION:In this example, the data questionable status
register is read.
// The data questionable status register is enabled to read an
unleveled condition.
// The signal generator is then set up for an unleveled condition
and the data
// questionable status register read. The results are then displayed
to the user.
// The status questionable register is then setup to monitor a
modulation error condition.
// The signal generator is set up for a modulation error condition
and the data
// questionable status register is read.
// The results are displayed to the active window.
//
//*****************************************************************
#include <visa.h>
#include "StdAfx.h"
#include <iostream>
#include <conio.h>
void main ()
Summary of Contents for X-Series
Page 4: ...4 ...
Page 10: ...10 Contents ...