Skip to content Skip to sidebar Skip to footer

Gui Tool to Move Boxes in a Drawing

BodePlotGui: A Tool for Generating Straight line Omen Diagrams

BodePlotGui is a GUI written in the MATLAB® programming spoken language.  It takes a transfer serve and splits information technology into its constituent elements, then draws the piecewise linear straight line approximation for each chemical element.  It is hoped that the BodePlotGui program will be a versatile program for teaching and scholarship the construction of Bode diagrams from piecewise linear approximations.

Files for the broadcast are plant here.

Note: the MATLAB GUI doesn't display well on all devices (some elements of the GUI Crataegus oxycantha non show up). If you get this problem, simply run the MATLAB command "guide" and open the fileBodePlotGui.figure. You give the sack edit the sizing and layout of the GUI for your car. Save IT, and then rerun theBodePlotGui.m file.

I have stopped up working on BodePlotGui and have developed a like tool in JavaScript to hold IT more than accessible (insure the "Drawing Tool" tab, above). While MATLAB is exceedingly powerful, it is also very expensive.


Use of program.

A Simple Example.

Consider the transfer function:

Low pass transfer function

This mathematical function has three terms to be well thought out when constructing a Bode diagram, a invariant (100), a celestial pole at ω=10 rad/sec, and a zero at the origin. The following MATLAB® commands begin instruction execution of the GUI:

>>MySys=tf(1000*[1 0],[1 10]);   %define Xfer function  >>BodePlotGui(MySys)        %Invoke GUI

The GUI generates a window atomic number 3 shown below.

 Opening in the upper left and expiration counterclockwise, the Windows demonstrate:

  1. The order of magnitude plot, both the piecewise linear approximation for all tierce footing as well atomic number 3 the asymptotic plot for the complete carry-over social occasion and the rigorous Forecast diagram for order of magnitude. Besides shown is a zero reference bloodline.
  2. The phase game.
  3. A list of the systems in the user workspace.
  4. Several checkboxes that let the user format the envision.  In particular there is a check-box that determines whether surgery not to presentation the asymptotic plot for the complete transfer function; sometimes it gets in the way of seeing the other plots, so you may want to hide it.
  5. The legend characteristic several terms on the plot.
  6. A box that shows elements excluded from the plat. This box is empty in that display because the diagram displays all three elements of the channelis run.
  7. A 'Legend' box that shows elements displayed in the game.
  8. Several check-boxes that appropriate the user to display how the plots are displayed
  9. Besides in the superior left is a "Supporte" tab.

Also shown in the upper right corner is the transfer function, H(s).


Modifying what is displayed

The part displayed buttocks be manipulated terminus by terminus to illustrate the consequence of each term. For example, the zero at the origin tin can be excluded simply by clicking thereon in the lower left hand over box. The figure downstairs shows the result.

Note that the goose egg at the origin is no longer included in the plot.  Each full term can be alike included or excluded by simply clicking thereon.

The next game shows the plot modified to induce thicker lines, a power grid, phase in radians and with the asymptotic plot of the complete transfer work.  In the previous graph, the phase angle of the asymptotic plot obscured that of the real pole; this is an example when it might be convenient not to depict the asymptotic approximation.


Underdamped price

Underdamped poles (and zeros) present a difficulty because they cause a elevation (dip) in the order of magnitude plot.  The program present this with a simple circle screening the vizor peak.  For example the transfer function

Underdamped Low Pass

yields the output shown below.  The peak owed to the underdamped pole is intelligibly shown.


A more complicated example

The example infra is more complicated.  It shows underdamped terms, repeated poles, and a pole at the origin.

Complicated Transfer Function


Limitations of the software system:

The software has known limitations. It does not calculate the phase associate with a time delay. It only decomposes transfer functions with up to 20 unintegrated footing (a limit only of the numerate of colors old). Repeated poles and zeros are treated A a single term (i.e., it is not possible to move only one pole of a continual pair from the �Elements included in plot� window to the �Elements excluded from plot� window of the GUI).

  →Get the files →


References

Supplant

Gui Tool to Move Boxes in a Drawing

Source: https://lpsa.swarthmore.edu/Bode/BodePlotGui.html

Post a Comment for "Gui Tool to Move Boxes in a Drawing"