Agilent Technologies E4438C Manuál s instrukcemi

Procházejte online nebo si stáhněte Manuál s instrukcemi pro Generátory energie Agilent Technologies E4438C. Agilent Technologies E4438C Programming instructions Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 208
  • Tabulka s obsahem
  • ŘEŠENÍ PROBLÉMŮ
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 0
Programming Guide
Agilent Technologies
ESG Vector Signal Generator
This guide applies to signal generator models and associated serial number prefixes listed
below. Depending on your firmware revision, signal generator operation may vary from
descriptions in this guide.
E4438C: US4146
Part Number: E4400-90505
Printed in USA
April 2002
© Copyright 2001, 2002 Agilent Technologies, Inc.
Zobrazit stránku 0
1 2 3 4 5 6 ... 207 208

Shrnutí obsahu

Strany 1 - Programming Guide

Programming GuideAgilent TechnologiesESG Vector Signal GeneratorThis guide applies to signal generator models and associated serial number prefixes li

Strany 2

Getting StartedIntroduction to Remote OperationChapter 14Programming LanguageThe programming language is used along with Standard Commands for Program

Strany 3 - Contents

Programming ExamplesRS-232 Programming ExamplesChapter 294Interface Check Using Agilent BASIC This example program causes the signal generator to perf

Strany 4

Programming ExamplesRS-232 Programming ExamplesChapter 2 95Interface Check Using VISA and CThis program uses VISA library functions to communicate wit

Strany 5

Programming ExamplesRS-232 Programming ExamplesChapter 296 if(viStatus){ // If operation fails, prompt userprintf("

Strany 6

Programming ExamplesRS-232 Programming ExamplesChapter 2 97Queries Using Agilent BASIC This example program demonstrates signal generator query comman

Strany 7 - 1 Getting Started

Programming ExamplesRS-232 Programming ExamplesChapter 298Queries Using VISA and CThis example uses VISA library functions to communicate with the sig

Strany 8

Programming ExamplesRS-232 Programming ExamplesChapter 2 99printf("\n");exit(0);} // Set timeout for

Strany 9 - Interfaces

Programming ExamplesRS-232 Programming ExamplesChapter 2100

Strany 10 - Programming Language

1013 Programming the Status Register System

Strany 11 - Using GPIB

Programming the Status Register SystemOverviewChapter 3102OverviewDuring remote operation, you may need to monitor the status of the signal generator

Strany 12

Programming the Status Register SystemOverviewChapter 3 103Figure 3-1 The Overall Status Byte Register System (1 of 2)

Strany 13

Getting StartedUsing GPIBChapter 1 5Using GPIB The GPIB allows instruments to be connected together and controlled by a computer. The GPIB and its ass

Strany 14 - GPIB Interface Terms

Programming the Status Register SystemOverviewChapter 3104Figure 3-2 The Overall Status Byte Register System (2 of 2)

Strany 15 - GPIB Function Statements

Programming the Status Register SystemStatus Register Bit ValuesChapter 3 105Status Register Bit ValuesEach bit in a register is represented by a deci

Strany 16 - Preset key is pressed

Programming the Status Register SystemAccessing Status Register InformationChapter 3106Accessing Status Register Information1. Determine which registe

Strany 17

Programming the Status Register SystemAccessing Status Register InformationChapter 3 107Deciding How to MonitorYou can use either of two methods descr

Strany 18

Programming the Status Register SystemAccessing Status Register InformationChapter 3108Using the Service Request (SRQ) MethodThe programming language,

Strany 19

Programming the Status Register SystemAccessing Status Register InformationChapter 3 109informs the controller that some device on the bus requires se

Strany 20 - Using LAN

Programming the Status Register SystemAccessing Status Register InformationChapter 3110Status Register SCPI CommandsMost monitoring of signal generato

Strany 21

Programming the Status Register SystemAccessing Status Register InformationChapter 3 111Table 3-2 Effects of :STATus:PRESetRegister Value after :STATu

Strany 22

Programming the Status Register SystemStatus Byte GroupChapter 3112Status Byte GroupThe Status Byte Group includes the Status Byte Register and the Se

Strany 23 - Utility >

Programming the Status Register SystemStatus Byte GroupChapter 3 113Status Byte RegisterTable 3-3 Status Byte Register BitsBit Description0,1 Unused.

Strany 24 - Using VXI-11

Getting StartedUsing GPIBChapter 16Table 1-2 NI-GPIB Interface Card for PC-Based SystemsInterfaceCardOperatingSystemI/O LibraryLanguages Backplane/BUS

Strany 25 - Figure 1-2 Show Devices Form

Programming the Status Register SystemStatus Byte GroupChapter 3114Service Request Enable RegisterThe Service Request Enable Register lets you choose

Strany 26 - Using Sockets LAN

Programming the Status Register SystemStatus GroupsChapter 3 115Status GroupsThe Standard Operation Status Group and the Data Questionable Status Grou

Strany 27 - Using TELNET LAN

Programming the Status Register SystemStatus GroupsChapter 3116Standard Event Status GroupThe Standard Event Status Group is used to determine the spe

Strany 28 - Start > Run

Programming the Status Register SystemStatus GroupsChapter 3 117Standard Event Status RegisterTable 3-4 Standard Event Status Register BitsBit Descrip

Strany 29

Programming the Status Register SystemStatus GroupsChapter 3118Standard Event Status Enable RegisterThe Standard Event Status Enable Register lets you

Strany 30

Programming the Status Register SystemStatus GroupsChapter 3 119Standard Operation Status GroupThe Operation Status Group is used to determine the spe

Strany 31 - Using FTP

Programming the Status Register SystemStatus GroupsChapter 3120Standard Operation Condition RegisterThe Standard Operation Condition Register continuo

Strany 32

Programming the Status Register SystemStatus GroupsChapter 3 121Standard Operation Transition Filters (negative and positive)The Standard Operation Tr

Strany 33 - Using RS-232

Programming the Status Register SystemStatus GroupsChapter 3122Baseband Operation Status GroupThe Baseband Operation Status Group is used to determine

Strany 34

Programming the Status Register SystemStatus GroupsChapter 3 123Baseband Operation Condition RegisterThe Baseband Operation Condition Register continu

Strany 35

Getting StartedUsing GPIBChapter 1 72. Selecting I/O Libraries for GPIBThe I/O libraries are included with your GPIB interface card. These libraries c

Strany 36 - If You Have Problems

Programming the Status Register SystemStatus GroupsChapter 3124Baseband Operation Event Enable RegisterThe Baseband Operation Event Enable Register le

Strany 37 - 2 Programming Examples

Programming the Status Register SystemStatus GroupsChapter 3 125Data Questionable Status GroupThe Data Questionable Status Group is used to determine

Strany 38 - Remote Off On

Programming the Status Register SystemStatus GroupsChapter 3126Data Questionable Condition RegisterThe Data Questionable Condition Register continuous

Strany 39

Programming the Status Register SystemStatus GroupsChapter 3 127Data Questionable Transition Filters (negative and positive)The Data Questionable Tran

Strany 40 - GPIB Programming Examples

Programming the Status Register SystemStatus GroupsChapter 3128Data Questionable Event Enable RegisterThe Data Questionable Event Enable Register lets

Strany 41

Programming the Status Register SystemStatus GroupsChapter 3 129Data Questionable Power Status GroupThe Data Questionable Power Status Group is used t

Strany 42

Programming the Status Register SystemStatus GroupsChapter 3130Data Questionable Power Condition RegisterThe Data Questionable Power Condition Registe

Strany 43

Programming the Status Register SystemStatus GroupsChapter 3 131Data Questionable Power Event RegisterThe Data Questionable Power Event Register latch

Strany 44

Programming the Status Register SystemStatus GroupsChapter 3132Data Questionable Frequency Status GroupThe Data Questionable Frequency Status Group is

Strany 45

Programming the Status Register SystemStatus GroupsChapter 3 133Data Questionable Frequency Condition RegisterThe Data Questionable Frequency Conditio

Strany 46 - Chapter 240

Getting StartedUsing GPIBChapter 184. Verifying GPIB FunctionalityUse the VISA Assistant, available with the Agilent IO Library or the Getting Started

Strany 47

Programming the Status Register SystemStatus GroupsChapter 3134Data Questionable Frequency Event RegisterLatches transition events from the condition

Strany 48 - Chapter 242

Programming the Status Register SystemStatus GroupsChapter 3 135Data Questionable Modulation Status GroupThe Data Questionable Modulation Status Group

Strany 49

Programming the Status Register SystemStatus GroupsChapter 3136Data Questionable Modulation Condition RegisterThe Data Questionable Modulation Conditi

Strany 50 - Chapter 244

Programming the Status Register SystemStatus GroupsChapter 3 137Data Questionable Modulation Event RegisterThe Data Questionable Modulation Event Regi

Strany 51

Programming the Status Register SystemStatus GroupsChapter 3138Data Questionable Calibration Status GroupThe Data Questionable Calibration Status Grou

Strany 52 - Chapter 246

Programming the Status Register SystemStatus GroupsChapter 3 139Data Questionable Calibration Condition RegisterThe Data Questionable Calibration Cond

Strany 53

Programming the Status Register SystemStatus GroupsChapter 3140Data Questionable Calibration Event Enable RegisterThe Data Questionable Calibration Ev

Strany 54 - Chapter 248

Programming the Status Register SystemStatus GroupsChapter 3 141Data Questionable BERT Status GroupThe Data Questionable BERT Status Group is used to

Strany 55

Programming the Status Register SystemStatus GroupsChapter 3142Data Questionable BERT Condition RegisterThe Data Questionable BERT Condition Register

Strany 56 - Chapter 250

Programming the Status Register SystemStatus GroupsChapter 3 143or negative (1 to 0).Data Questionable BERT Event RegisterThe Data Questionable BERT E

Strany 57

Getting StartedUsing GPIBChapter 1 9GPIB Function StatementsFunction statements are the basis for GPIB programming and instrument control. These funct

Strany 58 - Chapter 252

Programming the Status Register SystemStatus GroupsChapter 3144

Strany 59

1454 Downloading and Using Files

Strany 60 - Chapter 254

Downloading and Using FilesIntroductionChapter 4146IntroductionComputer generated data can be downloaded into your signal generator. Depending on the

Strany 61

Downloading and Using FilesARB Waveform Data DownloadsChapter 4 147ARB Waveform Data DownloadsThe signal generator accepts IQ waveform data downloads.

Strany 62 - Chapter 256

Downloading and Using FilesARB Waveform Data DownloadsChapter 4148Bit-value and Output PowerBit-value and output-power:• 0 = 0 volts• –32768 gives neg

Strany 63

Downloading and Using FilesARB Waveform Data DownloadsChapter 4 149Waveform Data Storage Path• Volatile memory - waveform memoryIQ waveform data is st

Strany 64 - Chapter 258

Downloading and Using FilesARB Waveform Data DownloadsChapter 4150Data RequirementsIQ waveform data downloads have the following requirements:• Data m

Strany 65 - Chapter 2 59

Downloading and Using FilesARB Waveform Data DownloadsChapter 4 151Downloading Waveforms Two files, a waveform data file and the associated marker fil

Strany 66

Downloading and Using FilesARB Waveform Data DownloadsChapter 4152Example 1FILENAME the waveform file name as it will appear in the signal generator

Strany 67 - Chapter 2 61

Downloading and Using FilesARB Waveform Data DownloadsChapter 4 153Downloads to Waveform MemoryNOTE Before downloading files into waveform memory, tur

Strany 68 - Chapter 262

Getting StartedUsing GPIBChapter 110Remote FunctionThe Agilent BASIC function REMOTE and the other listed I/O library functions cause the signal gener

Strany 69 - Chapter 2 63

Downloading and Using FilesARB Waveform Data DownloadsChapter 4154If you have a marker file associated with the data file, use the following command t

Strany 70 - LAN Programming Examples

Downloading and Using FilesARB Waveform Data DownloadsChapter 4 155Example ProgramsWaveform Generation Using C++ The following program (Metrowerks Co

Strany 71 - VXI-11 Programing

Downloading and Using FilesARB Waveform Data DownloadsChapter 4156Waveform Downloading Using HP BASIC for Windows The following program will downloa

Strany 72

Downloading and Using FilesARB Waveform Data DownloadsChapter 4 157Program Comments 10: Program file name20: Sets the number of points in the waveform

Strany 73 - Chapter 2 67

Downloading and Using FilesARB Waveform Data DownloadsChapter 4158Waveform Downloading Using HP BASIC for UNIX The following program shows you how to

Strany 74 - Chapter 268

Downloading and Using FilesARB Waveform Data DownloadsChapter 4 159Program Comments 10: Program file name20: Sets the number of points in the waveform

Strany 75

Downloading and Using FilesARB Waveform Data DownloadsChapter 4160Playing a Downloaded WaveformThe following procedure shows you how to load and play

Strany 76

Downloading and Using FilesARB Waveform Data DownloadsChapter 4 161Downloading E443xB Signal Generator Files Download the E443xB type files to the sig

Strany 77

Downloading and Using FilesARB Waveform Data DownloadsChapter 4162Loading files into the above directories does not actually store them in those direc

Strany 78

Downloading and Using FilesARB Waveform Data DownloadsChapter 4 163Example ProgramsWaveform Downloading Using HP BASIC for Windows The following pro

Strany 79 - Chapter 2 73

Getting StartedUsing GPIBChapter 1 11VISA Library The VISA library, at this time, does not have a similar command. NI-488.2 Library The NI-488.2 l

Strany 80 - Chapter 274

Downloading and Using FilesARB Waveform Data DownloadsChapter 4164240 OUTPUT @Esgb;Qwfm_data(*)250 OUTPUT @Esg;END260 ASSIGN @Esg TO *270 ASSI

Strany 81 - Chapter 2 75

Downloading and Using FilesARB Waveform Data DownloadsChapter 4 165Waveform Downloading Using HP BASIC for UNIX The following program shows you how t

Strany 82 - Chapter 276

Downloading and Using FilesARB Waveform Data DownloadsChapter 4166Program Comments 10: Program file name.20 Sets the number of points in the waveform.

Strany 83 - Chapter 2 77

Downloading and Using FilesUser File Data DownloadsChapter 4 167User File Data DownloadsThe signal generator accepts user file data downloads. The fil

Strany 84 - Chapter 278

Downloading and Using FilesUser File Data DownloadsChapter 4168Bit Memory and Binary MemoryUser files can be downloaded to the bit memory or binary me

Strany 85 - Chapter 2 79

Downloading and Using FilesUser File Data DownloadsChapter 4 1693. Bit length must be a multiple of 8 (binary downloads only).SCPI specifies data in 8

Strany 86 - Chapter 280

Downloading and Using FilesUser File Data DownloadsChapter 4170User Files as Data Source for Framed TransmissionSpecifying a user file as the data sou

Strany 87 - Chapter 2 81

Downloading and Using FilesUser File Data DownloadsChapter 4 171NOTE The data in PRAM is static. Firmware writes to PRAM once for the configuration se

Strany 88 - Chapter 282

Downloading and Using FilesUser File Data DownloadsChapter 4172For this protocol configuration, the signal generator’s firmware loads PRAM with the bi

Strany 89 - Chapter 2 83

Downloading and Using FilesUser File Data DownloadsChapter 4 173Because timeslots are configured and enabled within the signal generator, a user file

Strany 90 - Chapter 284

Getting StartedUsing GPIBChapter 112Clear FunctionThe Agilent BASIC function CLEAR and the other listed I/O library functions cause the signal generat

Strany 91 - Chapter 2 85

Downloading and Using FilesUser File Data DownloadsChapter 4174Figure 4-3 Repeating Different Length User FilesDownloading User File DataThis section

Strany 92 - Chapter 286

Downloading and Using FilesUser File Data DownloadsChapter 4 175Preliminary SetupNo preliminary setup is required for user file downloads.Bit Memory D

Strany 93 - Chapter 2 87

Downloading and Using FilesUser File Data DownloadsChapter 4176Querying the Waveform Data Use the following SCPI command to query user file data from

Strany 94 - Chapter 288

Downloading and Using FilesUser File Data DownloadsChapter 4 177Selecting Downloaded User Files as the Transmitted DataUnframed Data The following fro

Strany 95

Downloading and Using FilesUser File Data DownloadsChapter 4178Framed Data The following front panel key presses or remote commands will select the de

Strany 96 - Chapter 290

Downloading and Using FilesFIR Filter Coefficient DownloadsChapter 4 179FIR Filter Coefficient DownloadsThe signal generator accepts finite impulse re

Strany 97 - Command Prompt

Downloading and Using FilesFIR Filter Coefficient DownloadsChapter 4180Downloading FIR Filter Coefficient DataUse the following SCPI command line to d

Strany 98 - Chapter 292

Downloading and Using FilesFIR Filter Coefficient DownloadsChapter 4 181Via the remote interface:[:SOURce]:RADio:<desired format>:FILTer "&

Strany 99

Downloading and Using FilesFIR Filter Coefficient DownloadsChapter 4182Via the remote interface:[:SOURce]:RADio:<desired format>:ARB:FILTer &quo

Strany 100

Downloading and Using FilesDownloads Directly into Pattern RAM (PRAM)Chapter 4 183Downloads Directly into Pattern RAM (PRAM)Typically, the signal gene

Strany 101

Getting StartedUsing GPIBChapter 1 13send.NI-488.2 Library The NI-488.2 library function addresses the GPIB and writes data to the signal generator.

Strany 102 - Chapter 296

Downloading and Using FilesDownloads Directly into Pattern RAM (PRAM)Chapter 4184NOTE References to pattern RAM (PRAM) are for descriptive purposes on

Strany 103 - Queries Using Agilent BASIC

Downloading and Using FilesDownloads Directly into Pattern RAM (PRAM)Chapter 4 185Via the remote interface:For TDMA formats, send the following SCPI c

Strany 104 - Queries Using VISA and C

Downloading and Using FilesDownloads Directly into Pattern RAM (PRAM)Chapter 4186Downloading in Block FormatNOTE Because there is no parsing, block da

Strany 105 - Chapter 2 99

Downloading and Using FilesDownloads Directly into Pattern RAM (PRAM)Chapter 4 187Via the remote interface:For TDMA formats, send the following SCPI c

Strany 106 - Chapter 2100

Downloading and Using FilesDownloads Directly into Pattern RAM (PRAM)Chapter 4188Modulating and Activating the CarrierThe following section explains h

Strany 107 - 3 Programming the

Downloading and Using FilesData Transfer TroubleshootingChapter 4 189Data Transfer TroubleshootingThis section is divided by the following data transf

Strany 108 - Overview

Downloading and Using FilesData Transfer TroubleshootingChapter 4190Data Requirement RemindersTo avoid direct-download-to-PRAM problems, the following

Strany 109 - Chapter 3 103

Downloading and Using FilesData Transfer TroubleshootingChapter 4 191User File Download ProblemsData Requirement RemindersTo avoid user file data down

Strany 110 - Chapter 3104

Downloading and Using FilesData Transfer TroubleshootingChapter 4192Requirement for Continuous User File Data Transmission“Full Data Field” Requiremen

Strany 111 - Status Register Bit Values

Downloading and Using FilesData Transfer TroubleshootingChapter 4 193In this example, a modified PN9, 511-bit data pattern is to be applied as the dat

Strany 112 - Determining What to Monitor

iiNoticeThe material contained in this document is provided “as is”, and is subject to being changed, without notice, in future editions.Further, to t

Strany 113 - Deciding How to Monitor

Getting StartedUsing LANChapter 114Using LAN The signal generator can be remotely programmed via a LAN interface and LAN-connected computer using one

Strany 114

Downloading and Using FilesData Transfer TroubleshootingChapter 4194“Pattern RAM Memory Depth” Requirement It is possible to exhaust the available PR

Strany 115

Downloading and Using FilesData Transfer TroubleshootingChapter 4 195User FIR Filter Coefficient File Download ProblemsData Requirement RemindersTo av

Strany 116 - Status Register SCPI Commands

Downloading and Using FilesData Transfer TroubleshootingChapter 4196ARB Waveform Data Download ProblemsData Requirement RemindersTo avoid IQ waveform

Strany 117

Index 197Aabort function, 9addressGPIB address, 7IP address, 15AgilentBASIC, 35SICL, 34VISA, 34Agilent BASIC, 4Agilent VISA, 7, 14, 27ARB memory vs.

Strany 118 - Status Byte Group

Index198DOS prompt, 21download libraries, 7, 14downloadingARB waveform data, 147FIR filter coefficient data, 179user files, 167downloading files, 145E

Strany 119 - Status Byte Register

Index 199National Instruments (continued)NI-488.2 include files, 33VISA, 34National Instruments VISA, 7, 14, 27negative transition filter, descriptio

Strany 120 - Chapter 3114

Index200RS-232 (continued)IO libraries, 27overview, 27program examples, 93settings, baud rate, 94verifying operation, 29Ssample command line, 185SCPI,

Strany 121 - Status Groups

Index 201status registers (continued)using, 105STB command, 110system requirements, 32Ttalker, 8TCP/IP, 20TELNETexample, 24UNIX, 23using, 21transitio

Strany 123 - Chapter 3 117

Getting StartedUsing LANChapter 1 152. Setting Up the LAN InterfaceFor LAN operation, an IP address must be assigned to the signal generator and the s

Strany 124

Getting StartedUsing LANChapter 1163. Verifying LAN FunctionalityVerify the communications link between the computer and the signal generator remote f

Strany 125

Getting StartedUsing LANChapter 1 17Table 1-12 Ping ResponsesNormal Response for UNIXA normal response to the ping command will be a total of 9 or 10

Strany 126

Getting StartedUsing LANChapter 118Using VXI-11 The signal generator supports the LAN interface protocol described in the VXI-11 standard. VXI-11 is a

Strany 127

Getting StartedUsing LANChapter 1 19Figure 1-2 Show Devices Form

Strany 128

Getting StartedUsing LANChapter 120Using Sockets LAN Sockets LAN is a method used to communicate with the signal generator over the LAN interface usin

Strany 129

Getting StartedUsing LANChapter 1 21Using TELNET LAN TELNET provides a means of communicating with the signal generator over the LAN. The TELNET clien

Strany 130

Getting StartedUsing LANChapter 122Figure 1-3 Connect FormUsing TELNET On a PC With a Host/Port Setting Menu GUI1. On your PC click Start > Run. 2.

Strany 131

Getting StartedUsing LANChapter 1 23Figure 1-4 TELNET WindowThe Standard UNIX TELNET CommandSynopsis telnet [host [port]] Description This command i

Strany 132

Contents iii1. Getting Started . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1Introduction t

Strany 133

Getting StartedUsing LANChapter 124NOTE If your TELNET connection is in line-by-line mode, there is no local echo. This means you cannot see the char

Strany 134 - Chapter 3128

Getting StartedUsing LANChapter 1 25Using FTP FTP allows users to transfer files between the signal generator and any computer connected to the LAN. F

Strany 135

Getting StartedUsing LANChapter 1264. At the password prompt, press enter.You are now in the signal generator’s user directory. Typing help at the com

Strany 136

Getting StartedUsing RS-232Chapter 1 27Using RS-232 The RS-232 serial interface can be used to communicate with the signal generator. The RS-232 conne

Strany 137

Getting StartedUsing RS-232Chapter 1282. Setting Up the RS-232 Interface1. Press Utility > GPIB/RS-232 LAN> RS-232 Setup > RS-232 Baud Rate &

Strany 138

Getting StartedUsing RS-232Chapter 1 293. Verifying RS-232 FunctionalityYou can use the HyperTerminal program available on your computer to verify the

Strany 139

Getting StartedUsing RS-232Chapter 130Agilent Technologies <instrument model name and number>, US40000001,C.02.00Character Format ParametersThe

Strany 140

312 Programming Examples

Strany 141

Programming ExamplesUsing the Programming ExamplesChapter 232Using the Programming Examples The programming examples for remote control of the signal

Strany 142

Programming ExamplesUsing the Programming ExamplesChapter 2 33• C/C++ programming language with the Microsoft Visual C++ 6.0 IDE• National Instruments

Strany 143

ContentsivQueries Using Agilent BASIC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41Queries Using NI-488.2

Strany 144

Programming ExamplesGPIB Programming ExamplesChapter 234GPIB Programming Examples• “Interface Check using Agilent BASIC” on page 35• “Interface Check

Strany 145

Programming ExamplesGPIB Programming ExamplesChapter 2 35Interface Check using Agilent BASIC This simple program causes the signal generator to perfor

Strany 146

Programming ExamplesGPIB Programming ExamplesChapter 236Interface Check Using NI-488.2 and C++This example uses the NI-488.2 library to verify that th

Strany 147

Programming ExamplesGPIB Programming ExamplesChapter 2 37Interface Check using VISA and CThis program uses VISA library functions and the C language t

Strany 148

Programming ExamplesGPIB Programming ExamplesChapter 238Local Lockout Using Agilent BASICThis example demonstrates the Local Lockout function. Local L

Strany 149

Programming ExamplesGPIB Programming ExamplesChapter 2 39Local Lockout Using NI-488.2 and C++This example uses the NI-488.2 library to set the signal

Strany 150 - Chapter 3144

Programming ExamplesGPIB Programming ExamplesChapter 240cout<<endl;cout <<"The signal generator should now be in local mode\n";r

Strany 151 - 4 Downloading and Using Files

Programming ExamplesGPIB Programming ExamplesChapter 2 41Queries Using Agilent BASIC This example demonstrates signal generator query commands. The si

Strany 152 - Introduction

Programming ExamplesGPIB Programming ExamplesChapter 242420 END IF430 OUTPUT Sig_gen;"*IDN?" ! Querys for signal generator ID440 EN

Strany 153 - ARB Waveform Data Downloads

Programming ExamplesGPIB Programming ExamplesChapter 2 43Queries Using NI-488.2 and C++This example uses the NI-488.2 library to query different instr

Strany 154 - Bit-value and Output Power

Contents vBaseband Operation Status Group . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 122Data Questionable Status Gr

Strany 155

Programming ExamplesGPIB Programming ExamplesChapter 244cin.ignore(10000,’\n’);ibwrt(sig, ":FREQ:MODE?",11); // Querys source frequency m

Strany 156 - File Structure and Memory

Programming ExamplesGPIB Programming ExamplesChapter 2 45Queries Using VISA and CThis example uses VISA library functions to query different instrumen

Strany 157 - Downloading Waveforms

Programming ExamplesGPIB Programming ExamplesChapter 246getch(); viPrintf(vi, "POW:AMPL?\n"); // Querys the power levelviScanf(vi, "

Strany 158

Programming ExamplesGPIB Programming ExamplesChapter 2 47Generating a CW Signal Using VISA and CThis example uses VISA library functions to control th

Strany 159

Programming ExamplesGPIB Programming ExamplesChapter 248viPrintf(vi, "POW:AMPL -2.3 dBm\n"); // Set the power level to -2.3 dBmviPrintf(vi,

Strany 160

Programming ExamplesGPIB Programming ExamplesChapter 2 49Generating an Externally Applied AC-Coupled FM Signal Using VISA and CIn this example, the VI

Strany 161 - Metrowerks CodeWarrior 3.0)

Programming ExamplesGPIB Programming ExamplesChapter 250printf("for an AC-coupled FM signal\n");printf("Press any key to continue\n&quo

Strany 162

Programming ExamplesGPIB Programming ExamplesChapter 2 51Generating an Internal AC-Coupled FM Signal Using VISA and CIn this example the VISA library

Strany 163

Programming ExamplesGPIB Programming ExamplesChapter 252viPrintf(vi, "FREQ 900 MHz\n"); // Sets carrier frequency to 700 MHzviPrintf(v

Strany 164

Programming ExamplesGPIB Programming ExamplesChapter 2 53Generating a Step-Swept Signal Using VISA and CIn this example the VISA library is used to se

Strany 165

ContentsviDownloading in Block Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 186Modulating and Activatin

Strany 166 - Playing a Downloaded Waveform

Programming ExamplesGPIB Programming ExamplesChapter 254viPrintf(vi, "INIT:CONT ON\n"); // Begins the step sweep operation

Strany 167

Programming ExamplesGPIB Programming ExamplesChapter 2 55Saving and Recalling States Using VISA and CIn this example, instrument settings are saved in

Strany 168 - Mode > Dual ARB >

Programming ExamplesGPIB Programming ExamplesChapter 256printf("used to save and recall an instrument’s state\n");printf("\n");viP

Strany 169

Programming ExamplesGPIB Programming ExamplesChapter 2 57Reading the Data Questionable Status Register Using VISA and CIn this example, the signal gen

Strany 170

Programming ExamplesGPIB Programming ExamplesChapter 258viClear(vi); // Clears the signal generator // Prints user information

Strany 171

Programming ExamplesGPIB Programming ExamplesChapter 2 59printf("Press Enter when ready\n");printf("\n");getch();

Strany 172

Programming ExamplesGPIB Programming ExamplesChapter 260Reading the Service Request Interrupt (SRQ) Using VISA and CThis example demonstrates use of t

Strany 173 - User File Data Downloads

Programming ExamplesGPIB Programming ExamplesChapter 2 61ViStatus viStatus = 0; // Declares a variable of type ViStatus // for G

Strany 174

Programming ExamplesGPIB Programming ExamplesChapter 262viStatus = viInstallHandler(vi, VI_EVENT_SERVICE_REQ, interupt, rdBuffer);// The next line of

Strany 175 - Data Volatility

Programming ExamplesGPIB Programming ExamplesChapter 2 63viClose(event); // Closes the eventreturn VI_SUCCESS;}

Strany 176

11 Getting Started

Strany 177

Programming ExamplesLAN Programming ExamplesChapter 264LAN Programming Examples• “VXI-11 Programming Using SICL and C” on page 65• “VXI-11 Programming

Strany 178

Programming ExamplesLAN Programming ExamplesChapter 2 65VXI-11 Programing The signal generator supports the VXI-11 standard for instrument communicati

Strany 179

Programming ExamplesLAN Programming ExamplesChapter 266char buf[256]; // Variable for id stringionerror(I_ERROR_EXIT); // Register SICL error handler

Strany 180 - Downloading User File Data

Programming ExamplesLAN Programming ExamplesChapter 2 67// screen. Next the signal generator is set for a -5 dBm power level and then// queried for th

Strany 181

Programming ExamplesLAN Programming ExamplesChapter 268status = viRead(instr, (ViBuf)buffer, MAX_COUNT, &retCount);buffer[retCount]= ’\0’;

Strany 182

Programming ExamplesLAN Programming ExamplesChapter 2 69Sockets LAN Programming using C The program listing shown in “Setting Parameters and Sending Q

Strany 183

Programming ExamplesLAN Programming ExamplesChapter 270The program will run and output a sequence of SCPI commands to the signal generator. The UNIX d

Strany 184 - Select File

Programming ExamplesLAN Programming ExamplesChapter 2 71Programming Using main1() Function. The int main1() function will output a sequence of comman

Strany 185

Programming ExamplesLAN Programming ExamplesChapter 272Setting Parameters and Sending Queries Using Sockets and CThe following programming examples ar

Strany 186

Programming ExamplesLAN Programming ExamplesChapter 2 73 * routines typically use the lower level read() and write() calls. * * - In the Win

Strany 187

Getting StartedIntroduction to Remote OperationChapter 12Introduction to Remote OperationESG signal generators support the following interfaces: • Gen

Strany 188

Programming ExamplesLAN Programming ExamplesChapter 274# include <unistd.h> /* for getopt(3C) */#endif#define COMMAND_ERROR (1)#defi

Strany 189

Programming ExamplesLAN Programming ExamplesChapter 2 75/*************************************************************************** * > $Function:

Strany 190 - Downloading in List Format

Programming ExamplesLAN Programming ExamplesChapter 276 peeraddr_in.sin_family = AF_INET; peeraddr_in.sin_port = htons((unsigned short)portNumbe

Strany 191

Programming ExamplesLAN Programming ExamplesChapter 2 77 **************************************************************************/char * recv_line(S

Strany 192 - Downloading in Block Format

Programming ExamplesLAN Programming ExamplesChapter 278}/*************************************************************************** * > $Function:

Strany 193

Programming ExamplesLAN Programming ExamplesChapter 2 79 { if (ch == ’#’) { /* binary data encountered - figure out what i

Strany 194 - Viewing the PRAM Waveform

Programming ExamplesLAN Programming ExamplesChapter 280 if (recv_line(sock, result, maxLength) == NULL) break; i

Strany 195 - Data Transfer Troubleshooting

Programming ExamplesLAN Programming ExamplesChapter 2 81 break; } puts(result_str); } while (1);}/************************

Strany 196

Programming ExamplesLAN Programming ExamplesChapter 282/*************************************************************************** * > $Function:

Strany 197 - User File Download Problems

Programming ExamplesLAN Programming ExamplesChapter 2 83 if (optind < argc) { strcat(command, " ");

Strany 198

Getting StartedIntroduction to Remote OperationChapter 1 3InterfacesGPIB GPIB is used extensively when a dedicated computer is available for remote

Strany 199

Programming ExamplesLAN Programming ExamplesChapter 284 long bufBytes; bufBytes = queryInstrument(instSock, command,

Strany 200

Programming ExamplesLAN Programming ExamplesChapter 2 85 { fwrite(" ", 2, 1, stdout) ;

Strany 201

Programming ExamplesLAN Programming ExamplesChapter 286 /*********************************************/ /* open a socket connection to the ins

Strany 202

Programming ExamplesLAN Programming ExamplesChapter 2 87 PRORGAM DESCRIPTION: getopt returns the next option letter in argv (starting from argv[1

Strany 203

Programming ExamplesLAN Programming ExamplesChapter 288 posn = strchr(optstring, c); /* DDP */ if (posn == NULL || c == ’:’) {

Strany 204

Programming ExamplesLAN Programming ExamplesChapter 2 89Sockets LAN Programming Using PERLThis example uses PERL script to control the signal generato

Strany 205

Programming ExamplesLAN Programming ExamplesChapter 290chomp $response; print "Instrument ID: $response\n";

Strany 206

Programming ExamplesLAN Programming ExamplesChapter 2 91Sockets LAN Programming Using Java In this example the Java program connects to the signal gen

Strany 207

Programming ExamplesLAN Programming ExamplesChapter 292 // Setup read/write mechanism BufferedWriter out = ne

Strany 208

Programming ExamplesRS-232 Programming ExamplesChapter 2 93RS-232 Programming Examples• “Interface Check Using Agilent BASIC” on page 94• “Interface C

Komentáře k této Příručce

Žádné komentáře