LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Bode plot (MathScript)

Hey.
Is there any way to plot lines in a bode plot where the lines go from the Y axis (-11dB,-3dB and 0dB) to the lines that are drawn and then down to the x axis without the "margin" feature?
(I have attached a picture where the lines have been drawn "manually")
________________________________________________
"Science is about knowing, while engineering is about doing"
0 Kudos
Message 1 of 2
(2,720 Views)

In my opinion, the easiest way to do this is to bring the 'model' to the outside of Mathscript node and use LabVIEW 'cursors' or plots to modify the graph. Here is an example on how to do this:

 

C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\Control and Simulation\Control Design\Mathscript\CDEx Loop Transfer Recovery for Satellite Attitude.vi

 

Notice that it overlaps Gain and Phase Margins with a common bode plot. You can easily create a plot that has a horizontal and a vertical line. This example, although design to work with Nyquist Graph, has the code to create lines and control cursors.

 

C:\Program Files (x86)\National Instruments\LabVIEW 2013\examples\Control and Simulation\Control Design\Frequency Analysis\CDEx Nichols Analysis.vi

 

Hopefully this helps.

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 2 of 2
(2,700 Views)