Bode plot

Hi,
Is it possible to obtain bode magnitude plot and phase plot from FFTed frequency response curve without using the transfer function?how
I have the frequency response curve obtained from milling machine using Labview 2014
Can I use Express>signal analysis>spectral measurements >Magnitude (peak),dB to obtain a bode plot??
Is there any other choice to obtain this?
Thanks,
Karthick

A bode plot is by definition a drawing with the poles and zeroes of the transfer function of a system.
What you want to do is called the Frequency/Phase response of your system.
Without the pole/zero data, it is of course possible. The process goes something like this:
You sweep a sine over your wanted frequency range, and from FFT, you get the Frequency magnitude and phase for each frequency measured.
then you make two plots, one with log Frequency / Amplitude, and with with log Frequency / Phase.
And there you have your Frequency / Phase response.
Old analog instruments used a sine sweep and a peak detector for amplitude, instead of FFT, very cool, but a bit tricky to get the phase response.

Similar Messages

  • How to get bode plot in lab view

    Hi all,
    I'm just starting with lab view.
    We have NI PXI system.
    I need frequency responce of a servo motor i.e.  bode plot,
    I'm using labview 8 ,we have PXI 7352 motion controller.
    I'm very confused as where to start and what is the in put to the motor.
    can any one help me?

    Hello,
    I'm not so sure that using a motion control card is the way to go about finding the frequency response of a servo motor. In order to do this, you would give the motor a varying sinusoidal voltage and then measure the voltage output of a velocity sensor. Here is a link to a document that goes through the process: ftp://ftp.ni.com/pub/devzone/epd/lab5_frequency_response.pdf
    -Zach
    Certified LabVIEW Developer

  • Transfer function + controller + Bode plot and root locus

    Hi
    I am trying to plot Bode plot and root locus for trasfer function
    TF = 1/(s^4 + 2s^2)
    Then I want to implement Ideal compensators (PI , PD or PID) or lag/lead compensator to get the required stability
    I am trying to do this Labview 8.o in control design and simulation loop. (V2.0)
    I have done some simulation but I am not understanding as to how implement controller on this.
    I need little help.
    I am attaching my VI. but you will find rootlocus not there and feed back loop control to implement controllers not there
    Thankyou

    I have one typical controlers question where I am using feedback control
    alongwith compensators. My transfer function is like fourth order
    TF = 1/S^2(S^2+2)
    but  rootlocus and transfer function in labview  do not let me write equation more than 3rd order.
    How can I write this 4th order equation.
    Next I want to make one feedback control on this transfer function and then want to plot bode and rootlocus.
    I have made one vi of fourth order by placing transfer function in series and then for feedback gain I have placed another transfer function with feedback. I have also attached rootlocus vi but it does not show me rootlocus since rootlocus Vi can not take more than fourth order transfer function.
    I want to plot my step response, bode, and root locus for step input
    I have also tried to  make another VI with tansfer function VI which has feed back terminal in it, but I donot know how to get bode and rootlocus out of that.
    I am attaching my both VIs for you.
    see my two Vis please.
    Attachments:
    Bode_practice.zip ‏156 KB

  • Bode Plot Problem - Multisim

    Hello
    I'm a new user of Multisym and I am trying to get a Bode Plot, where the input to the circuit is a current source (not a voltage source), please see the attached file. Any ideas?
    Best Regards,
    David
    Attachments:
    Simulation.ms12 ‏244 KB

    Hi David,
    In order to use the Bode Plotter tool with a current source:
    1. Place a current probe on the current source
    2. Connect the other end (output) of the current source to the input of the Bode plotter
    I have created that setup in your original file (see attached)
    Regards,
    Puneet Mehra
    Attachments:
    Simulation - modified.ms12 ‏846 KB

  • More Diagramms in Bode Plot

    good evening once more.
    I'm plotting the graphs from filters on bode plotter.
    Cause I have more filter circuits i would like to view them in one bode plot rather in the graph (in viewing menu) otherwise its difficult to compare them.
    How do i do that ?
    thx

    There are two ways of doing this. You should have 1 Bode analyser for every Bode graph that you want to generate.
    To copy one graph into a second one, you should:
     Run your simulation and verify the result of each Bode analyser
    Click on the Grapher button or click View>>Grapher
    You will see multiple tabs in the Grapher View. You will get 1 graph for every simulation you perform for every body analyser (or other instrument)
    Right click on the trace that you want to copy from and select Copy Trace
    In the list that comes up, select the graph that you want to copy the trace to
    Click OK
    Multisim's grapher can also let you overlay multiple traces into a new graph. To do this, you should:
    Perform steps 1 to 3 of the previous set of instructions
    Select one of the graphs that you want to overlay
    Click the Overlay traces button (its a button in the tool bar)
    Select the other graph that you want to overlay with
    Click OK
    Multisim's graphing capabilities go quite beyond simple overlays and copying. You can use equations and other techniques to help you better visualize and analyze your data. The best way to learn it them is to play around with the graphing tool.
    Yi
    Software Developer
    National Instruments - Electronics Workbench Group

  • Re: how to make bode plots in Labview 7.1 without using Control Toolbox

    I am using Labview 10. I have connected a signal generator, a LP RC filter and an oscilloscope. I am using Labview in order to control the generator (sine with frequency sweep) and acquire the signal from the scope. I want to plot the Bode diagram without using the transfer function, from the amplitude of the sine signal and the frequency.  
    Thank you very much.
    Best Regards.

    Hi pflo,
    Are you using the CD Bode Plot VI or the SI Bode Plot VI?  For the CD plot you must use a transfer function.  Below, please find a link to an example on how to create a Bode plot without using the toolkit.  
    https://decibel.ni.com/content/docs/DOC-14762
    Regards,
    Kira T

  • How to make bode plots in Labview 7.1 without using Control Toolbox

    I'm trying to make a bode plots from transfer function using Labview 7.1. My installed labview not contains any toolbox, so I have to create the block diagram of bode plots my self. I have a problem when creating the phase bode plots for polinomial with conjugate roots pairs. Suppose the polinomial is ax^2+bx+c, with a,b,c is the polinomial coefficients. If b coefficients is negatif, i  have no problem, because the phase is start at 0, and the final value is 180. But if the b coefficient is positive, the phase plots starts at -180 and it's final value is 0. So, if there is any one who can helps me to give any solution, i'll really appreciate that. Or if there is any of you who had made the program to create the bode plots from a transfer function, i hope you can share the code with me. Thank you.

    Hey pflo,
    Are you using LabVIEW 7.1?  Can you explain the problem that you are having with the using the Bode Plot VI?  Below please find links to some documentation on the Control Design Toolkit.  With further information on your problem I will be able to better assist you with the toolkit.  
    http://zone.ni.com/devzone/cda/tut/p/id/3560
    http://zone.ni.com/reference/en-XX/help/372458B-01/lvsysid/bode_plot/
    Regards,
    Kira T

  • Make bode plot using Multisim connectivi​ty toolbox

    Hi
    I have bulid low and high pass filter in  Multisim and I would like to make bode plot in LabVIEW to demonstarte the functionality of these filters ( an interactive session for student to let them for example finding threshold voltage using bode plot garph)
    I use Multisim connectivity ver 1 to connect Multisim to LabVIEW.Would you please help me how can I work with AC Sweep function of this toolbox and is it possible to make bode plot using this function.
    Many thanks

    Hi there en99,
    Thanks for your post, I have had a look into this for you and have found the following information. In terms of using the Multisim connectivity kit, here is a good introduction of all the VIs an the roper ways to use the API functions.
    http://zone.ni.com/devzone/cda/tut/p/id/7785
    However, in terms of the Bode plot, this can only be done with the functions available in either the Sound and Vibration Module or, and more relevantly, the Control, Design and Simulation toolkit which are purchased separately. More information regarding this can be found at the following link:
    http://sine.ni.com/nips/cds/view/p/lang/en/nid/203​826
    More information can be found in the linked Discussion Forum that I found asking a very similar question.
    http://forums.ni.com/t5/Signal-Generators/how-to-m​ake-bode-plots-in-Labview-7-1-without-using-Contro​...
    Hope this helps!
    Liam A.
    National Instruments
    Applications Engineer

  • Bode plot vs. theory

    Hello,
    I'm trying to design an ultrasonic range finder using only analog components. So far I've designed the Wein Bridge and one amplifier. The problem is that I'm trying to create a band-pass filter in the amp loop. While my calculations show that the filter's band is between 35.367-41.882kHz which is fine (I think ) since the incoming wave is ~38kHz, the bode plotter shows a different band:1-1MHz. Maybe one of my connections is wrong? Or the plotter is wrong? I'll be happy to hear any input you might have on the matter. 
    Thank you,
    A
    Attachments:
    amp.pdf ‏30 KB
    oscil-1.ms11 ‏408 KB

    S_M,
    OK, now I see your problem. Neither the Bode plotter or AC Analysis will work correctly on anything other than a linear circuit. If I replace your
    op amp with a virtual (ideal) op amp then the Bode plot works ok. The "real" op amp has non-linearities such as slew rate limit. Since the circuit you chose does not have a negative supply for the op amp I think it may have been getting into the negative limit as well. I'm attaching a modified version of your circuit with the ideal op amp. Try the Bode plot now and see if it doesn't work for you. I didn't try AC Analysis but expect it would work as well.
    Attachments:
    oscil-2.ms11 ‏720 KB

  • Diadem,bode plot

    Hi, Is it possible to create script for bode plot & order analysis, in diadem? If possible then can anybody please send me some examples regarding that.
    Thanks Nidhi

    Hi Nidhi,
    I really don't know if the DlgOpen() command will work in DIAdem-Base.  If so, that would be an excellent and simple way to enable your user to input the relevant parameters.  If not, then you'll need to re-create a similar dialog with the SUDialog Editor, which is only active in DIAdem Advanced and Professional.  Once you have the finished *.SUD file, you can call and use that SUDialog in a VBScript running on DIAdem Base.
    It is definitely possible to programmatically import and merge multiple data files that fall in a user-selected time window.  Loading multiple files is pretty straighforward once you know the file paths of the files that fall in the user-selected time window.  It is also possible, though slightly more work, to trim unwanted rows (after loading) from the top of the first file and/or from the bottom of the last file, if those rows do not fall in the user-selected time window.  Merging the remaining data located in multiple groups in the Data Portal into one consolidated group is also work, but the good news is that DIAdem ships an example that shows how to do this, and there are also example programs posted on the NI support site that you can use.
    The real wildcard in this whole proposition is how the user will know what time window to select, and how the VBScript will know what time range a particular data file falls in.  Will you need to promt the user with an available range of possible time windows, or will the user be able to pick a time window out of the air and type it into a dialog field?  Will the time range for each data file be embedded as part of the file name, or will it be stored in a property inside the file?  What data file format are we talking about here?
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Bode plot of higher order system

    Hi,
    When I am going to bode plot of higher order system i.e. order of 529. It shows "Error -20068 occurred at NI_LinSys_LinSys Conversion.lvlib:CD Convert TF to ZPK (LinSys).vi" and "Possible reason(s): Analysis:  Input parameters has at least one element that is Inf, NaN, DBL_MAX, or DBL_MIN".
    It will be helpful if kindly send me the solution. One example I have attached here.
    Attachments:
    Untitled 2.vi ‏88 KB

    please help me out of this problem

  • Bode plot instrument reading differs when compared to grapher plot

    Good Day,
    Need some help to understand why the bode plot instrument plot (clicking the instrument to see plot) is different from the grapher plot when run in "simulate >>> analysis >>> AC analysis >>> vertical scale (db) >>> simulate.
    Problem happens if the AC source AC analysis magnitude is changed from 1(default) to another value. i.e 6.
    Please help advise, it seems the bode plotter is only considering the default AC analysis default magnitude value of 1?.
    Appreciate comment on this. Thank you
    The circuit being simulated is AC source connected to an RLC circuit and Vo is accross C. L and C assume some small series resistances.

    Hi educ,
    In the AC Analysis I set the stop frequency to 100 KHz which is the stop frequency of the Bode Plotter instrument. When I ran the analysis after doing this and compared it to the bode plotter, it was a nearly identical output. Try to configure the start and stop frequency to match in the AC Analysis and in the Bode Plotter and you should see much better results.
    Regards,
    Tayyab R,
    National Instruments.

  • Two different results in grapher for a Bode plot -- one's right, one's wrong. Why?

    I'm simulating a simple RLC band pass filter and looking at the output in grapher.
    In the AC analysis setup screen, if I define the output as Vout/Vin and set up the vertical scale as decibel - the resulting graph is correct.
    On the other hand, if I define the output as dB(Vout) - dB(Vin), or dB(Vout/Vin), or dB(mag(Vin))- dB(mag(Vout) using the add expression command and set up the vertical scale as linear -- the output is inverted (instead of a band pass filter -- the output looks like a notch filter and the magnitudes are wrong).
    The second technique "used to" work - but truthfully I can't remember if this was in Multisim or in PSpice.
    So, what am I doing wrong? 

    Hello,
    When you set the vertical scale to linear in the AC Analysis window, only the magnitude of the output variable is evaluated to be drawn on the top graph whilewhether it is positive or negative is evaluated in the bottom graph, the phase graph (-1 = 180 phase shift).
    When you choose a logarithmic scale, the 20*log of this magnitude is evaluated and it can be positive or negative according to whether this magnitude is greater or less than 1. By setting the vertical scale to linear and your output to an expression your basically drawing the magnitude of your expression (any of the three you mentioned below) on your top graph which will always be a poisitve value.
    Also, in your graph when you enter any of these expressions notice that the phase information has been ommitted (bottom graph) and has been replaced by a constant 180 which represents the negative sign of the magnitude.
    Hope this explains the results you were getting.
    Mahmoud W
    National Instruments

  • Bode magnitude graph cursor not following plot

    Hi,
    I was wondering if anyone would be able to shed some light on a problem that I am having regarding an XY graph cursor.
    I have developed a simple VI to determine the characteristics of a low pass filter using a sine wave ramped in frequency and subsequently monitoring the gain of the filter to create a Bode plot.
    Through analysis of the Bode plot I would like to determine the cut-off frequency of the low pass filter under test. I have introduced a cursor into the graph and using a property node I hoped to drive the cursor to the -3dB point in the Y axis and output the cursors corresponding X position thereby determining the cut-off frequency of the filter.
    However the cursor never seems to follow the plot beyond the first step of the loop. It feels as if there is a break in the plot between the 1st and 2nd iteration of the while loop used to ramp the signal generator.
    I've tried to work out why the cursor won't follow the plot to -3dB but so far I am stumped. 
    Any help or advice that you could provide would be greatly appreciated ! I have provided the attached VI for clarity.
    So liberate your minds and give your soul expression. Open up your hearts, I'll sing for you this song. Let the people sing !
    Solved!
    Go to Solution.
    Attachments:
    LPF Auto Test.vi ‏109 KB

    I have corrected your VI.
    First, you needed to put the property node AFTER the while loop, because you need the graph to be done first and then look at the frequency cut off.
    Second, in LV, the property nodes are read from top to bottom. So you need to place the cursor at Y = -3 first, and then read the X position.
    I attached the corrected vi
    Giuliano Franchetto
    Student at the l'Ecole Nationale Supérieure des Mines de Saint-Etienne, cycle ISMIN (FRANCE)
    Attachments:
    LPF Auto Test.vi ‏109 KB

  • MS/UB 12.0.1 BUG? Cannot set order of magnitude (GHz-MHz-kHz) in bode plotter if viewed in 2nd monitor

    (Win 7 laptop with external monitor connected.  Desktop streched across both monitors.)
    I have MS open and maximized in the external monitor.  If I double-click the bode plotter, the bode plotter window opens in the external monitor as expected, and all controls seem to work correctly and bode plot graphic seems to work correctly.  I just can't adjust the order of mag indication (GHz-MHz-kHz, etc.) for any of the initial or final value selectors, when the bode plotter window is in the external monitor.  If I drag the bode plotter window down to the laptop monitor, it works as expected. 
    Regards,
    Who

    Hello,
    I can see the bode plotter window equally as well in either monitor.  The problem is, the controls for changing from Hz to kHz, etc, do not work when the bode plotter appears on the external monitor, but they do when the bode plotter appears on the built-in monitor.  The issue is getting the software to work correctly when a user runs the software on a computer that has more than one monitor. 
    Regards,
    Who

Maybe you are looking for