python_keysight_automation

A single trial on a sample-size of one merely gives you an indication of truth but is not conclusive. Because of this, the ability to automate your primary test and debug equipment can be immensely powerful. Let your equipment do the work while you deliberate over the latest TPS reports. This post will focus on the MSO-X 2024A.

Installing the Software

You will need to start by installing your Python environment of choice, then the Keysight IO Libraries suite.

Download the Keysight IO Libraries Suite here.

Connecting the Hardware

Since this is a new-ish scope, we can use the USB connection and it will enumerate as a VISA com port. This can be found on the rear of the instrument as seen below. Simply connect a USB cable from the instrument to your computer.

msox2024_usb.fw

To give ourselves something to measure, attach a probe to channel one (yellow) and wavegen output as highlighted below.

msox2024_gen_out

HelloWorld

The basic connection to the device is simple. You initialize a VISA resource, connect to the device using its VISA address, and then send commands. To know the address of your instrument, install and launch Keysight Connection Expert.

connection_expert

keysight_hello_world_output

Moving Forward

The next step forward would be changing some parameters on the instrument and collecting some data. To demonstrate this, I’m going to be using the waveform generator to step through a series of frequencies, measuring the resulting frequency using channel 1, and then displaying the result in the prompt.

freqRamp_output

References and Links

Leave a Reply

Your email address will not be published. Required fields are marked *