Skip to content

New Complex Impedance Measurement plug-in. - #14

Open
ccaltagi wants to merge 2 commits into
mainfrom
users/ccaltagi/complex_impedance_plugin
Open

New Complex Impedance Measurement plug-in.#14
ccaltagi wants to merge 2 commits into
mainfrom
users/ccaltagi/complex_impedance_plugin

Conversation

@ccaltagi

Copy link
Copy Markdown
Collaborator

What does this Pull Request accomplish?

A customer requested a measurement plug-in to compute the complex impedance.

Why should this Pull Request be merged?

No proprietary IP and the plug-in would be valuable for a lot of customers.

What testing has been done?

Verified the plugin works.

@ccaltagi
ccaltagi requested a review from chadallee July 17, 2025 21:12
@ccaltagi
ccaltagi requested a review from DevinKoopmans as a code owner July 17, 2025 21:12
@chadallee

Copy link
Copy Markdown
Collaborator

Squash merge this when it goes in

REM You can customize this script for your Python setup. The -v option logs
REM messages with level INFO and above.

.venv\Scripts\python.exe measurement.py -v

@chadallee chadallee Jul 21, 2025

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This assumes the user has a python virtual environment in the directory named ".venv" of whatever directory they happen to be in when they call the script.

Let's get rid of the .venv\Scripts\ piece and just call python.exe "%~dp0/measurement.py" -v

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you're going to include the .measproj and .measui files, then you should get them to work in InstrumentStudio or the Measurement Plug-In UI Editor

FlexLogger doesn't use those files at all and I believe you can safely delete them completely if we want.

Seems like this could be a useful plugin for InstrumentStudio, too, though. Should we maybe talk to somebody on InstrumentStudio and see if we want to put Measurement plugins in some other repo that's more obviously applicable to both FlexLogger & InstrumentStudio (& whatever else exposes Measurement plugins in the future)?


- Click Done.

![Complex Impedance](./Waterfall.jpg)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Waterfall.jpg -> ComplexImpedance.jpg


## Getting Started

- Make sure the system has the recommended Python version installed. Install Measurement Plug-In SDK for Python using [pip](https://pip.pypa.io/).

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not clear what requirements need to be installed.
Just running start.bat from a fresh new venv, I get "need to install click" and then "need to install numpy".

Add a requirements.txt file for the pip requirements & update the readme.
I think I needed these requirements:

click
numpy
ni-measurement-plugin-sdk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants