Agilent Technologies PSG Manual de Instruções Página 105

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 362
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 104
Programming Examples
LAN Programming Examples
Chapter 2 91
Sockets LAN Programming Using Java
In this example the Java program connects to the signal generator via 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.
4. Compile the program. At the command prompt type: javac ScpiSockTest.java.
The directory path for the Java compiler must be specified. For example:
C:\>jdk1.3.0_2\bin\javac ScpiSockTest.java
5. Run the program by typing java ScpiSockTest at the command prompt.
6. Type exit at the command prompt to end the program.
Generating a CW Signal Using Java
The following program example is available on the PSG Family Documentation CD-ROM as
javaex.txt.
//**************************************************************************
// PROGRAM NAME: javaex.txt
// Sample java program to talk to the signal generator via SCPI-over-sockets
// This program requires Java version 1.1 or later.
// Save this code as ScpiSockTest.java
// Compile by typing: javac ScpiSockTest.java
// Run by typing: java ScpiSockTest
// The signal generator is set for 1 GHz and queried for its id string
//**************************************************************************
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
Vista de página 104
1 2 ... 100 101 102 103 104 105 106 107 108 109 110 ... 361 362

Comentários a estes Manuais

Sem comentários

Sony MDR-EX57LP Handbücher

Bedienungsanleitungen und Benutzerhandbücher für Audio Sony MDR-EX57LP.
Wir stellen 1 PDF-Handbücher Sony MDR-EX57LP zum kostenlosen herunterladen nach Dokumenttypen zur Verfügung Bedienungsanleitung






Weitere Produkte und Handbücher für Audio Sony

Modelle Dokumententyp
RDH-SK8iP Bedienungsanleitung   Sony RDH-SK8iP User Manual, 20 Seiten
LBT-XGR6 Bedienungsanleitung   Sony LBT-XGR6 User Manual, 36 Seiten
RDP-XA900iPN Bedienungsanleitung     Sony RDP-XA900iPN User Manual, 28 Seiten
MZ-S1 Bedienungsanleitung     Sony MZ-S1 User Manual, 208 Seiten
ICF-S10MK2 Bedienungsanleitung   Sony ICF-S10MK2 User Manual, 1 Seiten
CXS-M2016 Bedienungsanleitung     Sony CXS-M2016 User Manual, 2 Seiten
SU-52HX1 Bedienungsanleitung          Sony SU-52HX1 User Manual, 220 Seiten
SA-WM250 Bedienungsanleitung     Sony SA-WM250 User Manual, 2 Seiten
SRS-P11QWHITE Bedienungsanleitung     Sony SRS-P11QWHITE User Manual, 2 Seiten
MHC-BX5 Bedienungsanleitung   Sony MHC-BX5 User Manual, 48 Seiten
HAP-S1 Bedienungsanleitung    Sony HAP-S1 Manuel d'utilisation, 2 Seiten
MDR-XB800 Bedienungsanleitung    Sony MDR-XB800 User Manual, 1 Seiten
ALT-SA32PC Bedienungsanleitung    Sony ALT-SA32PC User Manual, 2 Seiten
MDR-XD100 Bedienungsanleitung   Sony MDR-XD100 User Manual, 1 Seiten
SU-PW1 Bedienungsanleitung   Sony SU-PW1 User Manual, 1 Seiten
MHC-V5 Bedienungsanleitung     Sony MHC-V5 User Manual, 2 Seiten
SRS-BTV5 Bedienungsanleitung     Sony SRS-BTV5 User Manual, 2 Seiten
HCD-GS100 Bedienungsanleitung   Sony HCD-GS100 User Manual, 32 Seiten
RDP-XA900iP Bedienungsanleitung     Sony RDP-XA900iP User Manual, 108 Seiten
EZW-T100 Bedienungsanleitung     Sony EZW-T100 User Manual, 2 Seiten