LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

drag the zeros/poles of a bode plot curve

Solved!
Go to solution

Hi All, I have a bode plot program, that can plot magnityde vs frequency and phase vs frequency like this.

bode.PNG

 

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.

zero_pole.PNG

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!

0 Kudos
Message 1 of 3
(3,749 Views)
Solution
Accepted by topic author bhl3302

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,

Josh E
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 2 of 3
(3,735 Views)

Thank you so much Josh!

0 Kudos
Message 3 of 3
(3,730 Views)