From ffc1d7820e3e8ef26d163829a29a5e07b3bbfcef Mon Sep 17 00:00:00 2001 From: anderssandstrom Date: Thu, 8 Oct 2020 19:15:28 +0200 Subject: [PATCH] Update README.md --- README.md | 33 +++++++++++++++++++++++++++------ 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 4f93239..b0495ac 100644 --- a/README.md +++ b/README.md @@ -216,6 +216,7 @@ Note: The FFT asynparameters will not be visible by the ecmcReport iocsh command ## PLC interface ### PLC Functions + 1. "fft_clear(arg0);" double fft_clear(index) : Clear/resets all buffers fft[index]. 2. "fft_enable(arg0, arg1);" double fft_enable(index, enable) : Set enable for fft[index]. 3. "fft_trigg(arg0);" double fft_trigg(index) : Trigg new measurement for fft[index]. Will clear buffers. @@ -270,6 +271,30 @@ static.sineval:=sin(2*pi*${FREQ=5}*static.time); ## FFT GUI +### FFT GUI (FFT and rawdata plots + controls) +A simple tool, [ecmcFFTMainGui.py](tools/ecmcFFTMainGui.py), to visualize the calculated spectrum, rawdata and also plugin controls can be found in the tools directory. The GUI connects to the plugin records over pypics framwork. + +Example: ecmcFFTMainGui.py help printout +``` +python ecmcFFTMainGui.py +ecmcFFTMainGui: Plots waveforms of FFT data (updates on Y data callback). +python ecmcFFTMainGui.py +: Ioc prefix ('IOC_TEST:') + : Id of fft plugin ('0') +example : python ecmcFFTMainGui.py 'IOC_TEST:' '0' +Will connect to Pvs: Plugin-FFT-* +``` + +Example: Start ecmcFFMainTGui.py for: +* predix="IOC_TEST:" +* fftPluginId=0 (the first loaded FFT plugin in the ioc) +``` +python ecmcFFTMainGui.py IOC_TEST: 0 +``` +![ecmcFFTMainGui.py](docs/gui/ecmcFFTMainGui.png) + +### FFT GUI (only FFT plot) + A simple tool, [ecmcFFTGui.py](tools/ecmcFFTGui.py), to visualize the calculated spectrum can be found in the tools directory. Example: ecmcFFTGui.py help printout @@ -284,18 +309,14 @@ Example: Start ecmcFFTGui.py for two spectrum waveform pvs ``` python ecmcFFTGui.py IOC_TEST:Plugin-FFT1-Spectrum-X-Axis-Act IOC_TEST:Plugin-FFT1-Spectrum-Amp-Act ``` -Needed packages: - +### Needed packages: * python 3.5 - * epics - * PyQt5 - * numpy - * matplotlib + ## Plugin info ```