Skip to content

petrstepanov/tek

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Triggered Waveform Data Acquisiton (DAQ) Script for Tektronix MDO4034C Oscilliscope

Current project goal is to facilitate particle identification by means of application of Machine Learning algorithms.

Tektronix MDO4034C connectivity diagram with NAS

Device connectivity diagram.

Tektronix MDO4034C oscilloscope can only save waveforms in manual mode. By manually pressing a button on the front panel or in the web interface. The goal of this project is to allow waveform acquisition upon the trigger event of the oscilloscope.

Desired logic can be implemented by means of controlling the oscilloscope by a host computer. Due to certain security issues, Windows operating systems are not favored by the JLab IT department. Therefore Brad installed Red Hat Enterprise Linux (RHEL) v8.5.

Prerequisites

  • Configure a linux-based PC with internal local area network (LAN). Two network cards are required to access the internet and intranet.
  • Plug-in computer, oscillscope and the network attached storage (NAS) into the switch on the LAN.
  • Install the National Instruments (NI) VISA software drivers. https://www.ni.com/en-us/support/downloads/drivers/download.ni-visa.html
  • Install a Python IDE (e.g. Wing) for debugging capabilities.
  • Establish a connection between the host computer and the scope by means of the PyVisa library.
  • Set up SAMBA service on the NAS. Enable SMB1 protocol in the NAS settings (required by the scope).
  • In the oscilloscope settings mount shared SAMBA NAS drive as letter I:
  • MDO4034C Programming Manual is utilized to implement the desired logic. Script to be used is test.py.

Acquisition script algorithm

Acquisition script algorithm.

Running the Script

  1. Login to the acquisition computer (in the NPS clean room) with your JLab credentials.

  2. Make sure git package is installed on the computer. Ensure the python --version command outputs version Python 3.XX.X. Otherwise install and use the python3 package.

  3. Check out the repository and run the code:

cd && git clone https://github.com/petrstepanov/tek
python ~/tek/test.py

By default, waveforms are saved into the I:/Data/Temp/ folder on the oscilloscope. Therefore it is important to ensure that the Network Attached Storage (NAS) is mounted on the scope as I: drive and Data/Temp/ folder exists on the NAS.

Resources

  • A few useful examples was referred by a Tektronix developer Steve Guerrero. However examples are for different oscilloscope models and written in Python v.2 (not v.3).
  • Repository contains a Wing IDE project file which can be used for development purposes.

About

Tektronix MDO4034 Save on Trigger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages