[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Trouble installing control toolbox
From: |
Alexander Hansen |
Subject: |
Re: Trouble installing control toolbox |
Date: |
Thu, 13 Dec 2012 18:40:01 -0700 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/17.0 Thunderbird/17.0 |
On 12/13/12 6:22 PM, Michael Noone wrote:
> Hi Alexander - we're getting somewhere now! I installed gnuplot.
> However, the graph I'm getting is rather ugly... I tried switching to
> fltk and it did not change the output. Either way, I get an all text
> output. I used octave with the controls toolbox a few years ago and I
> remember getting nice looking graphs that popped up in an external
> window - do you have any idea how to set this up?
>
> See below:
>
> octave:1> pkg load control
> octave:2> a = tf(1, [1 2 3])
>
> Transfer function 'a' from input 'u1' to output ...
>
> 1
> y1: -------------
> s^2 + 2 s + 3
>
> Continuous-time model.
> octave:3> bode(a)
> +-------------------------------Bode Diagram of
> a------------------------------+
> | Magnitude
> [dB] |
> | -10
> ++----+---+-+-+-+++++-----+---+--+-++-++++-----+--+--+-++-++++ |
> | -20
> ++..................+.....+++++++........+..................++ |
> | -30
> ++..............................++++++......................++ |
> | -40
> ++...................................+++++++................++ |
> | -50
> ++.........................................+++++++..........++ |
> | -60
> ++...............................................++++++.....++ |
> | -70
> ++..................+....................+............++++++++ |
> | -80
> +-1---+---+-+-+-+++++0----+---+--+-++-++++1----+--+--+-++-++++2 |
> | 10 10 10
> 10 |
> | Phase
> [deg] |
> | 0
> ++----+---+-+-+-+++++-----+---+--+-++-++++-----+--+--+-++-++++ |
> | -20
> ++.....++++++++++++++....................+..................++ |
> | -60
> ++.................+++++....................................++ |
> | -80
> ++.....................+++..................................++ |
> | -100
> ++.......................++++...............................++ |
> | -140
> ++..........................+++++...........................++ |
> | -160
> ++..................+...........+++++++++++++++.............++ |
> | -180
> +-1---+---+-+-+-+++++0----+---+--+-++-++++1----+--+--+-++-++++2 |
> | 10 10 10
> 10 |
> +------------------------------------------------------------------------------+
> octave:4> graphics_toolkit
> ans = gnuplot
> octave:5> graphics_toolkit('fltk')
> octave:6> bode(a)
> +-------------------------------Bode Diagram of
> a------------------------------+
> | Magnitude
> [dB] |
> | -10
> ++----+---+-+-+-+++++-----+---+--+-++-++++-----+--+--+-++-++++ |
> | -20
> ++..................+.....+++++++........+..................++ |
> | -30
> ++..............................++++++......................++ |
> | -40
> ++...................................+++++++................++ |
> | -50
> ++.........................................+++++++..........++ |
> | -60
> ++...............................................++++++.....++ |
> | -70
> ++..................+....................+............++++++++ |
> | -80
> +-1---+---+-+-+-+++++0----+---+--+-++-++++1----+--+--+-++-++++2 |
> | 10 10 10
> 10 |
> | Phase
> [deg] |
> | 0
> ++----+---+-+-+-+++++-----+---+--+-++-++++-----+--+--+-++-++++ |
> | -20
> ++.....++++++++++++++....................+..................++ |
> | -60
> ++.................+++++....................................++ |
> | -80
> ++.....................+++..................................++ |
> | -100
> ++.......................++++...............................++ |
> | -140
> ++..........................+++++...........................++ |
> | -160
> ++..................+...........+++++++++++++++.............++ |
> | -180
> +-1---+---+-+-+-+++++0----+---+--+-++-++++1----+--+--+-++-++++2 |
> | 10 10 10
> 10 |
> +------------------------------------------------------------------------------+
>
>
>
> On Thu, Dec 13, 2012 at 4:44 PM, Alexander Hansen
> <address@hidden <mailto:address@hidden>> wrote:
>
> graphics_toolkit
>
>
Hmm...that looks like your gnuplot is configured with a text-based
default terminal. You could try to run gnuplot from a cygwin window and
use the "help terminal" command to see what options are available. Then
something like
env GNUTERM="<termname>" octave
will have Octave use the "termname" terminal.
I'm not on Windows, so knowing the defaults is a bit outside of my
scope. :-) One of the Cygwin-based folks should be able to give you
more info.
Also, try quitting, starting a new Octave session, and doing the
"graphics_toolkit('fltk')" operation before you plot. Gnuplot didn't
disconnect, so you never actually plotted to the FLTK interface. I had
the same results on my system.
--
Alex
- Trouble installing control toolbox, Michael Noone, 2012/12/13
- Re: Trouble installing control toolbox, marco atzeri, 2012/12/13
- Re: Trouble installing control toolbox, Michael Noone, 2012/12/13
- Re: Trouble installing control toolbox, Alexander Hansen, 2012/12/13
- Re: Trouble installing control toolbox, Michael Noone, 2012/12/13
- Re: Trouble installing control toolbox, Alexander Hansen, 2012/12/13
- Re: Trouble installing control toolbox, Michael Noone, 2012/12/13
- Re: Trouble installing control toolbox,
Alexander Hansen <=
- Re: Trouble installing control toolbox, Benjamin Abbott, 2012/12/13
- Re: Trouble installing control toolbox, Michael Noone, 2012/12/13
- Re: Trouble installing control toolbox, Ben Abbott, 2012/12/13
- Re: Trouble installing control toolbox, Michael Noone, 2012/12/14
- Re: Trouble installing control toolbox, marco atzeri, 2012/12/14
- Re: Trouble installing control toolbox, Michael Noone, 2012/12/14
- Re: Trouble installing control toolbox, marco atzeri, 2012/12/14