Programming Guide, PSG Signal Generators

Total Page:16

File Type:pdf, Size:1020Kb

Programming Guide, PSG Signal Generators Programming Guide Agilent Technologies PSG Signal Generators This guide applies to the following signal generator models: E8267C PSG Vector Signal Generator E8257C PSG Analog Signal Generator E8247C PSG CW Signal Generator Due to our continuing efforts to improve our products through firmware and hardware revisions, signal generator design and operation may vary from descriptions in this guide. We recommend that you use the latest revision of this guide to ensure you have up-to-date product information. Compare the print date of this guide (see bottom of page) with the latest revision, which can be downloaded from the following website: www.agilent.com/find/psg Manufacturing Part Number: E8251-90255 Printed in USA December 2003 © Copyright 2002, 2003 Agilent Technologies, Inc. Notice The material contained in this document is provided “as is,” and is subject to being changed, without notice, in future editions. Further, to the maximum extent permitted by applicable law, Agilent disclaims all warranties, either express or implied with regard to this manual and to any of the Agilent products to which it pertains, including but not limited to the implied warranties of merchantability and fitness for a particular purpose. Agilent shall not be liable for errors or for incidental or consequential damages in connection with the furnishing, use, or performance of this document or any of the Agilent products to which it pertains. Should Agilent have a written contract with the User and should any of the contract terms conflict with these terms, the contract terms shall control. Questions or Comments about our Documentation? We welcome any questions or comments you may have about our documentation. Please send us an E-mail at [email protected]. ii Contents 1. Getting Started . 1 Introduction to Remote Operation . .2 Interfaces . .3 IO Libraries . .3 Programming Language . .4 Using GPIB . .4 1. Installing the GPIB Interface Card . .4 2. Selecting IO Libraries for GPIB . .6 3. Setting Up the GPIB Interface . .6 4. Verifying GPIB Functionality . .7 GPIB Interface Terms . .7 GPIB Function Statements . .8 Using LAN . .12 1. Selecting IO Libraries for LAN . .12 2. Setting Up the LAN Interface . .12 3. Verifying LAN Functionality . .14 Using VXI-11 . .16 Using Sockets LAN . .17 Using TELNET LAN . .17 Using FTP . .20 Using RS-232 . .22 1. Selecting IO Libraries for RS-232 . .22 2. Setting Up the RS-232 Interface . .23 3. Verifying RS-232 Functionality . .24 Character Format Parameters . .24 If You Have Problems . .25 Error Messages . .25 Error Message File . .25 Error Message Types. .26 2. Programming Examples . .27 Using the Programming Examples . .28 Programming Examples Development Environment . .28 Running C/C++ Programming Examples . .29 GPIB Programming Examples . .30 Before Using the Examples. .30 Interface Check using Agilent BASIC . .31 Interface Check Using NI-488.2 and C++ . .32 iii Contents Interface Check using VISA and C. .33 Local Lockout Using Agilent BASIC. 34 Local Lockout Using NI-488.2 and C++ . 36 Queries Using Agilent BASIC . 37 Queries Using NI-488.2 and C++. .39 Queries Using VISA and C. 42 Generating a CW Signal Using VISA and C . 44 Generating an Externally Applied AC-Coupled FM Signal Using VISA and C . 46 Generating an Internal AC-Coupled FM Signal Using VISA and C . 49 Generating a Step-Swept Signal Using VISA and C . 51 Saving and Recalling States Using VISA and C . 52 Reading the Data Questionable Status Register Using VISA and C . 55 Reading the Service Request Interrupt (SRQ) Using VISA and C. 60 Using 8757D Pass-Thru Commands. 65 LAN Programming Examples . 68 Before Using the Examples . 68 VXI-11 Programing . 68 Sockets LAN Programming using C . 73 Sockets LAN Programming Using PERL . 101 Sockets LAN Programming Using Java . 103 RS-232 Programming Examples . .106 Before Using the Examples . 106 Interface Check Using Agilent BASIC . ..
Recommended publications
  • Drivers" Labview Advanced Programming Techinques Boca Raton: CRC Press LLC,2001
    Bitter, Rick et al "Drivers" LabVIEW Advanced Programming Techinques Boca Raton: CRC Press LLC,2001 5 Drivers This chapter discusses LabVIEW drivers. A driver is the bottom level in the three- tiered approach to software development; however, it is possibly the most important. If drivers are used and written properly, the user will benefit through readability, code reuse, and application speed. LabVIEW drivers are designed to allow a programmer to direct an instrument, process, or control. The main purpose of a driver is to abstract the underlying low- level code. This allows someone to instruct an instrument to perform a task without having to know the actual instrument command or how the instrument communi- cates. The end user writing a test VI does not have to know the syntax to talk to an instrument, but only has to be able to wire the proper inputs to the instrument driver. The following sections will discuss some of the common communication meth- ods that LabVIEW supports for accessing instruments and controls. After the dis- cussion of communication standards, we will go on to discuss classifications, inputs and outputs, error detection, development suggestions, and, finally, code reuse. The standard LabVIEW driver will be discussed first. This standard driver is the basis for most current LabVIEW applications. In an effort to improve application performance and flexibility, a new style of driver has been introduced. The Inter- changeable Virtual Instrument (IVI) driver is a new driver technology and will be described in depth later in this chapter. 5.1 COMMUNICATION STANDARDS There are many ways in which communications are performed every day.
    [Show full text]
  • AUTOMATIC TEST ENVIRONMENT SETUP a Project
    AUTOMATIC TEST ENVIRONMENT SETUP A Project Presented to the faculty of the Department of Computer Engineering California State University, Sacramento Submitted in partial satisfaction of the requirements for the degree of MASTER OF SCIENCE in Computer Engineering by Trupti Deepak Naik SPRING 2015 AUTOMATIC TEST ENVIRONMENT SETUP A Project by Trupti Deepak Naik Approved by: __________________________________, Committee Chair Fethi Belkhouche, Ph.D. __________________________________, Second Reader Preetham Kumar, Ph.D. ____________________________ Date ii Student: Trupti Deepak Naik I certify that this student has met the requirements for format contained in the University format manual, and that this project is suitable for shelving in the Library and credit is to be awarded for the Project. __________________________, Graduate Coordinator ________________ Nikrouz Faroughi, Ph.D. Date Department of Computer Engineering iii Abstract of AUTOMATIC TEST ENVIRONMENT SETUP by Trupti Deepak Naik Manual verification in industry testing is a very complex and tedious process. Verification test engineers need to carefully go through various application screens, make the correct oscilloscope setups to get the expected results, try various input combinations and compare the results with the expected behavior. Furthermore, this type of testing is repetitive in nature. With the introduction of the new chips and/or new firmware releases, Automatic Test Environment (ATE) is becoming widely used to address the limitations of the traditional verification testing methods. This project focuses on creating an automated test environment for Solid State Devices (SSD) hardware verification testing. The project will contribute in making the tedious process of manual testing simpler and more time efficient for verification engineers. The project is implemented using Python Scripting Language and Test Environment Suite libraries from Agilent Command Expert tool.
    [Show full text]
  • Programming Guide, Agilent PSG Family Signal Generators
    Programming Guide Agilent Technologies PSG Family Signal Generators This guide applies to the 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. E8241A: US4124 E8244A: US4124 E8251A: US4124 E8254A: US4124 Part Number: E8251-90025 Printed in USA February 2002 © Copyright 2001, 2002 Agilent Technologies Inc. ii Contents 1. Getting Started . 1 Introduction to Remote Operation . 2 Interfaces. 3 IO Libraries. 3 Programming Language. 4 Using GPIB . 5 1. Installing the GPIB Interface Card . 5 2. Selecting IO Libraries for GPIB. 7 3. Setting Up the GPIB Interface. 7 4. Verifying GPIB Functionality . 8 GPIB Interface Terms. 8 GPIB Function Statements . 9 Using LAN . 14 1. Selecting IO Libraries for LAN . 14 2. Setting Up the LAN Interface . 15 3. Verifying LAN Functionality . 15 Using VXI-11 . 17 Using Sockets LAN . 19 Using TELNET LAN . 20 Using FTP . 24 Using RS-232 . 26 1. Selecting IO Libraries for RS-232 . 26 2. Setting Up the RS-232 Interface . 27 3. Verifying RS-232 Functionality . 28 Character Format Parameters . 29 2. Programming Examples. 31 Using the Programming Examples . 32 Programming Examples Development Environment . 33 Running C/C++ Programming Examples . 33 GPIB Programming Examples . 34 Before Using the Examples . 34 Interface Check using Agilent BASIC . 35 Interface Check Using NI-488.2 and C++ . 36 Interface Check using VISA and C . 37 Local Lockout Using Agilent BASIC . 38 Local Lockout Using NI-488.2 and C++ . 39 Queries Using Agilent BASIC . 41 iii Contents Queries Using NI-488.2 and C++.
    [Show full text]
  • GPIB, USB and Instrument Control for Easy PC-To-Instrument Connections
    GPIB, USB and Instrument Control For Easy PC-to-Instrument Connections Keysight instrument control hardware enable: • Easy connection to GPIB instruments based on simple plug-and-play setup and configuration • Use of PC-standard interfaces that are prevalent even on notebook PCs, such as USB and LAN • A wide selection of interfaces to fit your test system application – PCI, PCIe®, USB and LAN • Use of industry-standard I/O libraries which makes integration of existing instruments and software programs in a single system easy, even if you use multiple instrument vendors. Find us at www.keysight.com Page 1 Connecting is as Easy as 1-2-3 1. Install Keysight IO 3. Hook up the instrument 2. Detect instruments and Libraries Suite software control hardware (USB, devices, then configure on your PC LAN, RS-232 or GPIB interfaces with cables) between your Connection Expert instruments and your PC 1. Establish a connection in less than 15 minutes o Keysight IO Libraries Suite eliminates the many working hours it takes to connect and configure PC-controlled test systems, especially if it involves instruments from multiple vendors. In fact, with IO Libraries, connecting your instruments to a PC is as easy as connecting a PC to a printer. 2. Easily mix instruments from different vendors o Keysight IO Libraries Suite eliminates headaches associated with trying to combine hardware and software from different vendors. The software is compatible with GPIB, USB, LAN and RS-232 test instruments that adhere to the supported interface standards, no matter who makes them. o When you install the IO Libraries Suite, the software checks for the presence of other I/O software on your computer.
    [Show full text]
  • Instrument Control Toolbox 2 Control and Communicate with Test and Measurement Instruments
    Instrument Control Toolbox 2 Control and communicate with test and measurement instruments The Instrument Control Toolbox lets you com- municate with instruments, such as oscilloscopes, function generators, and analytical instruments, directly from MATLAB®. With the toolbox, you KEY FEATURES can generate data in MATLAB to send out to ■ Instrument driver support for IVI, VXIplug&play, and an instrument, or read data into MATLAB for MATLAB instrument drivers analysis and visualization. ■ Support for GPIB and VISA standard protocols (GPIB, The toolbox provides a consistent interface to GPIB-VXI, VXI, USB, TCP/IP, serial) all devices independent of hardware manufac- turer, protocol, or driver. The toolbox supports ■ Support for networked instruments using the TCP/IP and IVI, VXIplug&play, and MATLAB instrument UDP protocols drivers. Support is also provided for GPIB, VISA, ■ Graphical user interface for identifying, configuring, and com- TCP/IP, and UDP communication protocols. municating with instruments Working with the Instrument Control ■ Hardware availability, management, and configuration tools Toolbox ■ Instrument driver development and testing tools The Instrument Control Toolbox provides a variety of ways to communicate with instru- ■ Functions for reading and writing binary and text (ASCII) data ments, including: ■ Synchronous and asynchronous (blocking and nonblocking) • Instrument drivers read-and-write operations • Communication protocols ■ Event handling for time-out, bytes read, data written, • Graphical user interface (TMTool) and other events The Instrument Control Toolbox is based ■ Recording of data transferred to and from instruments on MATLAB object technology. The toolbox includes functions for creating objects that contain properties related to your instrument and to your instrument control session. For demos, application examples, Instrument Drivers tutorials, user stories, and pricing: Instrument drivers let you communicate with • Visit www.mathworks.com an instrument independent of device protocol.
    [Show full text]
  • Lightlab Documentation Release 1.1.0
    Lightlab Documentation Release 1.1.0 Alex Tait, Thomas Ferreira de Lima Jul 14, 2020 Contents: 1 Pre-requisites 3 1.1 Hardware.................................................3 1.2 pyvisa...................................................3 2 Installation 5 2.1 Installation Instructions.........................................5 2.2 Getting Started to Python, Jupyter, git.................................. 15 2.3 Making your changes to lightlab..................................... 26 2.4 Tutorials................................................. 56 2.5 Miscellaneous Documentation...................................... 81 3 API 91 3.1 lightlab package............................................. 91 3.2 tests package............................................... 187 Bibliography 189 Python Module Index 191 Index 193 i ii Lightlab Documentation, Release 1.1.0 This package offers the ability to control multi-instrument experiments, and to collect and store data and methods very efficiently. It was developed by researchers in an integrated photonics lab (hence lightlab) with equipment mostly controlled by the GPIB protocol. It can be used as a combination of these three tasks: 1. Consolidated multi-instrument remote control 2. Virtual laboratory environments: repeatable, shareable 3. Utilities for experimental research: from serial comm. to testing, analysis, gathering, post- processing – to paper-ready plotting 4. All structured in python Fig. 1: lightlab in a Jupyter notebook We wrote this documentation with love to all young experimental researchers that are not necessarily familiar with all the software tools introduced here. We attempted to include how-tos at every step to make sure everyone can get through the initial steps. Warning: This is not a pure software package. Lightlab needs to be run in a particular configuration. Before you continue, carefully read the Pre-requisites and the Getting Started to Python, Jupyter, git sections.
    [Show full text]
  • USB and LAN Interfaces for Connecting Measurement Instruments
    Keysight Technologies Impedance Analyzers and Vector Network Analyzers Optimizing Connections Using USB and LAN Interfaces Application Note Introduction Since the Keysight E4990A and E4991B impedance analyzers were released, all Keysight impedance analyzers, the E4982A LCR meter and benchtop vector network analyzers now have Universal Serial Bus (USB) and Local Area Network (LAN) interfaces (Figure 1). Whether you’re setting up an ad hoc system on a lab bench or designing a permanent solution for a manufacturing line, General Purpose Interface Bus (GPIB), LAN, and USB are the most popular interfaces for connecting measurement instruments to PCs. Although GPIB has been the standard interface for connecting test instruments to PCs and for providing programmable instrument control for decades, no major enhancements have been done since the 1990s. On the other hand, USB and LAN are computer-industry standard I/O technologies, and most of PCs offer built-in USB and LAN interfaces. The USB and LAN standards have been continuously enhanced and the performances have improved rapidly in response to the growing needs for high-speed digital applications (Figure 2). This application note describes the benefits of using modern USB and LAN interfaces compared to GPIB. Impedance Analyzers Vector Network Analyzers E4990A E4991B PNA Family ENA Series (5 Hz to 20 GHz) (20 Hz to 120 MHz) (1 MHz to 3 GHz) (300 kHz to 1.1 THZ) E5061B/63A, E5071C/72A, E5080A E4982A LCR Meter (1 MHz to 3 GHz) Figure 1. Keysight benchtop impedance analyzers and vector network analyzers GPIB IEEE 488 GPIB (488.1) IEEE 488.2 SCPI IEEE Ethernet 802.3 Ethernet Gbit 10 Gbit LAN / LXI 10 Mb/s Standard 100 Mb/s Ethernet Ethernet LXI 1970 1980 1990 2000 2010 72 75 83 87 95 98 04 05 96 03 08 13 USB USB 1.0 USB 2.0 USBTMC USB 3.0 USB 3.1 (12 Mb/s) (480 Mb/s) (5 Gb/s) (10 Gb/s) Figure 2.
    [Show full text]
  • Keysight Technologies Simpliied PC Connections for GPIB Instruments
    Keysight Technologies Simpliied PC Connections for GPIB Instruments Application Note Introduction If you are an R&D, manufacturing or test engineer in the electronics industry, chances are you use your test instru- ments for more than simple benchtop measurements. At some point, most engineers need to program and control test instruments and communicate with them from a PC or laptop. Until recently, there hasn’t been a quick and easy way to physically connect test instruments to your computer, much less an easy way to get your PC and test equipment to communicate smoothly with each other. If you are like most engineers, you have wasted a lot of time and effort getting your instruments hooked up, dealing with driver issues and writing code, all in a simple quest to make your test instruments talk to each other and to your PC. There are some new solutions available to save you time with these connectivity issues so you can have more time to spend on more productive tasks. The purpose of this paper is to walk you through the choices you need to make when you are setting up your automated tests and introduce you to some of the hardware options available that can simplify your connection, communication, and programming tasks. Making the hardware connection is just the irst step in mastering the whole connectivity challenge. For assistance with other aspects of connectivity, register for free information on the Keysight Connectivity at www.keysight.com/ ind/IO. Making the Physical Connection In the past, RS-232 and GPIB have been the primary interfaces used for connecting instruments to PCs in test and measurement applications.
    [Show full text]
  • Instrument Control (Ic) – an Open-Source Software to Automate Test Equipment
    Instrument Control (iC) – an open-source software to automate test equipment K. P. Pernstich∗ National Institute of Standards and Technology (NIST), Gaithersburg, MD 20878, USA (Dated: June 8, 2011) Abstract It has become common practice to automate data acquisition from programmable instrumenta- tion, and a range of different software solutions fulfill this task. Many routine measurements require sequential processing of certain tasks, for instance to adjust the temperature of a sample stage, take a measurement, and repeat that cycle for other temperatures. We introduce an open-source Java program that processes a series of text-based commands that define the measurement sequence. These commands are in an intuitive format which provides great flexibility and allows quick and easy adaptation to various measurement needs. For each of these commands, the iC-framework calls a corresponding Java method that addresses the specified instrument to perform the desired task. The way iC was designed enables one to quickly extend the functionality of Instrument Control with minimal programming effort or by defining new commands in a text file without any programming. ∗Electronic address: [email protected] 1 I. INTRODUCTION A spectrum of automation software for scientific test equipment is available, ranging from full-fledged solutions that provide data acquisition and management (e.g. LabView, VEE, and EPICS) to data visualization and calculus software with the capability to communicate with instruments (e.g. IgorPro, Origin, Matlab, Mathematica and SciLab)[8]. This arti- cle introduces Instrument Control (iC) [1][9], an open-source Java program that provides a convenient framework to automate data acquisition by processing a list of commands stored in a conventional text file.
    [Show full text]
  • Development Hints and Best Practices for Using Instrument Drivers Application Note
    Development Hints and Best Practices for Using Instrument Drivers Application Note Products: | All Instrument Drivers This document answers frequently asked questions regarding Rohde & Schwarz instrument drivers and their programming environments. Juergen Straub Application Note 12.2009-1MA153_1e Table of Contents Table of Contents 1 Preface................................................................................................. 4 2 Frequently Asked Questions (FAQ) .................................................. 5 2.1 What is an instrument driver?....................................................................................5 2.2 Why should I use an instrument driver instead of SCPI commands? ...................5 2.3 VISA and physical interfaces......................................................................................7 2.4 What are attribute based instrument drivers?..........................................................7 2.5 What is the RsSpecAn instrument driver?................................................................8 2.6 Are R&S instrument drivers compatible with the VXIPnP driver standard? .........8 2.7 Where to find the VXIPnP installation directory?.....................................................8 2.8 How to install R&S instrument drivers on Windows?..............................................8 3 Best practice for software development......................................... 10 3.1 Getting started ...........................................................................................................10
    [Show full text]
  • IO Libraries Suite 15 Connectivity Guide with Getting Started
    Agilent Technologies GPIB/USB/LAN Interfaces E2094R IO Libraries Suite 15 Connectivity Guide with Getting Started Agilent Technologies Notices © Agilent Technologies, Inc. 2003 - 2008 Warranty puter Software or Computer Software Documentation). No part of this manual may be reproduced The material contained in this doc- in any form or by any means (including ument is provided “as is,” and is electronic storage and retrieval or transla- Safety Notices subject to being changed, without tion into a foreign language) without prior agreement and written consent from Agi- notice, in future editions. Further, lent Technologies, Inc. as governed by to the maximum extent permitted CAUTION United States and international copyright by applicable law, Agilent disclaims laws. all warranties, either express or A CAUTION notice denotes a implied, with regard to this manual hazard. It calls attention to an Manual Part Number and any information contained herein, including but not limited to operating procedure, practice, or 5989-6150 the implied warranties of mer- the like that, if not correctly per- chantability and fitness for a par- Edition formed or adhered to, could result ticular purpose. Agilent shall not be in damage to the product or loss Sixth edition, October 2008 liable for errors or for incidental or of important data. Do not proceed consequential damages in connec- Printed in USA tion with the furnishing, use, or beyond a CAUTION notice until Agilent Technologies, Inc. performance of this document or of the indicated conditions are fully 3501 Stevens Creek Blvd. any information contained herein. understood and met. Santa Clara, CA 95052 USA Should Agilent and the user have a separate written agreement with Trademark Information warranty terms covering the mate- Visual Studio is a registered trademark of rial in this document that conflict WARNING Microsoft Corporation in the United States with these terms, the warranty and other countries.
    [Show full text]
  • Instrument Control Toolbox
    Instrument Control Toolbox For Use with MATLAB® Computation Visualization Programming User’s Guide Version 1 How to Contact The MathWorks: 508-647-7000 Phone 508-647-7001 Fax The MathWorks, Inc. Mail 3AppleHillDrive Natick, MA 01760-2098 http://www.mathworks.com Web ftp.mathworks.com Anonymous FTP server comp.soft-sys.matlab Newsgroup [email protected] Technical support [email protected] Product enhancement suggestions [email protected] Bug reports [email protected] Documentation error reports [email protected] Subscribing user registration [email protected] Order status, license renewals, passcodes [email protected] Sales, pricing, and general information Instrument Control Toolbox User’s Guide COPYRIGHT 2000 by The MathWorks, Inc. The software described in this document is furnished under a license agreement. The software may be used or copied only under the terms of the license agreement. No part of this manual may be photocopied or repro- duced in any form without prior written consent from The MathWorks, Inc. FEDERAL ACQUISITION: This provision applies to all acquisitions of the Program and Documentation by or for the federal government of the United States. By accepting delivery of the Program, the government hereby agrees that this software qualifies as "commercial" computer software within the meaning of FAR Part 12.212, DFARS Part 227.7202-1, DFARS Part 227.7202-3, DFARS Part 252.227-7013, and DFARS Part 252.227-7014. The terms and conditions of The MathWorks, Inc. Software License Agreement shall pertain to the government’s use and disclosure of the Program and Documentation, and shall supersede any conflicting contractual terms or conditions.
    [Show full text]