EasyManua.ls Logo

Agilent Technologies E8267C Programming Guide

Agilent Technologies E8267C
198 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 #110 background imageLoading...
Page #110 background image
104 Chapter 2
Programming Examples
LAN Programming Examples
import java.io.*;
import java.net.*;
class ScpiSockTest
{
public static void main(String[] args)
{
String instrumentName = "xxxxx"; // Put your hostname here
try
{
Socket t = new Socket(instrumentName,7777); // Connect to instrument
// Setup read/write mechanism
BufferedWriter out =
new BufferedWriter(
new OutputStreamWriter(t.getOutputStream()));
BufferedReader in =
new BufferedReader(
new InputStreamReader(t.getInputStream()));
System.out.println("Setting frequency to 1 GHz...");
out.write("freq 1GHz\n"); // Sets frequency
out.flush();
System.out.println("Waiting for source to settle...");
out.write("*opc?\n"); // Waits for completion
out.flush();
String opcResponse = in.readLine();
if (!opcResponse.equals("1"))
{
System.err.println("Invalid response to '*OPC?'!");
System.exit(1);
}
System.out.println("Retrieving instrument ID...");
out.write("*idn?\n"); // Querys the id string

Table of Contents

Other manuals for Agilent Technologies E8267C

Questions and Answers:

Agilent Technologies E8267C Specifications

General IconGeneral
Frequency Range250 kHz to 40 GHz
Output Impedance50 Ohms
Amplitude Accuracy±0.5 dB
Modulation TypesAM, FM, PM, Pulse
Power Requirements100-240 VAC
Weight20 kg (44 lbs)

Related product manuals