EasyManuals Logo

Keysight Technologies N5166B CXG Programming Guide

Keysight Technologies N5166B CXG
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
Page #41 background imageLoading...
Page #41 background image
Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide 41
Using IO Interfaces
GPIB Programming Interface Examples
220 OUTPUT Sig_gen;"*RST" ! Places the signal generator into a
defined state
Interface Check Using NI–488.2 and C++
This portion of the example program “Interface Check Using NI–488.2 and
C++” on page 41, uses the NI–488.2 library to verify that the GPIB connections
and interface are functional.
The following program example is available on the signal generator
Documentation CD–ROM as niex1.cpp. For the full text of this program, refer
to “Interface Check Using NI-488.2 and C++” on page 73 or to the signal
generator’s documentation CD–ROM.
#include "stdafx.h"
#include <iostream>
#include "windows.h"
#include "Decl-32.h"
using namespace std;
int GPIB0= 0; // Board handle
Addr4882_t Address[31]; // Declares an array of type Addr4882_t
int main(void)
{
int sig; // Declares a device descriptor
variable
sig = ibdev(0, 19, 0, 13, 1, 0); // Aquires a device descriptor
ibclr(sig); // Sends device clear message
to signal generator
ibwrt(sig, "*RST", 4); // Places the signal generator
into a defined state

Table of Contents

Other manuals for Keysight Technologies N5166B CXG

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Keysight Technologies N5166B CXG and is the answer not in the manual?

Keysight Technologies N5166B CXG Specifications

General IconGeneral
BrandKeysight Technologies
ModelN5166B CXG
CategoryPortable Generator
LanguageEnglish

Related product manuals