Keysight Technologies Accelerate Program Development using Keysight Command Expert with LabVIEW. Application Note

Similar documents
Keysight Technologies Accelerate Program Development using Command Expert with Keysight VEE Pro. Application Note

Keysight Technologies Accelerate Program Development using Command Expert with Keysight VEE Pro. Application Note

Keysight Technologies Accelerate Program Development using Keysight Command Expert with MATLAB. Application Note

Keysight N2753A and N2754A Windows XP to Windows 7 Upgrade Kits For Infiniium 9000, 90000, and X-Series Oscilloscopes. Configuration Guide

Keysight Technologies 8163B Lightwave Multimeter 8164B Lightwave Measurement System 8166B Lightwave Multichannel System.

Keysight Technologies Using Source/Measure Unit as an Ammeter

Keysight Technologies

Keysight Technologies Monitoring the Control Panel Temperature

Keysight Technologies Using FieldFox RF and Microwave Analyzers with Mass Storage Devices. Application Brief

Keysight Technologies UXG Agile Signal Generator, Modified Version N5191A

Keysight Technologies FPGA Implementation of a LUT-Based Digital Pre-Distortion Using M3602A FPGA Design Environment.

Keysight Technologies N6472A IEEE802.3bs/cd Compliance Application

Keysight Technologies Impedance Analyzers and Vector Network Analyzers

Keysight Technologies 5G RF DVT Toolset. Solution Brief

Keysight Technologies N8825A/B Infiniium 10BASE-T / 100BASE-TX Ethernet Decoder. Data Sheet

Keysight Technologies Migrating from the 34401A RS-232 Serial Interface to the Truevolt DMM 34461A USB/LAN Interface.

Keysight Technologies N8806A User Defined Function for Editing and Execution for Infiniium Oscilloscopes. Data Sheet

Keysight KS8400A Test Automation Platform 2017 Developer s System Software. Technical Overview

Keysight N8840A USB Power Delivery Electrical and Protocol Compliance Test Software

Keysight Technologies N5394A DVI Electrical Performance Validation and Compliance Software for Infiniium Oscilloscopes. Data Sheet

Keysight N8843A I3CSM Protocol Trigger and Decode for Infiniium Oscilloscope. Data Sheet

Keysight E4991B Impedance Analyzer

Keysight B4655A FPGA Dynamic Probe for Xilinx. Data Sheet

Keysight Technologies Faster Data Analysis with Graphical Digital Multimeter Measurements

Keysight Technologies PC Tested Configurations with PXI/AXIe Chassis

Keysight L4445A Microwave Switch/Attenuator Driver. Data Sheet

Keysight Technologies E3620A and E3630A Non-programmable DC Power Supplies. Data Sheet

Keysight Technologies VoLTE Battery Test, Reference Solution

Keysight Technologies Current Drain Analysis Enhances WLAN Network Card Design and Test. Application Note

Keysight Technologies Migrating from the U8903A to the New U8903B Performance Audio Analyzer

Keysight Technologies Understanding the Programming Interfaces of PXI Instruments

Keysight U5340A FPGA Development Kit for High-Speed Digitizers

Keysight E6962A Automotive Ethernet Rx Compliance Solution

Keysight Technologies

Overview. Applications

Keysight Technologies FPGA Circuit Design: Overcoming Power-Related Challenges. Application Note

Keysight N8841A CAUI-4 Electrical Performance Validation and Conformance Software

Keysight Technologies E4980A Precision LCR Meter 20 Hz to 2 MHz. E4980AL Precision LCR Meter 20 Hz to 300 khz/500 khz/1 MHz. Configuration Guide

Keysight Technologies Increasing Manufacturing Throughput of Automotive Controllers

Keysight Technologies EPM and EPM-P Series Power Meters E-Series Power Sensors. Configuration Guide

Keysight Technologies MXG X-Series Signal Generators N5181B Analog & N5182B Vector

Keysight Technologies N4000A, N4001A, N4002A SNS Series Noise Sources

Keysight Technologies Database Connectivity Guide for TestExec SL

Keysight E5063A ENA Series Network Analyzer

Keysight Technologies E36100B Series Programmable DC Power Supplies. Data Sheet

Keysight DSOX4USBSQ and DSOX6USBSQ USB 2.0 Signal Quality Test Option for 4000 and 6000 X-Series. Data Sheet

Keysight Technologies

Keysight Technologies VSA Software

Keysight Technologies Understanding x1149 Integrity Test. Application Note

Keysight Technologies How to Correlate USB Type-C Simulation and Measurement

Keysight Technologies The Touch Screen Revolution in Test and Measurement. Application Note

Keysight Technologies The Advantage of Universal Inputs in Data Acquisition Systems

Keysight N5435A Infiniium Server-Based License for Infiniium Oscilloscopes

Keysight Technologies M9309A PXIe Vector Network Analyzer Synthesizer

Demo Guide. Keysight Multi-Operator with M937xA PXIe Vector Network Analyzers

Keysight Technologies E4980A Precision LCR Meter 20 Hz to 2 MHz. E4980AL Precision LCR Meter 20 Hz to 300 khz/500 khz/1mhz. Configuration Guide

Keysight E6964A Automotive Ethernet MDI S-parameter Compliance Solution

Keysight Technologies On-Wafer Testing of Opto-Electronic Components Using the Lightwave Component Analyzers. Application Note

Keysight Technologies E3640A E3649A Programmable DC Power Supplies. Data Sheet

Keysight Technologies Medalist i1000d In-Circuit Test System. Data Sheet

Keysight W2630 Series DDR2 BGA Probes for Logic Analyzers and Oscilloscopes. Data Sheet

Keysight Technologies GSM/W-CDMA SMS Testing with Wireless Test Managers (WTMs) Application Note

Keysight B2980A Series Femto/Picoammeter Electrometer/High Resistance Meter

Keysight Technologies TS-8989 System Integration Guide. Application Note

Keysight Technologies M9300A PXIe Frequency Reference. Data Sheet

Keysight Technologies E4982A LCR Meter

Keysight N2870A Series Passive Probes and Accessories. Data Sheet

Keysight Technologies Using PXI Modules, I/0 Libraries and IVI Switch Drivers with National Instruments Switch Executive.

Keysight Technologies W3630A Series DDR3 BGA Probes for Logic Analyzers and Oscilloscopes. Data Sheet

Keysight Technologies PROPSIM F64 5G Channel Emulation Solution - F8800A

Keysight Technologies BenchVue Software v3.5 (BV0000A)

Keysight Technologies RS232/UART Protocol Triggering and Decode for Infiniium Series Oscilloscopes. Data Sheet

Keysight Technologies Measurement Wizard Assistant (MWA) Software for the ENA. Application Note

Keysight Technologies Methods for Characterizing and Tuning DC Inrush Current. Application Brief

Keysight Technologies M9537A AXIe Embedded Controller

Keysight Technologies Configuring Boundary Scan Chains on Keysight x1149 Boundary Scan Analyzer. Application Note

Keysight Technologies DSOX4USBSQ USB 2.0 Signal Quality Test Option for 4000 X-Series. Data Sheet

Keysight Technologies DDR4 Functional/Protocol Debug and Analysis Reference Solution. Configuration Guide

Keysight M9036A PXIe Embedded Controller

Keysight Technologies J-BERT M8020A High-Performance BERT

Keysight Technologies E5260A/E5262A/E5263A/E5270B Precision IV Analyzers. Technical Overview

Keysight U5340A FPGA Development Kit for High-Speed Digitizers

Keysight Technologies N5392A Ethernet Electrical Performance Validation and Conformance Software for Infiniium Oscilloscopes

Keysight E7515A UXM Wireless Test Set. Coniguration Guide

Keysight Technologies E36100 Series Programmable DC Power Supplies. Data Sheet

Keysight Technologies EXG X-Series Signal Generators N5171B Analog & N5172B Vector

Keysight Technologies I 2 C and SPI Protocol Triggering and Decode

Keysight Technologies MXG X-Series Signal Generators N5181B Analog & N5182B Vector

Keysight N7018A Type-C Test Controller. Data Sheet

Keysight Technologies Multi-Vendor Cellular Networks and Value Driven Optimization. Application Note

Keysight Technologies E6950A ecall/era-glonass Conformance Test Solution

Keysight Technologies M9187A PXI Digital I/O Control Module. Data Sheet

Keysight Technologies PXI Multiplexer Switch Modules

Keysight Technologies U2600A Series USB Modular Isolated Digital I/O Devices. Data Sheet

Keysight L4445A Microwave Switch/Attenuator Driver. Data Sheet

Keysight Technologies 87606B Coaxial Matrix Switch

Keysight Technologies PXI Vector Network Analyzer

Keysight Technologies U7231A DDR3 Compliance Test Application for Infiniium Series Oscilloscopes. Data Sheet

Keysight E4991B Impedance Analyzer

Keysight Technologies T4020S LTE RRM Test System. Technical Overview

Transcription:

Keysight Technologies Accelerate Program Development using Keysight Command Expert with LabVIEW Application Note

This application note contains two main sections: Command Expert Basics Introduces you to the Command Expert user interface and shows an example sequence. Command Expert in the LabVIEW Environment Describes how to how to run Command Expert sequences from LabVIEW. Keysight Command Expert for fast and easy instrument control! The Keysight Technologies, Inc. Command Expert is a FREE software application that provides fast and easy instrument control in many PC application environments. Command Expert combines instrument command sets, command sequences, documentation, syntax checking, and command execution in one simple interface. Command Expert helps you to: Find instrument commands Access command documentation Verify command syntax Build instrument command sequences Execute instrument command sequences Integrate sequences into the MATLAB, Visual Studio, Excel, LabVIEW, Keysight VEE, or Keysight SystemVue PC application environment Generate code for command sequences in MATLAB, Visual C#, Visual Basic.NET, and Visual C/C++ Profile command execution time Debug command sequences using breakpoints and single-stepping Instrument command sets are available for instruments that use Standard Commands for Programmable Instrumentation (SCPI) or IVI-COM drivers. 2

Command Expert Basics This section describes how to download, install, and start Command Expert, and uses an example sequence to show the features of the Command Expert user interface. Command Expert LabView Figure 1. Command Expert and LabVIEW Integration Installing the Software 1. Download and install the Keysight IO Libraries Suite (Version 15.0 or above). This software is required by Command Expert to find and communicate with instruments. You can download Keysight IO Libraries Suite from www.keysight.com/find/iosuite. 2. Install LabVIEW. Command Expert can be used with LabVIEW 8.2.1 or above. 3. Download and install Command Expert. If LabVIEW is already installed, the Command Expert LabVIEW Add-On will be installed automatically. You can download Command Expert from www.keysight.com/find/commandexpert. Figure 2. Command Expert Icon 3

Starting Command Expert Click Start > All Programs > Keysight Command Expert > Keysight Command Expert. The Command Expert opening window (Welcome Window) is shown below. Command Expert comes with a number of preconfigured examples for popular instruments. The installation software installs an example instrument named N6700 that provides the commands for the Keysight N6700B Power Supply. We will use this instrument and the N6700_PowerSupply_OutputSetup example to introduce you to the Command Expert user interface. Figure 3. Command Expert Welcome Window Internet access and command sets The N6700 instrument and its SCPI command set are installed by default. For other instrument examples, you will be prompted to install the instrument s command set. After installing Command Expert, you will need Internet access to download SCPI command sets or IVI-COM instrument drivers for your instruments. If you work in a secure environment with limited Internet access, you can still use Command Expert. Simply download the SCPI command sets or IVI-COM instrument drivers using a computer with internet access. You can then transfer the command sets or drivers to the computer with no internet access (using a USB drive, for example). 4

The Command Sequence The command sequence for the N6700_PowerSupply_OutputSetup example is shown in the Sequence Pane in the graphic below. A Command Expert sequence is a series of steps that are executed in order to connect to an instrument, configure an instrument, set outputs, and perform measurements. Figure 4. Command Expert User Interface Overview The Instruments Pane shows your instruments and lets you connect to them. The Search/Browse Pane shows you the commands for the selected instrument and lets you search for commands. The Command Pane shows the selected command and its documentation, and lets you execute the command. The Status Bar shows progress messages as Command Expert performs operations. The Parameters Pane expands to show sequence parameters and lets you view and edit their names and values. The Sequence Pane shows the various steps in the Command Expert sequence and lets you edit the sequence and replay commands. The Sequence Pane has the following features: 5

Figure 5. Sequence Pane Details Working offline The absence of a specific instrument address in step 1 of the sequence shown above indicates that we are working offline. To connect to an actual instrument, select step 1 in the Sequence Pane, and enter the instrument address in the address field in the Command Pane. Working offline is a simulation mode where you can view and perform commands as usual, but the commands return default values. This is a good way to explore a command set, view documentation, and prototype sequences without having to connect to a physical instrument. 6

Sequence Steps Selecting a step in the Sequence Pane reveals details about the command and its parameters. Figure 6. Command Details Command Expert uses these types of steps: Connect steps (to connect to instruments) Command steps (SCPI or IVI-COM commands) Wait statements Comments Steps to control timeouts and error handling 7

Sequence Debugging You can debug a sequence by inserting breakpoints. When you run the sequence, execution pauses at the first step with a breakpoint and Command Expert enters single-step mode. In single-step mode you can single-step the sequence, monitor parameters and results, replay the sequence, and play selected steps. When you are ready to run the sequence without pausing at the breakpoint, remove the breakpoint and run the sequence normally. Figure 7. Debugging the Sequence You can also skip steps to help with debugging. Substituting an instrument You can temporarily switch command sets in a sequence to see the effects of switching to a different instrument. Any commands that aren t supported by the new instrument are highlighted in red. 8

Using IVI-COM If you prefer, you can use IVI-COM commands instead of SCPI commands. Command Expert has a number of IVI-COM examples and the operation is very similar to SCPI. The example below (filename: AgN67xx_PowerSupply_OutputSetup.xlsx) uses IVI-COM commands: Figure 8. IVI-COM Commands IVI-COM command sets and drivers IVI-COM command sets are automatically extracted from IVI-COM drivers. You must install an IVI-COM driver (outside of Command Expert) before you can use the driver s command set in Command Expert. You can download Keysight IVI-COM drivers from www.keysight.com/find/ivi. 9

Using IVI-COM cont d The Command Expert IVI-COM interface is very similar to the SCPI interface. All elements within the interface operate as described earlier in this application note. For more information, see Command Expert for IVI-COM Tutorial in the Command Expert help: Figure 9. IVI-COM Help Using Command Expert with Non-Keysight Instruments You can use Command Expert with any SCPI instrument that follows the SCPI-99 standard, using the Generic SCPI-99 Instrument command set. This command set provides the commands that are common to SCPI-99 instruments. You can also use direct commands to send additional SCPI commands. Using direct commands, you can send any SCPI command to any SCPI instrument. Any instrument that has an IVI-COM driver can be used with Command Expert, regardless of the manufacturer. 10

Getting Started with Command Expert To get started using Command Expert, you can start with one of the many example sequences and modify that sequence, or you can create your own sequence. For a step-by-step tutorial showing how to create a sequence, see Command Expert Tutorial in the Command Expert help: Figure 10. Command Expert Tutorial Command Expert in the LabVIEW Environment The Command Expert LabVIEW Add-On lets you use Command Expert within LabVIEW to create and run instrument command sequences. The add-on provides a new LabVIEW Express VI called the Sequence Block: Figure 11. The Sequence Block Each Sequence Block holds a Command Expert instrument control sequence. You create Command Expert Sequence Blocks using LabVIEW and configure and edit them using Command Expert. 11

LabVIEW Examples Command Expert comes with a number of examples showing how to use the Command Expert LabVIEW Add-On. We will use the N6700_PowerSupply_OutputSetup.vi example to demonstrate how to use Command Expert with LabVIEW to control a Keysight N6700 Power Supply. The example has a LabVIEW front panel interface where you can specify inputs to pass into Command Expert Sequence Blocks and view the measured output: Figure 12. LabVIEW Front Panel Interface Working offline The absence of a specific N6700 Address indicates that we are working offline. To connect to an actual instrument, enter a valid instrument address. Working offline is a simulation mode where you can view and perform commands as usual, but the commands return default values. This is a good way to explore a command set, view documentation, and prototype sequences without having to connect to a physical instrument. 12

From LabVIEW, click Window > Show Block Diagram to display the underlying block diagram: Figure 13. LabVIEW Block Diagram This example contains these three Command Expert Sequence Blocks: PS Reset and Clear - resets and clears the power supply (this block is used twice once at the beginning and once at the end). PS Config Output - sets the power supply s voltage, current, over-voltage, and over-current protection PS Measure Voltage - measures the output voltage Click Help > Show Context Help and click on any part of the block diagram to see context help for that block. For example, clicking the PS Config Output Sequence Block displays: Figure 14. Context Help 13

Running the Example From either the front panel or block diagram view, click Operate > Run to run the example using the N6700 Address, Channel, Voltage (V), Over Voltage (V), Current Limit (A), and Settling Time (s) inputs. The measured voltage is output and displayed in the Measured Voltage box. Editing Command Expert Sequence Blocks To modify a Command Expert Sequence Block, double-click in the center of the block: Figure 15. Double-Click to Edit the Sequence Block Command Expert opens, displaying the command sequence: Figure 16. Command Expert Command Sequence You can now use Command Expert to edit the command sequence as shown earlier in this document. When finished editing, click OK to save the updated command sequence into the Command Expert Sequence Block or Cancel to cancel changes and return to the LabVIEW application. 14

Using IVI-COM The preceding example used SCPI commands. If you prefer, you can use IVI-COM commands instead of SCPI commands. Command Expert has a number of IVI-COM examples and the operation is very similar to SCPI. The example below shows the Command Expert IVI-COM sequence associated with a LabVIEW Command Expert Sequence Block: Figure 17. Command Expert IVI-COM Sequence Where to Go Next An easy way to get started using Command Expert with LabVIEW is to browse through the example folders and select an example that is similar to your test and measurement application. Examples are located in: C:\Documents and Settings\All Users\Keysight\Command Expert\Examples (for Windows XP) C:\ProgramData\Keysight\Command Expert\Examples (for Windows 7) LabVIEW examples are in these subfolders: \Scpi\LabVIEW (SCPI examples) \IviCom\LabVIEW (IVI-COM examples) 15

Command Expert has extensive application documentation containing FAQs, tutorials, examples, and getting started information. You can use the LabVIEW Add-on Tutorial, available in the Command Expert help, for step-by-step information on how to use Command Expert with LabVIEW: Figure 18. Command Expert LabVIEW Tutorial You can find more information on Command Expert, including links to other application notes, at www.keysight.com/find/commandexpert. 16

Command Expert PC Operating Requirements Operating System Disk Keysight IO Libraries Suite Monitor Browser Windows XP, Service Pack 2 or above, 32-bit only. Editions: Home, Professional Windows 7, 32-bit or 64-bit. Editions: Starter, Home Basic, Home Premium, Professional, Ultimate, or Enterprise At least 1GB free disk space Version 15.0 or above www.keysight.com/find/iosuite At least 1024x768 monitor resolution Internet Explorer 6 or above (7 or above recommended) You can find the current list of instrument SCPI command sets at: www.keysight.com/find/commandsetlist Application Development Environment Requirements MATLAB MATLAB R2009a or above and Instrument Control Toolbox Visual Studio Visual Studio 2005, 2008, 2010 or above LabVIEW LabVIEW 8.2.1 or above. VEE VEE Pro 9.22 or above. Excel Excel 2007 or Excel 2010. Download Command Expert now and experience fast and easy instrument control: www.keysight.com/find/commandexpert 17

18 Keysight Accelerate Program Development using Keysight Command Expert with LabVIEW - Application Note Evolving Since 1939 Our unique combination of hardware, software, services, and people can help you reach your next breakthrough. We are unlocking the future of technology. From Hewlett-Packard to Agilent to Keysight. For more information on Keysight Technologies products, applications or services, please contact your local Keysight office. The complete list is available at: www.keysight.com/find/contactus Americas Canada (877) 894 4414 Brazil 55 11 3351 7010 Mexico 001 800 254 2440 United States (800) 829 4444 mykeysight www.keysight.com/find/mykeysight A personalized view into the information most relevant to you. http://www.keysight.com/find/emt_product_registration Register your products to get up-to-date product information and find warranty information. Keysight Services www.keysight.com/find/service Keysight Services can help from acquisition to renewal across your instrument s lifecycle. Our comprehensive service offerings onestop calibration, repair, asset management, technology refresh, consulting, training and more helps you improve product quality and lower costs. Keysight Assurance Plans www.keysight.com/find/assuranceplans Up to ten years of protection and no budgetary surprises to ensure your instruments are operating to specification, so you can rely on accurate measurements. Keysight Channel Partners www.keysight.com/find/channelpartners Get the best of both worlds: Keysight s measurement expertise and product breadth, combined with channel partner convenience. Asia Pacific Australia 1 800 629 485 China 800 810 0189 Hong Kong 800 938 693 India 1 800 11 2626 Japan 0120 (421) 345 Korea 080 769 0800 Malaysia 1 800 888 848 Singapore 1 800 375 8100 Taiwan 0800 047 866 Other AP Countries (65) 6375 8100 Europe & Middle East Austria 0800 001122 Belgium 0800 58580 Finland 0800 523252 France 0805 980333 Germany 0800 6270999 Ireland 1800 832700 Israel 1 809 343051 Italy 800 599100 Luxembourg +32 800 58580 Netherlands 0800 0233200 Russia 8800 5009286 Spain 800 000154 Sweden 0200 882255 Switzerland 0800 805353 Opt. 1 (DE) Opt. 2 (FR) Opt. 3 (IT) United Kingdom 0800 0260637 For other unlisted countries: www.keysight.com/find/contactus (BP-9-7-17) www.keysight.com/find/commandexpert DEKRA Certified ISO9001 Quality Management System www.keysight.com/go/quality Keysight Technologies, Inc. DEKRA Certified ISO 9001:2015 Quality Management System This information is subject to change without notice. Keysight Technologies, 2017 Published in USA, December 1, 2017 5991-0693EN www.keysight.com