Simple Sequencing Tool for SCPI Commands Application Note

Similar documents
Replacing R&S CMU200 with R&S CMW500 in 2G and 3G Speech Test Applications Application Note

LabVIEW driver history for the R&S HMC8012 Driver Documentation

BitLocker White Paper Windows 10

R&S FSL Spectrum Analyzer Resolving Security Issues When Working in Secure Areas

TopSec Mobile Secure voice encryption for smartphones and laptops

R&S AVG Pattern Import Release Notes Firmware Version 02.25

R&S Power Meter NRP Release Notes Firmware Version

R&S ESU EMI Test Receiver. Release Notes. Firmware Version V5.74 SP1. Only an ESU with Windows 7 Operating System is supported

TopSec Product Family Voice encryption at the highest security level

Firmware Version Build 170 SP1

R&S ESR EMI Test Receiver Release Notes Firmware Version V3.36 SP2

R&S NRP-Z27/-Z37 Power Sensor Module Release Notes Firmware Version 04.18a

R&S DigIConf Software Release Notes Firmware Version Build 170 SP1

R&S GNSS Test Automation Release Notes Software Version 1.3.2

R&S QuickStep Test Executive Software Flexibility and excellent performance

R&S ESW Test Receiver Release Notes Firmware Version V1.40 SP1

R&S RTA4000 Digital Oscilloscope Release Notes Firmware Version

R&S SFQ to R&S SFU SCPI Transcription + Cross-Reference List

R&S ELEKTRA Release Notes Software Version V2.10

R&S MSD Modular System Device Flexible antenna switching and rotator control

R&S RTC1002 Digital Oscilloscope Release Notes Firmware Version

R&S RECAL + Release Notes Software Version 4.01

EMC Measurement Software EMC32

R&S NRP-Z51/-Z52/-Z55/-Z56/- Z57/-Z58 Thermal Power Sensors Release Notes

R&S SMB100B Release Notes Firmware Version

R&S Spectrum Rider FPH Release Notes Firmware Version V1.40

R&S ELEKTRA EMC Test Software Swift and reliable measurement of electromagnetic disturbances

.NET programming interface for R&S GTSL and R&S EGTSL

R&S Spectrum Rider FPH Release Notes Firmware Version V1.50

Voice Quality Measurements with R&S ROMES. Application Note

R&S SMW200A Creating Tutorials and Interactive Examples Application Sheet

R&S CMW Bluetooth Release Notes Software Version V3.2.70

R&S AVBrun Sequencer Software. Release Notes. Firmware Version Release Notes. Broadcasting

R&S DSA DOCSIS Signal Analyzer Release Notes Firmware Version 2.2.1

NISTread For R&S ZVA/B/T or R&S ZNB/C Quick Start Guide

R&S NRP2 Power Meter Instrument Security Procedures

R&S NRP-Z5 USB Sensor Hub Instrument Security Procedures

TSML-W Radio Network Analyzer

R&S RTO-K81, R&S RTP-K81 PCIe Compliance Test Test Procedures

Sending s without the risk! The Rohde & Schwarz Secure Web Interface

R&S Pulse Sequencer DFS Software Release Notes Software Version 1.6

R&S Broadcast Drive Test Release Notes Software Version 03.13

R&S SMW200A Vector Signal Generator Instrument Security Procedures

R&S SGT100A RF Source Base Unit Release Notes FW Version

R&S SMA100B Release Notes Firmware Version

PC Software R&S FS300-K1

R&S RTO and R&S RTE Oscilloscopes Release Notes Firmware Version

R&S TSMAx Release Notes Firmware Version

R&S ZN-Z154 Calibration Unit Instrument Security Procedures

Resolving Security Issues When Working with the R&S FS315 in Secure Areas

R&S NRPV Virtual Power Meter Release Notes Application Version 3.2

R&S Pulse Sequencer DFS Software Release Notes Software Version 1.7

R&S LXI Class C Support V1.21 (XP)

R&S RTB2000 Oscilloscope Release Notes Firmware Version

R&S NGE100 Power Supply Series Reduced to the max

Resolving Security Issues When Working with the R&S ESIB in Secure Areas

R&S TSMA Release Notes Firmware Version

R&S InstrumentView Spectrum Analyzer Software Manual

How to Apply MS17-10 to prevent WannaCrypt Attacks

How to deal with the effects of CVE

Release Notes. R&S FSC Spectrum Analyzer

Floppy Disk Control of the I/Q Modulation Generator AMIQ

Relativity Designer Installation Guide

Firmware Release ( 32-Bit-WINDOWS version )

R&S VISA Release Notes Software Version 5.8.6

LabVIEW driver history for the R&S Vector Network Analyzers Driver Documentation

Aeroflex 2300 Series Stabilock TETRA Test Sets. Release Notes Firmware Version 2.11

R&S InstrumentView Software Manual

R&S SMBV100A Vector Signal Generator Instrument Security Procedures

R&S SGS100A SGMA RF Source Instrument Security Procedures

R&S InstrumentView Software Manual

R&S NRP USB and LAN Power Sensors Instrument Security Procedures

IT security for energy infrastructures

R&S ZN-Z15x Calibration Units User Manual

R&S GP-U gateprotect Firewall How-to

TABLE OF CONTENTS 1. SYSTEM REQUIREMENTS INSTALLATION ACCOUNT MANAGEMENT RAZER CORTEX GENERAL SETTINGS...

R&S SMB100A RF and Microwave Signal Generator Instrument Security Procedures

R&S CLIPSTER Mastering excellence.

R&S ZN-Z5x Calibration Units User Manual

TABLE OF CONTENTS 1. SYSTEM REQUIREMENTS INSTALLATION ACCOUNT MANAGEMENT RAZER CORTEX GENERAL SETTINGS...

TABLE OF CONTENTS 1. SYSTEM REQUIREMENTS INSTALLATION ACCOUNT MANAGEMENT RAZER CORTEX GENERAL SETTINGS...

Firmware Release V1.83 SP3

How to Apply MS17-10 to prevent WannaCrypt Attacks

GPIBShot Taking Screenshots Via IEC/IEEE Bus

CLIPSTER Raw Dailies Supplement User Guide (Version 3.7) CLIPSTER. Raw Dailies. Supplement User Guide

R&S CLIPSTER. Configuration Tool

Resolving Security Issues when working with R&S SMU200A, R&S SMATE200A, R&S SMJ100A, R&S AMU200A, or R&S AFQ100A or R&S AFQ100B in Secure Areas

FaxFinder Fax Servers

If your system administrator has set up MaxMobile deployment by , you will receive an with a link to the MaxMobile installation.

IP Device Search and Configuration Tool Operation Manual

Getting Started. Citrix Load Manager. Version 1.0. Citrix Systems, Inc.

Firmware Release 2.4

NPRT 2200 Operation Manual

Quick Reference. EMC ApplicationXtender Media Distribution Viewer 5.40 P/N REV A01

NQDI Classic Transform data into insights to support business decisions

User Guide. VNM Software Decoder. Streaming AV Products. Software Decoder for VN-Matrix 200 Series and 225 Series Rev.

R&S VSE Vector Signal Explorer Release Notes Firmware Version V1.40

TABLE OF CONTENTS. Introduction...1. Setting Up the System...1. Entering Data in the Field...4. Customizing Selection Options...10

Brochure Version IP-based broadcast contribution and primary distribution revolution or evolution?

R&S RTO, R&S RTP R&S ScopeSuite Automation Manual

Transcription:

Simple Sequencing Tool for SCPI Commands Application Note Products: R&S UPV R&S UPV-K1 This document describes an application program for sending a sequence of logged SCPI commands to the firmware of the R&S Audio Analyzer UPV. Application Note Thomas Lechner June 28 2010-1GA53_0e

Table of Contents Table of Contents Background... 3 SCPI Remote Control Commands...3 SCPI Logging on the R&S Audio Analyzer UPV...3 Installing the Application Software... 4 Prerequisites...4 Required file...4 Installation...4 Using the Application Software... 5 User Interface...5 Example Sequence...6 Working with the Source Code... 12 Loading the Source Code to the IDE...12 Modifying the program...12 Ordering Information... 13 Rohde & Schwarz Simple Sequencing Tool for SCPI Commands 1GA53_0e 2

Background Background SCPI Remote Control Commands SCPI (Standard Commands for Programmable Instruments) contains syntax and naming conventions for remote control commands for measurement instruments. SCPI is independent of the physical interface used for communication between a controller and an instrument. The specification contains a set of mandatory system and status commands, conventions for generating long form and short form mnemonics for command headers, parameter formatting, status reporting, data interchange format, instrument classes and a command reference list SCPI Logging on the R&S Audio Analyzer UPV Commands for instrument settings can be logged using the item SCPI Recording of the Sequence menu. For example, setting the frequency of the generator function Sine to 1250 Hz produces the logged command SOURce:FREQuency 1250 HZ The logged command can be re-phrased to a query by replacing the parameter by a question mark: SOURce:FREQuency? The lowercase letters are optional for better understanding. The parser for the remote control commands evaluates only the mandatory uppercase letters. Single commands can be tested in the diagnostic panel ( Utilities menu). Paste the command to the text field SCPI Cmnd and press the Enter key to send the command to the firmware of the instrument. Responses to queries entered here appear in the status line on the bottom left above the softkey labels. The application program described herein is made for executing a sequence of logged remote control commands. Key presses on the front panel and query commands for result values and curves cannot be logged. For these commands please refer to the UPV manual, chapters Remote Control Fundamentals and Remote Control - Commands. A single measurement (key press SINGLE ) is started with INITiate:CONTinuous OFF This command stops any potentially ongoing measurement and starts a single measurement without resetting traces and maximum/minimum readings. The main function result of channel 1 is queried with command Rohde & Schwarz Simple Sequencing Tool for SCPI Commands 1GA53_0e 3

Installing the Application Software SENSe:DATA? The main function result of channel 2 is queried with command SENSe:DATA2? Installing the Application Software Prerequisites The use of the application program provided with this application note requires option UPV-K1 (universal sequence controller). For modification of the supplied source code of the application program the VB.Net IDE (integrated development environment) provided with option UPV-K1 must be installed. The VB.NET IDE is not required for installing and running the program from the installer. Required file Copy 1GA53.msi to the UPV hard disk, e.g. to D:\R&S Software\Application Notes. Installation Run installation file 1GA53.msi from the UPV hard disk and follow the instructions on the screen. The installer creates a shortcut on the desktop and in Programs within the start menu. Rohde & Schwarz Simple Sequencing Tool for SCPI Commands 1GA53_0e 4

Using the Application Software Using the Application Software User Interface Figure 1: User interface after start of the program Copy the commands from the SCPI recorder in the UPV window (using key combination CTRL+C or Copy in the context menu) and paste them into the text box in the centre of the window of the application program with button From Clipboard in the Append panel, key combination CTRL+V or Paste in the context menu. The text content from the clipboard can also be appended to the text by clicking the button From Clipboard in the field Append Command. If checkbox Automatic Insertion from Clipboard is activated, any text copied to the clipboard will immediately be inserted. After insertion of the text, the clipboard is cleared. The checkbox is automatically deactivated when a sequence is run. The other buttons in the Append Command field can be used to append the commands written on the respective buttons. The button Delete Last Entry removes the last command line from the sequence. The textbox in the center contains either the SCPI command sequence or the protocol of execution of a sequence. The contents can be chosen using the Sequence and Protocol tabs on top. The display changes automatically to Protocol when the execution of a sequence is started and back to Sequence when the execution is completed. The? button provides a short explanation of the program. If the Step by Step checkbox is activated, the program prompts the user after each command. Appending ;*WAI to every command causes the instrument to wait for the completion of the last command before the next is executed. Thus it may be made sure that the measurement has terminated before the result is queried: Rohde & Schwarz Simple Sequencing Tool for SCPI Commands 1GA53_0e 5

Using the Application Software INIT:CONT OFF;*WAI SENS:DATA? The connection timeout determines the maximum time allowed between a query and the corresponding response from the instrument. It must be larger than the longest measurement time set in the analyzer. The Clear button deletes all entries in the displayed text box. The Save to txt file, Load from file and Append from file buttons may be used for the respective file operations on the commands in the text box. Furthermore a communication protocol can be saved using the Save to txt file button. The option Minimize this window while running causes the window of the application program to be reduced to an entry in the task bar while the commands are sent to the UPV firmware. The window is restored after the last command in the text box has been executed. Exit ends the application program and closes the control window. Example Sequence The following example sequence shows how to use the application program. The assumed task is to preset the instrument, perform a two-channel rms measurement, store the results of the first measurement as reference values, perform a second rms measurement and obtain the results of the second rms measurement as db values relative to the first results. To this end, perform the following steps: Start the application program from the desktop icon or from the programs folder in the start menu. Click the *RST button to enter this command to the list as first entry. The *RST command presets the instrument to a defined state. Click the INIT:CONT OFF button to append this command. This command will later on start a single measurement. Figure 2: User interface after insertion of the first two commands Change to the UPV window. Rohde & Schwarz Simple Sequencing Tool for SCPI Commands 1GA53_0e 6

Using the Application Software Open the SCPI recorder by clicking on item SCPI Recording in the Sequence menu. Open the function config panel from the DispConfig menu or by right-clicking in the numeric result display and clicking on Config in the context menu. In the column for channel 1, open the Reference combo box and click on Store Ch1. This setting stores the current result of channel 1 as reference value for relative units in channel 1. The command for this operation appears in the SCPI recorder window. Figure 3: Logging of the command to store the current result as reference value of channel 1 In the column for channel 2, open the Reference combo box and click on Store Ch2. This setting stores the current result of channel 2 as reference value for relative units in channel 2. Figure 4: Logging of the command to store the current result as reference value of channel 2 Rohde & Schwarz Simple Sequencing Tool for SCPI Commands 1GA53_0e 7

Using the Application Software In the column for channel 1, open the Unit combo box and click on dbr. This switches the unit of channel 1 to db, relative to the first stored reference value. Figure 5: In the column for channel 2, open the Unit combo box and click on dbr. This switches the unit of channel 2 to db, relative to the second stored reference value. Figure 6: Rohde & Schwarz Simple Sequencing Tool for SCPI Commands 1GA53_0e 8

Using the Application Software Highlight the entries in the SCPI Recorder window and copy them to the clipboard Figure 7: Change to the window of the application program Paste the text from the clipboard to the text box by right-clicking into the textbox and clicking Paste or by clicking the From Clipboard button in the Append Command field. Figure 8: User interface after pasting the commands from the SCPI recorder Click the INIT:CONT OFF button to append the command for starting another single measurement. Click the SENS:DATA? button to append the query command for the result of channel 1. Rohde & Schwarz Simple Sequencing Tool for SCPI Commands 1GA53_0e 9

Using the Application Software Click the SENS:DATA2? button to append the query command for the result of channel 2. Figure 9: User interface with complete sequence Clicking the Run button causes the application program to send the commands one by one to the UPV firmware. First the instrument is preset so that the original state is restored. Then a single measurement is started. The two subsequent commands store the results of this measurement as reference values for both channels. With the next two commands the unit is changed to db relative to the stored reference. Finally a second measurement is started, and the last two commands query the ratio between the result of the second measurement and the result of the first measurement in db for each channel. The results are shown in message boxes which have to be closed by the operator before the program continues. Figure 10: Window displaying the first queried result Figure 11: Window displaying the second queried result Rohde & Schwarz Simple Sequencing Tool for SCPI Commands 1GA53_0e 10

Using the Application Software After the execution of the sequence has completed, the communication protocol can be reviewed by clicking the Protocol tab above the text box. Figure 12: User interface with communication protocol Rohde & Schwarz Simple Sequencing Tool for SCPI Commands 1GA53_0e 11

Working with the Source Code Working with the Source Code Loading the Source Code to the IDE Download 1GA53_VB2003.zip, 1GA53_VB2005.zip or 1GA53_VB2008.zip according to the version of the VB.Net IDE installed on the UPV Unzip the file to the VB.Net projects folder on the UPV hard disk Open file SCPIcontrol.sln from the VB.Net IDE The help button only works when file 1GA53.rtf is present in folder C:\Program Files\Rohde&Schwarz\SCPIControl. Modifying the program The user interface can then be modified and enhanced, e.g. by adding more buttons for inserting additional commands. Open the solution explorer in the IDE, right-click on Form1.vb and Click View Designer or View Code, respectively. Copy one of the existing buttons in the designer and paste it to the GroupBox1 which has to be enlarged for this purpose. Edit the text of the button in the button in the Properties window. Double-click the new button in the designer and copy the text of on of the existing Append Command buttons to the new sub. Edit the copied code according to the command to be inserted. Rohde & Schwarz Simple Sequencing Tool for SCPI Commands 1GA53_0e 12

Ordering Information Literature R&S UPV User Manual http://www2.rohde-schwarz.com/en/products/test_and_measurement/audio/upv- - Manuals- -22- -2224- -2234.html Standard Commands for Programmable Instruments (SCPI) http://www.ivifoundation.org/docs/scpi-99.pdf Ordering Information Ordering Information Type of instrument Description Instrument type Ordering number Audio Analyzer R&S UPV or R&S UPV66 1146.2003.02 1146.2003.66 Universal sequence controller R&S UPV-K1 1401.7009.02 Rohde & Schwarz Simple Sequencing Tool for SCPI Commands 1GA53_0e 13

About Rohde & Schwarz Rohde & Schwarz is an independent group of companies specializing in electronics. It is a leading supplier of solutions in the fields of test and measurement, broadcasting, radiomonitoring and radiolocation, as well as secure communications. Established 75 years ago, Rohde & Schwarz has a global presence and a dedicated service network in over 70 countries. Company headquarters are in Munich, Germany. Environmental commitment Energy-efficient products Continuous improvement in environmental sustainability ISO 14001-certified environmental management system Regional contact USA & Canada USA: 1-888-TEST-RSA (1-888-837-8772) from outside USA: +1 410 910 7800 CustomerSupport@rohde-schwarz.com East Asia +65 65 13 04 88 CustomerSupport@rohde-schwarz.com Rest of the World +49 89 4129 137 74 CustomerSupport@rohde-schwarz.com This application note and the supplied programs may only be used subject to the conditions of use set forth in the download area of the Rohde & Schwarz website. R&S is a registered trademark of Rohde & Schwarz GmbH & Co. KG. Trade names are trademarks of the owners. Rohde & Schwarz GmbH & Co. KG Mühldorfstraße 15 D - 81671 München Phone + 49 89 4129-0 Fax + 49 89 4129 13777 www.rohde-schwarz.com