Discussion:
create bode plot from scicos diagram
(too old to reply)
Thomas Plehn
2012-07-25 10:14:46 UTC
Permalink
Hello,

has anyone a simple recipe for creating bode plots from scicos diagram?
I stumbled over steadycos() and lincos() and tried bode(), but with no success.
Is there any easier method available?
Or can someone point out a recipe for generating this kind of plot with some function calls in scilab?
By the way, I use scicoslab (a modified scilab) on ubuntu 12, if that makes a difference.
kanibani
2014-05-14 09:13:27 UTC
Permalink
You can try to use importXcosDiagram function in scilab.

loadXcosLibs(); loadScicos();
importXcosDiagram("C:\Users\Desktop\Bike.zcos");

and just displaying the scs_m structure you will find the superblock of your interest

scs_m =

wpar = [600,450,0,0,600,450]
title = "Bike"
tol = [0.000001;0.000001;1.000D-10;100001;0;1;0]
tf = 5
context = ["l=1";"g=9.8";"phi=10";"v=2";"w=0.1"]
void1 = []
options = tlist(["scsopt","3D","Background","Link","ID","Cmap"],list(%t,33),[8,1],[1,5],list([5,1],[4,1]),[0.8,0.8,0.8])
void2 = []
void3 = []
doc = list()
1 CLOCK_c
2 SUPER_f
3 CONST_m
4 CSCOPE

-->

then you can do something like this to fetch the superblock of your interest to the workspace

test = scs_m.objs("YOUR SUPERBLOCK ID).model.rpar;

then you can linerize it or get the transfer functions as you want by lincos or ss2tf functions.

ex: sys=lincos(test)

then bode or root locus can be ploted.

bode(sys)
evans(sys)

http://help.scilab.org/docs/5.3.1/en_US/lincos.htm
http://compgroups.net/comp.soft-sys.math.scilab/
akhorshidi
2014-06-02 13:47:31 UTC
Permalink
Hi;
Post by Thomas Plehn
Is there any easier method available?
Yes...you may use REP_FREQ block from CPGE-Xcos toolbox. Visit: atoms.scilab.org/toolboxes/CPGE
Post by Thomas Plehn
By the way, I use scicoslab (a modified scilab) on ubuntu 12, if that makes a difference.
Do not hesitate to use the newer version of Official Scilab! :)
Visit: http://scilab.org/download/

HTH
Mehran
_

Loading...