Author Archive

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 process data.

This process normally goes quite smoothly, but if there are problems, there are some basic troubleshooting steps that can help get your test up-and-running quickly.

In this note, we are going to show how to use NI-MAX to test the communications connection between an instrument and a remote computer using both a USB and a LAN connection to ensure that they are working properly. Once the connection is verified, you can begin to work on the control software.

National Instruments Measurement and Automation Explorer (NI-MAX) is a free communications tool provided with NI’s VISA library.

USB Connections

1. Power on and connect the instrument via USB cable to the computer. On a computer running Windows, the first time you connect the USB from an instrument should open a dialog box or show a notification of a new device being connected.

You can check the status of the USB connections by opening Device Manager located in the Control Panel menu of most Windows Operating systems and expanding the driver information as shown below in this Windows 10 example:

This indicates that the operating system recognizes the connected instrument as a test instrument.

If the device manager reports the USB connection as some other type of device (printer, camera, unknown, etc.), there is likely a problem linking the proper driver (ausbtmc.sys) to the instrument. One possible solution to this is to disable the driver, disconnect the USB cable, verify that ausbtmc.sys exists, and then reconnect the USB cable.

2. Run NI-MAX by left-clicking on the icon on the desktop or finding it via the start menu

3. This will open the main window, as shown below:

4. Expand the “Devices and Interfaces” menu. You should see the instruments attached via USB with a brief description as shown for an SDS2000X oscilloscope below:

This indicates that a software application (NI-MAX) has correctly identified a test and measurement device (the oscilloscope) over the USB connection.

5. By left-clicking on the instrument, you can see additional information about it:

6. To further test the connection, right-click on the instrument and select Open VISA Test Panel or select it from the side bar:

The VISA Test Panel window shows some helpful information, including the instrument manufacturer, model, serial number, and the USB identifier (VISA Address) along the top.

7. Another useful item in the VISA Test Panel is the Input/Output function. This mode allows you to send specific instrument commands and receive instrument responses.

This is especially helpful when you are planning a specific test sequence, the effect of delays/timing, or troubleshooting a command. You can send each
command one-at-a-time and check the performance of the instrument.

Select Input/Output > Basic I/O > and Enter the command in the text window:

– *IDN? is a common identification string query (question or information request) that returns the information from the connected instrument
– /n is a termination character that represents a new line. This is the standard termination character for SIGLENT instrumentation.
– Write will send the command to the instrument
– Read will pull data from the instrument
– Query will perform a read and then a write command to request and return data from the instrument

USB Checklist

– Is the USB port configured properly on the instrument? Some instruments feature USB ports that can be configured as TMC (Test and Measurement) or Printer communication ports. The USB port should be set to USBTMC or similar for remote control.
– Try a direct connection to the controlling computer. USB hubs or long connections may cause issues.
– Try a different USB cable. Connectors can go bad or prove to be faulty.
– Try a different USB port on the computer.
– On machines running Windows, check the Device Manager. Test instrumentation should appear as USB Test and Measurement Device (IVI) and use the AUSBTMC.SYS driver

Lan Connections

1. Power on and connect the instrument via LAN cable to a LAN network connected to the computer you wish to use.

You can check the status of the LAN connection by using a software tool like NMAP: https://nmap.org/

NMAP allows you to scan networks and identify IP addresses.

First, identify the LAN connection for the instrument. This is typically located in the System menu under IO or LAN settings.

Here is the IO information for an SDS2000X oscilloscope:

DHCP Enabled will automatically configure the instrument connection settings and apply a valid IP address. With DHCP enabled, the IP address may change over time. It is recommended to check the instrument IP address and then confirm that it is visible on the network using NMAP:

Here, we are performing a Ping (short scan to identify what IP addresses are being used) over the range of IP addresses that may match the instrument.

This can be performed by setting the target using the “/24” extension. This scans 24 bits For example, 192.168.10.0/24 would scan the 256 hosts between
192.168.10.0 and 192.168.10.255

Here is more information from NMAP:
https://nmap.org/book/man-target-specification.html

For example, to ping all IP addresses that start with 192.168.0., set the target as follows:

Note the IP address and MAC address that identify your instrument.

2. Run NI-MAX by left-clicking on the icon on the desktop or finding it via the start menu

This will open the main window, as shown below:

3. Unlike USB, there is not an easy way to identify all of the instruments connected via LAN.

In many cases, you will have to manually add the LAN instrumentation. Recall from Step 2, our instrument IP address is 192.168.0.87

Right-click on Network Devices, and select Create New VISA TCP/IP Resource:

4. Select Manual Entry of LAN:

5. Enter the IP address and press Validate

6. After successfully creating a TCP/IP connection, select finish

7. After the system updates it’s configuration, the instrument will appear in the Network Devices menu:

8. To further test the connection, right-click on the instrument and select Open VISA Test Panel or select it from the side bar:

The VISA Test Panel window shows some helpful information, including the TCP/IP identifier (VISA Address) along the top.

9. Another useful item in the VISA Test Panel is the Input/Output function. This mode allows you to send specific instrument commands and receive instrument responses.

This is especially helpful when you are planning a specific test sequence, the effect of delays/timing, or troubleshooting a command. You can send each command one-at-a-time and check the performance of the instrument.

Select Input/Output > Basic I/O > and Enter the command in the text window:

– *IDN? is a common identification string query (question or information request) that returns the information from the connected instrument
– /n is a termination character that represents a new line. This is the standard termination character for SIGLENT instrumentation.
– Write will send the command to the instrument
– Read will pull data from the instrument
– Query will perform a read and then a write command to request and return data from the instrument

 

Verification of a working remote communications connection using NI – MAX

Posted on: August 20th, 2021 by James
Verification of a working remote communications connection using NI – MAX 20th August 2021
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 process data. This process n...

Power Supply Design: Load Step Response with a SIGLENT DC Electronic Load

Posted on: August 20th, 2021 by James
Power Supply Design: Load Step Response with a SIGLENT DC Electronic Load 20th August 2021
Building a power supply that can handle various loads without oscillating can be a challenge. Computational models and computer simulations can help get your design headed in the right direction, but physical testing is essential to proving the performance of your design. One method of quickly determining stability is to use a load step response. In this test, a DC electronic load is used to...

EasyPulse Technology and Its Benefits

Posted on: August 20th, 2021 by James
EasyPulse Technology and Its Benefits 20th August 2021
INTRODUCTION: The majority of modern arbitrary/function waveform generators utilise DDS technology (Direct Digital Synthesis), but there are a few obvious defects using this technology directly. To solve these disadvantages, SIGLENT invented a pulse generating algorithm called EasyPulse technology. In this note, we will describe the basics o...

Programming Example: Create a stair-step waveform using Python and PyVISA using LAN (SDG1000X, SDG2000X, SDG6000X)

Posted on: August 20th, 2021 by James
Programming Example: Create a stair-step waveform using Python and PyVISA using LAN (SDG1000X, SDG2000X, SDG6000X) 20th August 2021
The SIGLENT SDG series of arbitrary waveform generators can use waveforms created programmatically. The waveform data can be sent as individual samples formatted as binary little-endian, 2s complement values. In this programming example, we create a 10 point arbitrary waveform that starts at the least-significant bit and steps up to the most-significant bit to help with understanding the req...

Multi Channel function generator synchronisation

Posted on: August 20th, 2021 by James
Multi Channel function generator synchronisation 20th August 2021
1. Introduction Multi-channel function generators are useful in many situations. For example, in Radar testing the generator needs to output several phase coherent signals and for the phase to be independently adjustable for each signal. In 3-phase power line harmonic distortion testing, a 4 channel generator is required to simulate the multip...

Inter Modulation Distortion (IMD) testing

Posted on: August 20th, 2021 by James
Inter Modulation Distortion (IMD) testing 20th August 2021
Two SIGLENT SDG owners and Amateur Radio operators and frequent experimenters, Steve Ratzlaff AA7U and Everett Sharp N4CY, got together and built a very thorough test procedure for testing Intermodulation Distortion (IMD) on a Loop Amplifier using a SIGLENT SDG2042X generator and SSA3021X spectrum analyser. IMD is an important test for verification of audio amplifiers and radio receivers as hig...

AWG Basics

Posted on: August 20th, 2021 by James
AWG Basics 20th August 2021
Many electronic designs feature the ability to monitor or measure input signals and then perform another task or function based on that input signal. A simple example could be a circuit that looks for an input voltage to exceed a specific amount and triggers another action after it occurs. In such cases, having the ability to configure and deliver a known or simulated signal can be a critical addi...

The basic output waveform and related parameters of the arbitrary waveform generator

Posted on: August 20th, 2021 by James
The basic output waveform and related parameters of the arbitrary waveform generator 20th August 2021
Traditional function generators can output standard waveforms such as sine waves, square waves, and triangle waves. However, in actual test scenarios, in order to simulate the complex conditions of the product in actual use, it is often necessary to artificially create some “irregular” waveforms or add some specific distortion to a waveform. Traditional function generators can no longer meet t...

Secure products without K-lock slots

Posted on: August 20th, 2021 by James
Secure products without K-lock slots 20th August 2021
Many products have Kensington, or K-lock slots to help provide a location to secure a cable lock or other device to help prevent theft. Some products do not have locations for cable lock connections. In this case, we recommend using a special glue or physical attachment system to secure the cable to the case of the instrument. Here is an example: https://www.kensington.com/p/products/s...

Generating an Activation Code (Option Code)

Posted on: August 20th, 2021 by James
Generating an Activation Code (Option Code) 20th August 2021
Introduction Many SIGLENT products have options that can be activated by entering a special activation code into the front panel. This note covers how to generate the activation code.   Setup Contact your Authorised SIGLENT sales office or distribut...

Sub Categories

Blog (40)

Siglent Oscilloscope Offers (1)

CLICK TO CALL

0118 9786911
CLICK TO EMAIL