EasyManuals Logo

Keysight Technologies N5172B EXG Programming Guide

Keysight Technologies N5172B 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 #150 background imageLoading...
Page #150 background image
150 Keysight CXG, EXG, and MXG X-Series Signal Generators Programming Guide
Programming Examples
LAN Programming Interface Examples
c = *scan++;
posn = strchr(optstring, c); /* DDP */
if (posn == NULL || c == ':') {
fprintf(stderr, "%s: unknown option -%c\n", argv[0], c);
return('?');
}
posn++;
if (*posn == ':') {
if (*scan != '\0') {
optarg = scan;
scan = NULL;
} else {
optarg = argv[optind];
optind++;
}
}
return(c);
}
Sockets LAN Programming Using Java
In this example the Java program connects to the signal generator through
sockets LAN. This program requires Java version 1.1 or later be installed on
your PC. To run the program perform the following steps:
1. In the code example below, type in the hostname or IP address of your
signal generator. For example, String instrumentName = (your
signal generator’s hostname).
2. Copy the program as ScpiSockTest.java and save it in a convenient
directory on your computer. For example save the file to the
C:\jdk1.3.0_2\bin\javac directory.
3. Launch the Command Prompt program on your computer. Click Start >
Programs > Command Prompt.

Table of Contents

Other manuals for Keysight Technologies N5172B EXG

Questions and Answers:

Question and Answer IconNeed help?

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

Keysight Technologies N5172B EXG Specifications

General IconGeneral
BrandKeysight Technologies
ModelN5172B EXG
CategoryPortable Generator
LanguageEnglish

Related product manuals