Programming Example: SDG waveform creation with Python and Sockets (no VISA)
December 13, 2022
Here is a programming example using Python and Sockets over LAN to create a two-point waveform. Sockets via LAN can be helpful if you wish or are unable to use the VISA library. Here is a picture of the data once it has been loaded into the SDG: Here is a picture of the generator … Continued
Baltic Labs: Generate a stereo-FM multiplex waveform with Python and AWG
October 20, 2022
Sebastian @ Baltic Labs had a recent project that required a stereo-FM multiplex (MPX) signal containing two different tones in the left and right stereo audio channels. This article shows how to generate such an MPX signal for Siglent SDG-series arbitrary waveform generators with Python and PyVISA. Generate a stereo-FM multiplex waveform with Python and … Continued
Programming Example: Identification String (*IDN?) return with LabVIEW 2018
December 16, 2019
This LabVIEW VI (version 2018) provides a simple platform to begin creating LabVIEW programs. You can download the VI here: VISA_IDN.ZIP In this example, the user can: Select the connected instruments from the VISA Resource List drop down menu: NOTE: USB devices will automatically appear. For LAN connections, you will need to add the device. … Continued
Measuring Power Supply Control Loop Response with Bode Plot II
May 24, 2019
Introduction Stability is one of the most important characteristics in power supply design. Traditionally, stability measurements require expensive frequency response analyzers (FRA) which are not always available in a laboratory. SIGLENT has released Bode Plot Ⅱ features to the SIGLENT SDS1104X-E, SDS1204X-E, SDS2000X-E, SDS2000X Plus, SDS5000X, and SDS6000A series of oscilloscopes. When combined with a … Continued
Programming Example: Using VXI11 (LXI) and Python for LAN control without sockets
October 3, 2018
In an effort to meet the demands of remote monitoring and control, modern test instrumentation is leveraging more communications busses and than ever before. Each type of bus can also have numerous layers that can be utilized for specific advantages. The VXI bus and subsequent software drivers form a convenient software API that can make remote control … Continued
Bode Plot of a filter using an oscilloscope and function generator
September 12, 2018
A Bode plot is a method of graphically displaying the frequency response of a system or device-under-test (DUT). Commonly, the magnitude and phase response of the device are plotted with respect to frequency using a shared horizontal frequency axis as shown in the example below: By showing both the magnitude and phase information on … Continued
Programming Example: List connected VISA compatible resources using PyVISA
August 30, 2018
PyVISA is a software library that enables Python applications to communicate with resources (typically instruments) connected to a controlling computer using different buses, including: GPIB, RS-232, LAN, and USB. This example scans and lists the available resources. It requires PyVISA to be installed (see the PyVISA documentation for more information) *** ***** Here is the … Continued
Testing Open Socket Communications Using PuTTY
October 19, 2017
Many instruments include the ability to be controlled via a remote connection to a computer using an Ethernet connection. In many cases, these instruments require a special software library that can help establish and maintain the communications link between the instrument and controlling computer. This can be annoying for a few reasons… the software library … Continued
Verification of a working remote communications connection using NI – MAX
September 29, 2017
Automating a test can dramatically increase the productivity, throughput, and accuracy of a process. Automating a setup involves connecting a computer to the test instrumentation using a standard communications bus like USB or LAN and then utilizing code entered via a software layer (like LabVIEW, .NET, Python, etc..) to sequence the specific instrument commands and … Continued