Using the OpenScope MZ in LabVIEW

Introduction

In this tutorial, we will go over how to connect an Open Scope MZ to Lab VIEW. To do so, I will be walking you through some example VIs that I made. These examples allow you to access the oscilloscope and Wave gen/DC power supply functions of the Open Scope as well as the GPIO pins and the Logical Analyzer.

Materials

Hardware

Software

NOTE: Installing Lab VIEW requires you create an NI account. Your Lab VIEW installation and any NI software keys you use will be tied to this account.

Hardware setup

A full Open Scope MZ setup guide can be found here. I will go through a brief overview of the steps found on that page.
Download and install the Digilent Agent.

1) Connect the Open Scope MZ to the computer via USB.
2) Right click the Digilent Agent in the system tray and click

Launch Wave Forms Live.
3) Add the Digilent Agent and Open Scope MZ to Wave Forms Live.

  • Click Add A Device.
  • Choose Agent.
  • Enter the hostname or IP address of the device where the Agent is running and click Add Device.
  • Select the COM port associated with the Open Scope MZ from the drop down.
  • Click Update Firmware and follow the instructions to update the firmware on the Open Scope MZ.
  • Next, Under the Calibration section click Calibrate and follow the steps to calibrate your device.

Finally, connect your device to Wi-Fi by following the steps on this page. Once you have your Open Scope connected to Wi-Fi you are ready to move on to the next steps.

Open Scope MZ Communication Protocol

This page is a reference for the Open Scopes communication protocols. All open scope commands are JSON objects (start with ‘{‘ and with ‘}’ or OSJB (in chunk notation). Add JSON command that went sent via terminal puts the device into JSON command mode. Below is an example command that you would use to reset the device.
The Send box on the left contains the code that you will be sending to the device while the Response box contains the expected response. To send this command from Lab VIEW, you will use the HTTP POST VI that can be found in the HTTP Client Palette. You can see an example of this VI in the picture below.
Read More: Using the Open Scope MZ in Lab VIEW

Leave a Comment

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