EasyManuals Logo

Keysight Technologies N5173B EXG Programming Guide

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
Page #124 background imageLoading...
Page #124 background image
124 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Programming Examples
LAN Programming Interface Examples
Queries for Lan Using Sockets
lanio.c and getopt.c perform the following functions:
establishes TCP/IP connection to port 5025
resultant file descriptor is used to “talk” to the instrument using regular
socket I/O mechanisms
maps the desired hostname to an internal form
—error checks
queries signal generator for ID
sets frequency on signal generator to 2.5 GHz
sets power on signal generator to –5 dBm
gets option letter from argument vector and checks for end of file (EOF)
The following programming examples are available on the signal generator
Documentation CD-ROM as lanio.c and getopt.c.
/******************************************************************
* $Header: lanio.c 04/24/01
* $Revision: 1.1 $
* $Date: 10/24/01
* PROGRAM NAME: lanio.c
*
* $Description: Functions to talk to an Keysight signal
generator
* via TCP/IP. Uses command-line arguments.
*
* A TCP/IP connection to port 5025 is established
and
* the resultant file descriptor is used to "talk"
to the
* instrument using regular socket I/O mechanisms.
$
*
*
*
* Examples:
*
* Query the signal generator frequency:
* lanio xx.xxx.xx.x 'FREQ?'
*

Table of Contents

Other manuals for Keysight Technologies N5173B EXG

Questions and Answers:

Question and Answer IconNeed help?

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

Keysight Technologies N5173B EXG Specifications

General IconGeneral
BrandKeysight Technologies
ModelN5173B EXG
CategoryPortable Generator
LanguageEnglish

Related product manuals