05-17-2013 02:40 PM
Hi All, I have a bode plot program, that can plot magnityde vs frequency and phase vs frequency like this.
This bode plot is based on the functions of poles and zeros. Here is an example showing how Labview calculate zeros/poles. All R value and C value can be input by user.
Now I am trying to add a feature like this:
(1) the user can use mouse to drag these two points in their specific direction like what shows in this picture. When these two points are moved, the shape of this curve will adjust automatically.
(2) When the user finish placing them, Labview can detect their location , then use the equation to figure out what is curent R value and C value.
Can anybody advise how to implement this function? Thank you very much!
Solved! Go to Solution.
05-17-2013 03:53 PM - edited 05-17-2013 03:53 PM
Hi there,
What you're trying to do sounded so cool, I thought I'd have a quick go.
I've uploaded a really simplified example that involves programmatically setting the values in an equation, by dragging a cursor on an XY graph.
Hopefully this should give you some idea of how to achieve what you want.
Here's the link.
https://decibel.ni.com/content/docs/DOC-29647
Good luck,
05-17-2013 03:58 PM
Thank you so much Josh!