Software for TESEQ CSP 9160A high frequency current probe set dedicated to cooperation with Rigol DG2041A spectrum analyser
This project is a tool for loading data measured by Rigol DG2041A spectrum analyser and converting it to give accurate measurment of current.
To launch this program you'll need:
- Python 3
- Libraries: tkinter, xlsxwriter, pubsub, matplotlib
- Data files from Rigol DG2041A
Clone this repository and run controller.py file.
This setup uses Ampere's Law. Changing current in primary winding creates changing magnetic field. It is then concetrated in ferrite core. This chaninging magnetic field induces voltage in secondary winding which is then measured by spectrum analyser.
This can be also shown in this simplified circut:
Thanks to transfer impedance graph given by the producer of the probe we can calculate current for each frequency in spectrum.
Typical practice is to put probe on one or more wires and connecting it to spectrum analyser or other voltage measuring device as shown below.
Rigol DG2041A will show measured voltage on it's screen and allow user to save it as .dat file. Extracting information from that file can be a little bit clunky and cumbersome, especially when you have to take many measurments with different ranges.
For more information and theory please visit The HF Current Probe: Theory and Application by Kenneth Wyatt, Current probes, more useful than you think or documentation for both Rigol DG2041A spectrum analyser and TESEQ CSP 9160A high frequency current probe.
- New: Resets program for new input
- Import: Imports data from .dat file
- Export: Exports loaded files to xlsx
- Exit: Closes program
Graphs are both shown in logaritmic y scale. On the upper graph is voltage measured by spectrum analyser, on the lower graph is calculated current flowing through a primary winding.
Let's say we want to check for common mode current in a given circuit. We clamp our current probe on the right cable and begin measurment.
After taking measurments and saving them to your computer run controller.py. Press File -> Import. Select file to load. If you measured more than one range, repeat this step for other files.
Your measurment and calculated current should display on your window.
To further calculations or molding the data export your files by pressing File -> Import and chose your filename and location, press Save
This should export your data to xlsx file as shown below:
Warning! This program will not overwrite existing file if the file is in use. It will give error window to warn the user whenever they'll try.