Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

plugin: Add ADMT Plugin for ADMT4000 #1878

Open
wants to merge 102 commits into
base: dev
Choose a base branch
from

Conversation

JJuanill
Copy link

Adding implementation of ADMT4000 Harmonic Calibration plugin to Scopy

JJuanill added 30 commits May 29, 2024 12:46
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
…ed library to plugins folder

Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
…ironment

Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
- Added logic for compatible
- Changed Harmonic Calibration icon
- Changed plugin description

Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
- Reverted C++ standard from 20 to 17

Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
- Changed data graph color to defined method
- Removed redundant plot direction declaration

Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
- Created method for calibration widget
- Removed initial plot and data for acquisition tab

Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
- Renamed acquisition labels

Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
- Added custom spinbox widget
- Styled line edits and combo boxes

Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
- Connected horizontal spinbox to stepper motor control
- Added conversions for real world values to stepper motor attributes
- Added FFT plot for magnitude and phase calibration values

Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
- Added tabs for raw and calibrated graphs
- Converted real-world values to motor values and vice versa
- Moved raw data list to static vector

Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
doun-doughnut and others added 18 commits November 13, 2024 14:22
Signed-off-by: dpineda2 <Dounell.Pineda@analog.com>
- Updated import sample behavior
- Changed calibration UI timer rate

Signed-off-by: dpineda2 <Dounell.Pineda@analog.com>
Signed-off-by: dpineda2 <Dounell.Pineda@analog.com>
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
- Adjusted graph behavior for acquisition tab
- Adjusted layout for calibration

Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
- Added guards for controller methods
- Added color map to ADMTStyleHelper

Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
- Set static value updates to 300ms
- Variable graph update interval
- Set acquisition to 16ms
- Added layout for fault register widget

Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
- Added disconnect method for separate threads

Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
- Included input and output for GPIO and disable function based on hardware
- Fixed sequence section not updating on switch tabs
- Added initialize for ADMT DIGIOEN register

Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
- Applied new style method

Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
JJuanill and others added 4 commits January 22, 2025 16:25
- Adjusted calibration tab UI elements

Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
- Added style for checkbox LED

Signed-off-by: U-ANALOG\JJuanill <JJuanill@JJUANILL-L02.ad.analog.com>
Signed-off-by: U-ANALOG\JJuanill <JJuanill@JJUANILL-L02.ad.analog.com>
Signed-off-by: U-ANALOG\JJuanill <JJuanill@JJUANILL-L02.ad.analog.com>
Signed-off-by: John Lloyd Juanillo <Johnlloyd.Juanillo@analog.com>
@andrei47w
Copy link
Contributor

andrei47w commented Feb 3, 2025

I see the PR is still in progess, but I noticed a few things that might need changing before this is ready for complete review.

  • create an xml for emulator so we can test the plugin without needing the hardware (https://github.com/analogdevicesinc/iio-emu/tree/main/tools)
  • format code using clang-format version 10 (run tools/format.sh)
  • revert change in the main CMakeLists.txt
  • admt/CMakeLists:
    • remove unused liked libs from cmake (scopy-gr-util, scopy-iio-widgets)
    • remove UI_LIST uses
  • all larger stylesheets from inside .cpp files should be moved to qss using the style infrastructure
  • migrate admtstylehelper.cpp to qss style and use Style::getChannelColor instead of redefining colors
  • HorizontalSpinBox::setEnabled argument should be bool ?
  • rebase with main

@adisuciu adisuciu added the v2.1 label Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants