From rcorderog at gmail.com Fri Jan 4 22:28:58 2008 From: rcorderog at gmail.com (Cordero R. ) Date: Fri, 4 Jan 2008 16:28:58 -0500 Subject: SCICOS Message-ID: <6ab64a060801041328q1fe395bdj314604a2708e7742@mail.gmail.com> To: Inderpreet Arora To access a variable stored (I will call it "X") in SCICOS "To workspace" block: When you enter X in the command window, you can see that it has two components: "time" and "values". "time" depends of the sample time and the buffer size. You can get these components with these instructions: var1=X.time; var2=X.values; The arrays of time and values of X will be stored in var1 and var2 respectively. Sincerely Raymundo -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruno at chaumontet.net Mon Jan 7 10:39:38 2008 From: bruno at chaumontet.net (Bruno Chaumontet) Date: Mon, 7 Jan 2008 10:39:38 +0100 Subject: algebraic loop Message-ID: hi, i'm using scilab scicos 4.2 : wonderfull unfortunatly i want to use a recursive form s(t)=e(t)+s(t-1) for this, i use a sample and hold and a loop and i get an error "algebraic loop" i understand, but how can i simulate this recursive form ? thanks a lot -- Bruno Chaumontet http://bruno.chaumontet.net bruno at chaumontet.net From Goce.Jauleski at esbi.ie Mon Jan 7 10:44:34 2008 From: Goce.Jauleski at esbi.ie (Goce Jauleski) Date: Mon, 7 Jan 2008 09:44:34 -0000 Subject: unix.err Message-ID: Hi, i've just installed a copy of SCILAB 4.1.2. I am using windows XP and i've installed the default programs. I get the following error when i start the program: " Startup execution: loading initial environment !--error 241 File C:\DOCUME~1\Jauleski_G\Local Settings\Temp\SCI_TMP_3244_\unix.err does not exist or read access denied at line 58 of function unix_g called by : line 29 of function listfiles called by : line 27 of function toolboxes called by : toolboxes(SCI+'/contrib'); line 2 of exec file called by : exec(SCI+'/contrib/loader.sce'); line 201 of exec file called by : exec('SCI/scilab.star',-1);; --> " The problem is that i can't open scipad also because of the unix.err and when scilab closes it removes the temporary folder together with its contents automatically....so creating one manually isn't the best solution. Any help would be appreciated Goce Jauleski goce.jauleski at esbi.ie * ** *** ** * ** *** ** * ** *** ** * This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any views or opinions presented are solely those of the author, and do not necessarily represent those of ESB. If you have received this email in error please notify the sender. Although ESB scans e-mail and attachments for viruses, it does not guarantee that either are virus-free and accepts no liability for any damage sustained as a result of viruses. Company Registration Information: http://www.esb.ie/companies * ** *** ** * ** *** ** * ** *** ** * -------------- next part -------------- An HTML attachment was scrubbed... URL: From rcorderog at gmail.com Mon Jan 7 14:33:50 2008 From: rcorderog at gmail.com (Cordero R. ) Date: Mon, 7 Jan 2008 08:33:50 -0500 Subject: algebraic loop Message-ID: <6ab64a060801070533x183f7113m66283e94fda09e54@mail.gmail.com> Dear Mr. Chaumontet I recommend you to use a Z transform. s(t) = s(t-1) + e(t) -> S(z) = S(z)*(1/z) + E(z) -> S(z) = (z/(z-1))*E(z) Use the discrete transfer function of SCICOS, where e(t) is the input and s(t) is the output. Don't forget to select an appropiate sample time. Good luck. Raymundo Cordero Per? -------------- next part -------------- An HTML attachment was scrubbed... URL: From bruno at chaumontet.net Mon Jan 7 16:47:48 2008 From: bruno at chaumontet.net (Bruno Chaumontet) Date: Mon, 7 Jan 2008 16:47:48 +0100 Subject: [scilab-Users] Re: algebraic loop In-Reply-To: <6ab64a060801070533x183f7113m66283e94fda09e54@mail.gmail.com> References: <6ab64a060801070533x183f7113m66283e94fda09e54@mail.gmail.com> Message-ID: thanks a lot 2008/1/7, Cordero R. : > Dear Mr. Chaumontet > I recommend you to use a Z transform. > s(t) = s(t-1) + e(t) -> S(z) = S(z)*(1/z) + E(z) -> S(z) = (z/(z-1))*E(z) > Use the discrete transfer function of SCICOS, where e(t) is the input and > s(t) is the output. > Don't forget to select an appropiate sample time. > Good luck. > Raymundo Cordero > Per? -- Bruno Chaumontet http://bruno.chaumontet.net bruno at chaumontet.net From tedcn02 at yahoo.com Tue Jan 8 11:19:08 2008 From: tedcn02 at yahoo.com (Teodor Calin) Date: Tue, 8 Jan 2008 02:19:08 -0800 (PST) Subject: Trouble with the function parser Message-ID: <689146.10657.qm@web32110.mail.mud.yahoo.com> Okay, here's my complaint: I write this code: " clear; function [x,y]=myfct(a,b) x=a+b y=a-b endfunction [x,y]=myfct(3,2) ////////////////////////////////// for k = 1:21 do function [x,y]=myfct2(a,b) x=a+b y=a-b endfunction [u,v] = myfct2(k, k+1) end " And I get this result: " y = 1. x = 5. =a-b !--error 2 invalid factor at line 3 of function myfct2 called by : endfunction line 20 of exec file called by : exec("S:/Depannage.sci"); in execstr instruction called by : " In other words, defining functions with more than one return variables inside loops does not work. By the way, what (in the *#!?^$) does 'invalid factor' mean ? Also, I'm really mad about this, because if I write " for k = 1:21 do function y=myfct3(a,b) y=a-b endfunction u = myfct3(k, k+1) end " this works perfectly well. So I expected it to work for the above too ! So, is there a way to circumvent this ? Thanks in advance Teodor _____________________________________________________________________________ Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail http://mail.yahoo.fr -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.couvert at inria.fr Tue Jan 8 13:40:07 2008 From: vincent.couvert at inria.fr (Vincent COUVERT) Date: Tue, 08 Jan 2008 13:40:07 +0100 Subject: [scilab-Users] Trouble with the function parser In-Reply-To: <689146.10657.qm@web32110.mail.mud.yahoo.com> References: <689146.10657.qm@web32110.mail.mud.yahoo.com> Message-ID: <47836F27.2000605@inria.fr> Hi, It's a Scilab parser bug. You can work around it by defining your function on one line only: for k = 1:21 function [x,y]=myfct2(a,b);x=a+b;y=a-b;endfunction [u,v] = myfct2(k, k+1) end Could you please report this bug in Bugzilla database ? Vincent PS : - you do not need to use "do" in a for loop definition - your loop redefines the function myfct2 for every k value Teodor Calin a ?crit : > Okay, here's my complaint: > > > I write this code: > " > clear; > > function [x,y]=myfct(a,b) > x=a+b > y=a-b > endfunction > > [x,y]=myfct(3,2) > > ////////////////////////////////// > > for k = 1:21 do > > function [x,y]=myfct2(a,b) > x=a+b > y=a-b > endfunction > > [u,v] = myfct2(k, k+1) > > end > " > > And I get this result: > " > y = > > 1. > x = > > 5. > =a-b > !--error 2 > invalid factor > at line 3 of function myfct2 called by : > endfunction > line 20 of exec file called by : > exec("S:/Depannage.sci"); > in execstr instruction called by : > " > > In other words, defining functions with more than one return variables > inside loops > does not work. > By the way, what (in the *#!?^$) does 'invalid factor' mean ? > > > Also, I'm really mad about this, because if I write > > " > for k = 1:21 do > > function y=myfct3(a,b) > y=a-b > endfunction > > u = myfct3(k, k+1) > > end > " > > this works perfectly well. So I expected it to work for the above too ! > > So, is there a way to circumvent this ? > > Thanks in advance > > Teodor > > ------------------------------------------------------------------------ > Ne gardez plus qu'une seule adresse mail ! Copiez vos mails > > vers Yahoo! Mail -- ============================================== Vincent COUVERT Centre de Recherche INRIA Paris-Rocquencourt Domaine de Voluceau - B.P. 105 78153 Le Chesnay Cedex ============================================== Equipe Projet SCILAB B?timent 1B - Bureau 013 Email : vincent.couvert at inria.fr T?l : +33 (0)1 39 63 54 46 Fax : +33 (0)1 39 63 55 94 ============================================== From illustratingshadows at yahoo.com Fri Jan 11 02:01:22 2008 From: illustratingshadows at yahoo.com (Simon [illustratingshadows) Date: Thu, 10 Jan 2008 17:01:22 -0800 (PST) Subject: How to inhibit the "more y or n" message in Scilab Message-ID: <558341.21244.qm@web38503.mail.mud.yahoo.com> I have several programs written that run in Scilab. They do a fair amount of assignment and trig. Scilab insists on echoing th results of all commands to the Scilab screen, and, when a screen is full, I get "more y or n". This is an irritation. I have searched all documents and help files, but nothing stands out. QUESTION 1: how can I stop it from filling up the screen, apart from "clc". QUESTION 2: how can I set some sort of a parameter to cause "more y or n" not to appear. I am using Windows XP and Scilab 4.1.2. Thanks in advance. Simon From allan.cornet at inria.fr Fri Jan 11 06:15:07 2008 From: allan.cornet at inria.fr (Allan CORNET) Date: Fri, 11 Jan 2008 06:15:07 +0100 Subject: [scilab-Users] Re: How to inhibit the "more y or n" message in Scilab In-Reply-To: <558341.21244.qm@web38503.mail.mud.yahoo.com> References: <558341.21244.qm@web38503.mail.mud.yahoo.com> Message-ID: <7.0.1.0.2.20080111060955.053fab58@inria.fr> Hi , Le 02:01 AM 1/11/2008,Simon \[illustratingshadows ?crit: >QUESTION 1: how can I stop it from filling up the >screen, apart from "clc". > See : help exec exec('myscript.sce',-1) You can also put a ';' at the end of line example : -->a=1+1 a = 2. -->b=1+1; // no display -->disp(b) 2. >QUESTION 2: how can I set some sort of a parameter >to cause "more y or n" not to appear. See : help lines lines(0); Best Regards Allan CORNET Scilab Team ============================================== Allan CORNET Scilab Consortium http://www.scilab.org INRIA - Unit? de Recherche de Rocquencourt Domaine de Voluceau - B.P. 105 78153 Le Chesnay Cedex ============================================== Projet Scilab B?timent 1B - Bureau 009 Email : allan.cornet at inria.fr ============================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From neil.babou at gmail.com Fri Jan 11 11:17:00 2008 From: neil.babou at gmail.com (neil babou) Date: Fri, 11 Jan 2008 11:17:00 +0100 Subject: aide scilab Message-ID: <406b97060801110217t14fe5e6ah504b9f85e4b798ae@mail.gmail.com> bonjour, Je suis sur un projet en SCILAB ? l'IRISA et j'ai quelques petites questions ? poser au niveau technique. J'aurai voulu savoir comment faire pour blocker le bouton de fermeture d'une fenetre scilab? c'est ? dire emp?cher l'utilisateur de fermer la fenetre du programme en cliquant sur la croix. (soit en inhibant la croix, soit en n'affichant pas la barre du haut de la fenetre) Et d'autre part comment faire ? partir d'un programme Fait en TK/TCL pour fermer une fenetre Scilab. Merci d'avance de votre aide Cordialement Neil BABOU -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.couvert at inria.fr Fri Jan 11 13:30:45 2008 From: vincent.couvert at inria.fr (Vincent COUVERT) Date: Fri, 11 Jan 2008 13:30:45 +0100 Subject: [scilab-Users] aide scilab In-Reply-To: <406b97060801110217t14fe5e6ah504b9f85e4b798ae@mail.gmail.com> References: <406b97060801110217t14fe5e6ah504b9f85e4b798ae@mail.gmail.com> Message-ID: <47876175.3010105@inria.fr> Bonjour, Afin d'emp?cher la fermeture d'une fen?tre graphique Scilab, il suffit d'ajouter un gestionnaire d'?v?nement sur cette fen?tre et de trapper le signal de fermeture de la fen?tre afin de ne rien faire quand l'utilisateur clique sur la croix : voir la fonction seteventhandler et le code -1000. Pour fermer une fen?tre, utilisez close pour une fen?tre TK et delete pour une fen?tre graphique. Cordialement, Vincent neil babou a ?crit : > bonjour, > > Je suis sur un projet en SCILAB ? l'IRISA et j'ai quelques petites > questions ? poser au niveau technique. > J'aurai voulu savoir comment faire pour blocker le bouton de > fermeture d'une fenetre scilab? c'est ? dire emp?cher l'utilisateur > de fermer la fenetre du programme en cliquant sur la croix. (soit en > inhibant la croix, soit en n'affichant pas la barre du haut de la > fenetre) > Et d'autre part comment faire ? partir d'un programme Fait en TK/TCL > pour fermer une fenetre Scilab. > > Merci d'avance de votre aide > > Cordialement > > Neil BABOU -- ============================================== Vincent COUVERT Centre de Recherche INRIA Paris-Rocquencourt Domaine de Voluceau - B.P. 105 78153 Le Chesnay Cedex ============================================== Equipe Projet SCILAB B?timent 1B - Bureau 013 Email : vincent.couvert at inria.fr T?l : +33 (0)1 39 63 54 46 Fax : +33 (0)1 39 63 55 94 ============================================== From illustratingshadows at yahoo.com Fri Jan 11 16:07:28 2008 From: illustratingshadows at yahoo.com (Simon [illustratingshadows) Date: Fri, 11 Jan 2008 07:07:28 -0800 (PST) Subject: [scilab-Users] Re: How to inhibit the "more y or n" message in Scilab In-Reply-To: <7.0.1.0.2.20080111060955.053fab58@inria.fr> Message-ID: <301134.49342.qm@web38512.mail.mud.yahoo.com> Thanks, the ";" did the trick. Simon --- Allan CORNET wrote: > Hi , > > Le 02:01 AM 1/11/2008,Simon \[illustratingshadows > ?crit: > > >QUESTION 1: how can I stop it from filling up the > >screen, apart from "clc". > > > > See : help exec > > exec('myscript.sce',-1) > > You can also put a ';' at the end of line > > example : > > -->a=1+1 > a = > > 2. > > -->b=1+1; // no display > > -->disp(b) > > 2. > > > >QUESTION 2: how can I set some sort of a parameter > >to cause "more y or n" not to appear. > > See : help lines > > lines(0); > > > Best Regards > > Allan CORNET > Scilab Team > > > > > ============================================== > Allan CORNET > Scilab Consortium > http://www.scilab.org > INRIA - Unit? de Recherche de Rocquencourt > Domaine de Voluceau - B.P. 105 > 78153 Le Chesnay Cedex > > ============================================== > Projet Scilab > B?timent 1B - Bureau 009 > Email : allan.cornet at inria.fr > ============================================== > > > > > > > > From tomaz.kostanjevec at uni-mb.si Sat Jan 12 20:42:22 2008 From: tomaz.kostanjevec at uni-mb.si (Tomaz Kostanjevec Uni Mb) Date: Sat, 12 Jan 2008 20:42:22 +0100 Subject: Tricky questions Message-ID: <000001c85553$4011e420$c035ac60$@kostanjevec@uni-mb.si> Hello, >From Slovenia - big problem J. Waiting for answer. In file is added problem. Questions are: //Question 1: how to draw lines for Z axes (represent time) out to matrix data? //Question 2: how to draw spline3d on the surface of dawned graph? //Question 3: - hardest - how to draw multidimensional trend of that graph with spline3d in Z direction? // For all the answers - congratulations (I spend 20 hours on that) Best regards, Tomaz Algorithm is that: function [xx,yy,zz]=graf3d(A) [n,m]=size(A) // matrix A X=zeros(4,(n-1)*m) for i=1:(n-1) for j=1:(m-1) //posebej za j=m X(1,(i-1)*m+j)= A(i,j)*cos((j-1)*2*%pi/m) X(2,(i-1)*m+j)= A(i,j+1)*cos(j*2*%pi/m) X(3,(i-1)*m+j)= A(i+1,j)*cos((j-1)*2*%pi/m) X(4,(i-1)*m+j)= A(i+1,j+1)*cos(j*2*%pi/m) end end for i=1:(n-1) X(1,i*m)= A(i,m)*cos((m-1)*2*%pi/m) X(2,i*m)= A(i,1)*cos(0) X(3,i*m)= A(i+1,m)*cos((m-1)*2*%pi/m) X(4,i*m)= A(i+1,1)*cos(0) end Y=zeros(4,(n-1)*m) for i=1:(n-1) for j=1:(m-1) // posebej za j=m Y(1,(i-1)*m+j)= A(i,j)*sin((j-1)*2*%pi/m) Y(2,(i-1)*m+j)= A(i,j+1)*sin(j*2*%pi/m) Y(3,(i-1)*m+j)= A(i+1,j)*sin((j-1)*2*%pi/m) Y(4,(i-1)*m+j)= A(i+1,j+1)*sin(j*2*%pi/m) end end for i=1:(n-1) Y(1,i*m)= A(i,m)*sin((m-1)*2*%pi/m) Y(2,i*m)= A(i,1)*sin(0) Y(3,i*m)= A(i+1,m)*sin((m-1)*2*%pi/m) Y(4,i*m)= A(i+1,1)*sin(0) end Z=zeros(4,(n-1)*m) for i=1:(n-1) for j=1:m Z(1,(i-1)*m+j)= i Z(2,(i-1)*m+j)= i Z(3,(i-1)*m+j)= i+1 Z(4,(i-1)*m+j)= i+1 end end xx=X yy=Y zz=Z f=plot3d(xx,yy,zz) endfunction A=[30 10 5 5 20 10 10 10 30 11 6 7 17 8 6 15 31 12 6 6 15 8 7 15 33 12 6 7 15 8 8 11 34 14 7 8 13 9 9 6 32 15 6 7 14 7 8 11 34 16 4 6 12 8 9 11 36 18 4 4 11 7 10 10 37 19 3 3 11 7 7 13 38 19 2 3 10 8 6 14 43 17 2 2 12 8 8 8] xtitle("3D") graf3d(A) -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: graf3d eng Type: application/octet-stream Size: 1899 bytes Desc: not available URL: From anwuli.echenim at univ-fcomte.fr Tue Jan 15 11:59:29 2008 From: anwuli.echenim at univ-fcomte.fr (Anwuli Echenim) Date: Tue, 15 Jan 2008 11:59:29 +0100 Subject: commande unix sous Windows In-Reply-To: <20080115115638.ugyhsl1998g0ocg4@webmail.univ-fcomte.fr> References: <20080115115638.ugyhsl1998g0ocg4@webmail.univ-fcomte.fr> Message-ID: <20080115115929.5xin8bz6uos4sksw@webmail.univ-fcomte.fr> Bonjour, Je travaille actuellement sur le d?veloppement du logiciel Mixmod qui est interfac? par Scilab et et qui s'installe ? la fois sous Unix et Windows. J'ai un probl?me concernant l'utilisation de la commande 'unix'. La ligne de code unix("ls " + repertoire) fonctionne tr?s bien sous Unix mais pas sous Windows. Y'a-til une fa?on de rem?dier ? ?a? Je vous remercie d'avance pour votre r?ponse. Anwuli Echenim ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. From fvogelnew1 at free.fr Tue Jan 15 12:53:04 2008 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Tue, 15 Jan 2008 12:53:04 +0100 Subject: [scilab-Users] commande unix sous Windows In-Reply-To: <20080115115929.5xin8bz6uos4sksw@webmail.univ-fcomte.fr> References: <20080115115638.ugyhsl1998g0ocg4@webmail.univ-fcomte.fr> <20080115115929.5xin8bz6uos4sksw@webmail.univ-fcomte.fr> Message-ID: <478C9EA0.4030701@free.fr> Hi, The usual contraption used thoughout the Scilab source code is to do: if MSDOS then unix("dir " + repertoire); else unix("ls " + repertoire); end HTH Francois Anwuli Echenim said on 15/01/2008 11:59: > Bonjour, > > Je travaille actuellement sur le d?veloppement du logiciel Mixmod qui > est interfac? par Scilab et et qui s'installe ? la fois sous Unix et > Windows. > > J'ai un probl?me concernant l'utilisation de la commande 'unix'. La > ligne de code unix("ls " + repertoire) fonctionne tr?s bien sous Unix > mais pas sous Windows. Y'a-til une fa?on de rem?dier ? ?a? > > Je vous remercie d'avance pour votre r?ponse. > > > Anwuli Echenim From marten.strom at ssf.fi Tue Jan 15 14:31:17 2008 From: marten.strom at ssf.fi (=?iso-8859-1?Q?M=E5rten_Str=F6m?=) Date: Tue, 15 Jan 2008 15:31:17 +0200 Subject: read() NaN on Linux Message-ID: <6EEF55C8C52EAF478462702546102BDD849280@spock.ssf.fi> Scilab fails to read( ) files containing NaN on Linux, it reports error 49, 'incorrect file or format'. I use v4.1.2 and have confirmed the same behaviour on a recent nightly build (03012008). The problem is not repeatable on Windows, where the same routines work fine (accepting 'Nan', 'nan', 'NaN') So, my questions are; - How should NaN be read from file on Linux? - Is this a known problem, and are there any workarounds? Thanks in advance, M. -------------- next part -------------- An HTML attachment was scrubbed... URL: From avic at bios.srv.br Wed Jan 23 13:41:34 2008 From: avic at bios.srv.br (=?ISO-8859-1?Q?Andr=E9_Vict=F3ria?=) Date: Wed, 23 Jan 2008 10:41:34 -0200 Subject: Beginner: help with matrix extraction Message-ID: <479735FE.7050808@bios.srv.br> Hello, I am trying to make a script to process some data. Right now I have a little trouble with reading this data onto my variables, that I can?t figure out from the Scilab help. I use Scilab-4.1.2 on Windows 98. I am a beginner with this kind of program (Scilab, Octave or Matlab), I appologise for what seems to me a very basic question. But I have tried my best to understand it by now. My data file is: ------------------------------------------------------------------------ 4.02 45 4.26 29.9 4.41 30 4.43 30.1 4.75 19.9 4.97 20 5 20.1 5.26 14.9 5.57 15 5.6 15.1 5.7 15.1 5.87 10.9 6.24 11 6.46 11.1 6.61 7.9 7.2 8.1 7.27 8.2 7.32 8 8.23 4.9 9.15 5 9.55 5.1 9.7 5.1 17.36 1.9 17.8 2.5 18.4 2.4 19.36 2 ------------------------------------------------------------------------ The first lines of my main function are: ------------------------------------------------------------------------ Z = read('(...path...)\input.txt',-1,2); X = Z(1)'; Y = (Z(2))'; // X = Z(1); // Y = Z(2); ------------------------------------------------------------------------ Using the debugger I have found that the Z matrix has all the data on the input file. Now I wanted to have on column of data on X and Y vectors. I have tried the commented two lines. All these tries had the same result: after the execution of the third line X has the value 4.02 and only; Y has 4.26 value, and only. Z has all the data values in the form [ aa.a bb.b; cc.c dd.d; ... ]. What should I do? Thank you in advance, Andre -------------- next part -------------- An HTML attachment was scrubbed... URL: From fvogelnew1 at free.fr Wed Jan 23 13:49:21 2008 From: fvogelnew1 at free.fr (fvogelnew1 at free.fr) Date: Wed, 23 Jan 2008 13:49:21 +0100 Subject: [scilab-Users] Beginner: help with matrix extraction In-Reply-To: <479735FE.7050808@bios.srv.br> References: <479735FE.7050808@bios.srv.br> Message-ID: <1201092561.479737d17b246@imp.free.fr> Selon Andr? Vict?ria : > What should I do? Use fscanfMat instead. Francois From avic at bios.srv.br Wed Jan 23 14:11:03 2008 From: avic at bios.srv.br (=?ISO-8859-1?Q?Andr=E9_Vict=F3ria?=) Date: Wed, 23 Jan 2008 11:11:03 -0200 Subject: [scilab-Users] Beginner: help with matrix extraction In-Reply-To: <1201092561.479737d17b246@imp.free.fr> References: <479735FE.7050808@bios.srv.br> <1201092561.479737d17b246@imp.free.fr> Message-ID: <47973CE7.7080304@bios.srv.br> It worked with: X = Z(:,1); Y = Z(:,2); What is the difference between fscanfMat and read? Shold I always use fscanfMat? (except maybe if I want to use Fortran format?) Thank you. :) fvogelnew1 at free.fr escreveu: >Selon Andr? Vict?ria : > > > >>What should I do? >> >> > >Use fscanfMat instead. > >Francois > > > From s.sampat at ektronic.de Wed Jan 23 14:33:03 2008 From: s.sampat at ektronic.de (Shriram Sampat) Date: Wed, 23 Jan 2008 14:33:03 +0100 Subject: Scicos Electrical Toolbox and Linear toolbox In-Reply-To: <47973CE7.7080304@bios.srv.br> References: <479735FE.7050808@bios.srv.br> <1201092561.479737d17b246@imp.free.fr> <47973CE7.7080304@bios.srv.br> Message-ID: <4797420F.5080505@ektronic.de> Hello everybody, I am using scicos anew for the past couple of days, for a current regulation project. The project goal is to make a PID controller (along with some other things) in a microcontroller to control the current flowing a circuit with the help of mosfets. The microcontroller reads in current of circuit via a sensor and controls the current to a set point using a DAC to regulate the gate source voltage of the MOSFET. I want to simulate this whole thing, so that everytime my circuit parameters (inductance, resistance, MOSFET and input current) changes, I can recalculate the PID constants using the simulation. And also I can check out whether my circuit could handle the current regulation in the required frequency. The current controlled is in the order of 100s of amperes, so physically trying out the PID constants from scratch is a little dangerous sometimes and also time consuming. I have the circuit simulated. But i just found out that i could not connect the output of the PID controller model (from linear toolbox) directly to the gate of the mosfet as they both are different type of I/O's (explicit and implicit). I can make it via the variable resistance which accepts position control from scicos blocks. But is there any other way to interconnect electrical (modellica based) blocks to normal scicos blocks ? I am a novice to scicos and scilab. Hope i made my explanation clear. Any pointers will be greatly appreciated. Thanks a lot. Ram -- ------------------------------------------------------------ Shriram R Sampat Software Engineer - Embedded Systems EK Tronic Ing. R. Nitz Tel.: + 49/(0)7154/8311-12 FAX : + 49/(0)7154/70449 email: s.sampat at ektronic.de www.ektronic.de ------------------------------------------------------------ EK Tronic Ing. R.Nitz Enzstr. 9 , 70806 Kornwestheim Ust ID: DE 146160631 Gesch?ftsf?hrung: Ing. Richard Nitz From geraldonetto at gmail.com Wed Jan 23 14:38:53 2008 From: geraldonetto at gmail.com (Geraldo Netto) Date: Wed, 23 Jan 2008 11:38:53 -0200 Subject: how to use transfer function in scilab Message-ID: Hi Guys, How are you doing? Sirs, i'm pretty newbie in scilab and i would like to know how can i use transfer function( tf() from matlab ) in scilab? i read about clr, but i was unable to use it ie: i was not able to use "clr()" Kind Regards and Best Wishes, Geraldo -- site: http://extremedev.sf.net msn: geraldo_boca_at_hotmail.com skype: geraldo-netto icq: 145-061-456 From sylvestre.ledru at inria.fr Wed Jan 23 14:50:57 2008 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Wed, 23 Jan 2008 14:50:57 +0100 Subject: Scilab recrute / Scilab is hiring a developer Message-ID: <1201096257.17416.87.camel@korcula.inria.fr> Hello guys, The Scilab team is looking for a good developer (a kind of "Swiss army knife" dev, ie with various skills) to come to work in the Scilab team here at the INRIA Rocquencourt. The job offer is in French but it is not restricted to french people. Don't hesitate if you are interested. Sylvestre -------------- next part -------------- A non-text attachment was scrubbed... Name: Fiche_de_poste_polyvalent_v2.pdf Type: application/pdf Size: 94997 bytes Desc: not available URL: From s.sampat at ektronic.de Wed Jan 23 14:58:42 2008 From: s.sampat at ektronic.de (Shriram Sampat) Date: Wed, 23 Jan 2008 14:58:42 +0100 Subject: [scilab-Users] how to use transfer function in scilab In-Reply-To: References: Message-ID: <47974812.4060109@ektronic.de> hi geraldo, try syslin and ss2tf enough examples in help, if you read about this function. but anyway, here is one sys_dc = syslin('c',A,B,C,D) tf1 = ss2tf(sys_dc) A B C and D are the state space matrices. hope this helps :) Ram Geraldo Netto wrote: > Hi Guys, > > How are you doing? > > Sirs, i'm pretty newbie in scilab and i would like to know > how can i use transfer function( tf() from matlab ) > in scilab? > > i read about clr, but i was unable to use it > ie: i was not able to use "clr()" > > Kind Regards and Best Wishes, > > Geraldo > -- ------------------------------------------------------------ Shriram R Sampat Software Engineer - Embedded Systems EK Tronic Ing. R. Nitz Tel.: + 49/(0)7154/8311-12 FAX : + 49/(0)7154/70449 email: s.sampat at ektronic.de www.ektronic.de ------------------------------------------------------------ EK Tronic Ing. R.Nitz Enzstr. 9 , 70806 Kornwestheim Ust ID: DE 146160631 Gesch?ftsf?hrung: Ing. Richard Nitz From geraldonetto at gmail.com Thu Jan 24 01:13:02 2008 From: geraldonetto at gmail.com (Geraldo Netto) Date: Wed, 23 Jan 2008 22:13:02 -0200 Subject: [scilab-Users] how to use transfer function in scilab In-Reply-To: <47974812.4060109@ektronic.de> References: <47974812.4060109@ektronic.de> Message-ID: Hi Shriram, Thank you very very much for your support :) Kind Regards and Best Wishes, Geraldo On 23/01/2008, Shriram Sampat wrote: > hi geraldo, > > try syslin and ss2tf > > enough examples in help, if you read about this function. but anyway, > here is one > > sys_dc = syslin('c',A,B,C,D) > tf1 = ss2tf(sys_dc) > > A B C and D are the state space matrices. > > hope this helps :) > > Ram > > > Geraldo Netto wrote: > > Hi Guys, > > > > How are you doing? > > > > Sirs, i'm pretty newbie in scilab and i would like to know > > how can i use transfer function( tf() from matlab ) > > in scilab? > > > > i read about clr, but i was unable to use it > > ie: i was not able to use "clr()" > > > > Kind Regards and Best Wishes, > > > > Geraldo > > > > -- > ------------------------------------------------------------ > Shriram R Sampat > Software Engineer - Embedded Systems > > EK Tronic Ing. R. Nitz > Tel.: + 49/(0)7154/8311-12 > FAX : + 49/(0)7154/70449 > email: s.sampat at ektronic.de > www.ektronic.de > ------------------------------------------------------------ > EK Tronic Ing. R.Nitz > Enzstr. 9 , 70806 Kornwestheim > Ust ID: DE 146160631 > Gesch?ftsf?hrung: Ing. Richard Nitz > > -- site: http://extremedev.sf.net msn: geraldo_boca_at_hotmail.com skype: geraldo-netto icq: 145-061-456 From s.sampat at ektronic.de Thu Jan 24 09:45:28 2008 From: s.sampat at ektronic.de (Shriram Sampat) Date: Thu, 24 Jan 2008 09:45:28 +0100 Subject: scicos mosfet gate voltage Message-ID: <47985028.2070503@ektronic.de> hello guys, yesterday i sent an email regarding my project and reqmt to connect electrical and linear blocks. I want to control the gate voltage of a MOSFET(scicos electrical block) with the output of a linear PID controller blocks. If i try to connect, i now get an error message "port at origin has type 1 and port at end has type 2". Can anyone help me in this ? Thanks Ram -- ------------------------------------------------------------ Shriram R Sampat Software Engineer - Embedded Systems EK Tronic Ing. R. Nitz Tel.: + 49/(0)7154/8311-12 FAX : + 49/(0)7154/70449 email: s.sampat at ektronic.de www.ektronic.de ------------------------------------------------------------ EK Tronic Ing. R.Nitz Enzstr. 9 , 70806 Kornwestheim Ust ID: DE 146160631 Gesch?ftsf?hrung: Ing. Richard Nitz From Simone.Mannori at inria.fr Thu Jan 24 10:10:51 2008 From: Simone.Mannori at inria.fr (Simone Mannori) Date: Thu, 24 Jan 2008 10:10:51 +0100 Subject: [scilab-Users] scicos mosfet gate voltage In-Reply-To: <47985028.2070503@ektronic.de> References: <47985028.2070503@ektronic.de> Message-ID: <1201165851.16033.1.camel@buta.inria.fr> On Thu, 2008-01-24 at 09:45 +0100, Shriram Sampat wrote: > hello guys, > > yesterday i sent an email regarding my project and reqmt to connect > electrical and linear blocks. > > I want to control the gate voltage of a MOSFET(scicos electrical block) > with the output of a linear PID controller blocks. If i try to connect, > i now get an error message "port at origin has type 1 and port at end > has type 2". > > Can anyone help me in this ? > > Thanks > > Ram > Bonjour Ram, can you so kind to send me your .cos files ? Thanks Simone Mannori - Scilab/Scicos Embedded Engineer From sylvestre.ledru at inria.fr Thu Jan 24 10:18:05 2008 From: sylvestre.ledru at inria.fr (Sylvestre Ledru) Date: Thu, 24 Jan 2008 10:18:05 +0100 Subject: [scilab-Users] scicos mosfet gate voltage In-Reply-To: <47985028.2070503@ektronic.de> References: <47985028.2070503@ektronic.de> Message-ID: <1201166285.17416.166.camel@korcula.inria.fr> Hello Ram, If you don't get an answer from this mailing list, you can try scicos at inria.fr Sylvestre Le jeudi 24 janvier 2008 ? 09:45 +0100, Shriram Sampat a ?crit : > hello guys, > > yesterday i sent an email regarding my project and reqmt to connect > electrical and linear blocks. > > I want to control the gate voltage of a MOSFET(scicos electrical block) > with the output of a linear PID controller blocks. If i try to connect, > i now get an error message "port at origin has type 1 and port at end > has type 2". > > Can anyone help me in this ? > > Thanks > > Ram > From s.sampat at ektronic.de Thu Jan 24 10:31:09 2008 From: s.sampat at ektronic.de (Shriram Sampat) Date: Thu, 24 Jan 2008 10:31:09 +0100 Subject: [scilab-Users] scicos mosfet gate voltage In-Reply-To: <1201165851.16033.1.camel@buta.inria.fr> References: <47985028.2070503@ektronic.de> <1201165851.16033.1.camel@buta.inria.fr> Message-ID: <47985ADD.3030000@ektronic.de> An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: e_test.cos Type: application/octet-stream Size: 116344 bytes Desc: not available URL: From masoud.najafi at inria.fr Thu Jan 24 10:46:39 2008 From: masoud.najafi at inria.fr (Masoud-NAJAFI) Date: Thu, 24 Jan 2008 10:46:39 +0100 Subject: [scicos] Re: [scilab-Users] scicos mosfet gate voltage In-Reply-To: <1201166285.17416.166.camel@korcula.inria.fr> References: <47985028.2070503@ektronic.de> <1201166285.17416.166.camel@korcula.inria.fr> Message-ID: <47985E7F.6090603@inria.fr> Sylvestre Ledru a ?crit : > Hello Ram, > > If you don't get an answer from this mailing list, you can try > scicos at inria.fr > > Sylvestre > > Le jeudi 24 janvier 2008 ? 09:45 +0100, Shriram Sampat a ?crit : > >> hello guys, >> >> yesterday i sent an email regarding my project and reqmt to connect >> electrical and linear blocks. >> >> I want to control the gate voltage of a MOSFET(scicos electrical block) >> with the output of a linear PID controller blocks. If i try to connect, >> i now get an error message "port at origin has type 1 and port at end >> has type 2". >> >> Can anyone help me in this ? >> >> Thanks >> >> Ram Hi Ram, Electrical blocks are considered as components (or implicit blocks in contrast with explicit Scicos blocks), so their ports act as real electrical ports, i.e., their do not have predefined directions. These block are wirtten with the Modelica language, for example the model the electrical pin is: connector Pin Real v; flow Real i; end Pin; and the model of an electrical resistor is model Resistor Pin p, n; parameter Real R "Resistance"; equation R*p.i = p.v - n.v; 0=p.i +n.i; end Resistor; Note that unlike ordinary programming languages, there is no causality between variables. Now, lets return to your question. In order to control the gate voltage of a Mosfet by a PID, the PID output signal should be first transformed into an electrical signal. You can do this using the CVS ( Controlled Voltage Source) block in the Electrical palette. Then connect the "-" pin of CVS to the Ground and "+" pin to the gate of the Mosfet. I wish it can help. Masoud ps: you can find some documentation about Modelica at http://www.scicos.org/scicosmodelicaref.html www.modelica.org From bruno at chaumontet.net Thu Jan 24 13:01:54 2008 From: bruno at chaumontet.net (Bruno Chaumontet) Date: Thu, 24 Jan 2008 13:01:54 +0100 Subject: [scilab-Users] Re: [scicos] Re: [scilab-Users] scicos mosfet gate voltage In-Reply-To: <47985E7F.6090603@inria.fr> References: <47985028.2070503@ektronic.de> <1201166285.17416.166.camel@korcula.inria.fr> <47985E7F.6090603@inria.fr> Message-ID: hi, for my opinion and my very small experience in sicos in a such case I share the problem in 2 parts : - electronic part, I simulate it with pspice and then I define a black box - physical process (including black box) simulated with sicos, very good I'm not sure it's the good manner to mix electronic and pysical process in simulation in any case thanks a lot to sicos team, very powerfull bruno 2008/1/24, Masoud-NAJAFI : > Sylvestre Ledru a ?crit : > > Hello Ram, > > > > If you don't get an answer from this mailing list, you can try > > scicos at inria.fr > > > > Sylvestre > > > > Le jeudi 24 janvier 2008 ? 09:45 +0100, Shriram Sampat a ?crit : > > > >> hello guys, > >> > >> yesterday i sent an email regarding my project and reqmt to connect > >> electrical and linear blocks. > >> > >> I want to control the gate voltage of a MOSFET(scicos electrical block) > >> with the output of a linear PID controller blocks. If i try to connect, > >> i now get an error message "port at origin has type 1 and port at end > >> has type 2". > >> > >> Can anyone help me in this ? > >> > >> Thanks > >> > >> Ram > > Hi Ram, > > Electrical blocks are considered as components (or implicit blocks in > contrast with explicit Scicos blocks), so their ports act as real > electrical ports, i.e., their do not have predefined directions. > > These block are wirtten with the Modelica language, for example the > model the electrical pin is: > > connector Pin > Real v; > flow Real i; > end Pin; > > and the model of an electrical resistor is > > model Resistor > Pin p, n; > parameter Real R "Resistance"; > equation > R*p.i = p.v - n.v; > 0=p.i +n.i; > end Resistor; > > Note that unlike ordinary programming languages, there is no causality > between variables. > > Now, lets return to your question. In order to control the gate voltage > of a Mosfet by a PID, the PID output signal should be first transformed > into an electrical signal. You can do this using the CVS ( Controlled > Voltage Source) block in the Electrical palette. Then connect the "-" > pin of CVS to the Ground and "+" pin to the gate of the Mosfet. > > I wish it can help. > Masoud > > ps: you can find some documentation about Modelica at > http://www.scicos.org/scicosmodelicaref.html > www.modelica.org > > > > > > > > > > -- Bruno Chaumontet http://bruno.chaumontet.net bruno at chaumontet.net From simone.mannori at gmail.com Fri Jan 25 06:14:39 2008 From: simone.mannori at gmail.com (Simone Mannori) Date: Fri, 25 Jan 2008 06:14:39 +0100 Subject: [scilab-Users] Scicos MOSFET gate voltage drive Message-ID: <7b6399840801242114n408d80b5xce8c932b730332b4@mail.gmail.com> Dear Shriram, I would apologize for the late answer (we are in a constant overload situation for the next Scilab 5.0 release). I would say a big "thanks" to Masoud for his indispensable and timely help (Masoud is the main contributor of Modelica integration in Scicos). Some notes about the diagram: - before start a simulation is better use reasonable values (close to the real one) for components parameter's. Avoid this rule at your risk when are playing with POWER circuits ! I choose L=0.1Henry and R=0.1Ohm. The relative time constant is L/R = 1s. Probably the real circuits is faster: you are more expert than me. - I left the MOSFET parameter's as default. It is not a very good choice because I'm breaking the rule #1. The simulation woks quite good, but for useful results you need to tune MOSFET parameter's in order to "clone" the performances of the real one. I would suggest a "Italian Made" STB150NF55 by ST . Masoud still have MY book on MOSFET modeling, so ask him for more information about MOSFET parameter's tuning ;). - I added a small value resistor (100Ohm) in series with the gate of the MOSFET. Drive a gate with an ideal voltage source is not a very good idea. The MOSFET equivalent input circuits is a capacitance and drive a capacitor with a ideal voltage source can create issues in the calculation of the input gate current : i = C d vg / dt . If "vg" is a voltage step the input current is infinite and you have a convergence problem. In the "real world" the input equivalent circuits is a non-linear, time varying capacitance with a parallel non linear, time varying, conductance. This conductance can be NEGATIVE. If you add the inevitable inductance of the wiring, you can obtain a nice 10MHz oscillator. Normally these oscillation destroy the real device. Usually the minimum gate resistor is in the order of 10 Ohms. An alternative, safer, solution is drive the gate with a "voltage clamped" current source. - Push the KP gain is not dangerous (in the simulation) because the system is - basically - first order... BUT look at the Gate voltage: more than 30 volt ! You will destroy the real device. I introduced a saturation to limit the gate voltage (look at the second attached file). In the real circuits a Zener diode will clamp the voltage. - Using linear drive you need to add a big heath sink to the MOSFET. Use a PWM circuits is a better solution. Masoud has some prepared some ready made examples inside "demos/Electrical" folder. Please don't hesitate to contact us for further help for your application: Laurent Vaylet is a mechanical engineer with some first-hands experiences in the automotive world. Best Regards Simone Mannori - Scilab/INRIA Rocquencourt P.S. Thanks to Sylvestre for his "postman" job ;). -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: e_test_r1.cos Type: application/octet-stream Size: 148076 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: e_test_r2.cos Type: application/octet-stream Size: 152080 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: stp150nf55.pdf Type: application/pdf Size: 566989 bytes Desc: not available URL: From s.sampat at ektronic.de Fri Jan 25 11:15:16 2008 From: s.sampat at ektronic.de (Shriram Sampat) Date: Fri, 25 Jan 2008 11:15:16 +0100 Subject: [scilab-Users] Scicos MOSFET gate voltage drive In-Reply-To: <7b6399840801242114n408d80b5xce8c932b730332b4@mail.gmail.com> References: <7b6399840801242114n408d80b5xce8c932b730332b4@mail.gmail.com> Message-ID: <4799B6B4.80808@ektronic.de> Hello Simone, Thanks a bunch for your vey detailed reply and thanks a lot to Masoud for his suggestion to use the controlled voltage source. We have a similar working setup with heatsink and ventillators(as you guessed ;-) ), bcos we need to be driving around 150A over a considerable period of time. This setup and control for it, is totally with electronics. Now we want to increase the current driving capability(new MOSFET) and a higher control frequency (around 50KHZ PID loop), and high configurability via software. The initial scicos electrical model was just a simple experiment, whether I could do a simulation of this, to aid me write the control part in software and thanks to you guys i have the full set of tools to describe the system now. One problem i have as of now, is defining the parameters for the MOSFET (attached datasheet). It is a high current (200A) MOSFET. I have asked the manufacturer for the spice parameters for his device and so far have got no updates. Can any of you guys help me parameterise this for Scicos ? I am not much of a power electronics guy, as my expertise lies more in software and small electronics. I will go through your suggestions today and complete my simulation. I will also suggest it to my circuit design colleagues while we do the new design. Thanks a lot guys for your effort and time. I really appreciate all of your help. Ram Simone Mannori wrote: > Dear Shriram, > > I would apologize for the late answer (we are in a constant overload > situation for the next > Scilab 5.0 release). > > I would say a big "thanks" to Masoud for his indispensable and timely > help (Masoud is the > main contributor of Modelica integration in Scicos). > > Some notes about the diagram: > > - before start a simulation is better use reasonable values (close to > the real one) for components > parameter's. Avoid this rule at your risk when are playing with > POWER circuits ! > I choose L=0.1Henry and R=0.1Ohm. The relative time constant is > L/R = 1s. Probably the real circuits > is faster: you are more expert than me. > > - I left the MOSFET parameter's as default. It is not a very good > choice because I'm breaking the rule #1. > The simulation woks quite good, but for useful results you need to > tune MOSFET parameter's in order to > "clone" the performances of the real one. I would suggest a "Italian > Made" STB150NF55 by ST . > Masoud still have MY book on MOSFET modeling, so ask him for more > information about MOSFET > parameter's tuning ;). > > - I added a small value resistor (100Ohm) in series with the gate of > the MOSFET. Drive a gate with an ideal > voltage source is not a very good idea. The MOSFET equivalent input > circuits is a capacitance and drive > a capacitor with a ideal voltage source can create issues in the > calculation of the input gate current : > i = C d vg / dt . If "vg" is a voltage step the input current is > infinite and you have a convergence problem. > In the "real world" the input equivalent circuits is a non-linear, > time varying capacitance with a parallel non linear, > time varying, conductance. This conductance can be NEGATIVE. If > you add the inevitable inductance of the > wiring, you can obtain a nice 10MHz oscillator. Normally these > oscillation destroy the real device. > Usually the minimum gate resistor is in the order of 10 Ohms. An > alternative, safer, solution is drive the gate > with a "voltage clamped" current source. > > - Push the KP gain is not dangerous (in the simulation) because the > system is - basically - first order... BUT > look at the Gate voltage: more than 30 volt ! You will destroy the > real device. I introduced a saturation to > limit the gate voltage (look at the second attached file). In the > real circuits a Zener diode will clamp the voltage. > > - Using linear drive you need to add a big heath sink to the MOSFET. > Use a PWM circuits is a better solution. > Masoud has some prepared some ready made examples inside > "demos/Electrical" folder. > > Please don't hesitate to contact us for further help for your > application: Laurent Vaylet is a mechanical engineer with > some first-hands experiences in the automotive world. > > Best Regards > > Simone Mannori - Scilab/INRIA Rocquencourt > > > P.S. Thanks to Sylvestre for his "postman" job ;). > > -- ------------------------------------------------------------ Shriram R Sampat Software Engineer - Embedded Systems EK Tronic Ing. R. Nitz Tel.: + 49/(0)7154/8311-12 FAX : + 49/(0)7154/70449 email: s.sampat at ektronic.de www.ektronic.de ------------------------------------------------------------ EK Tronic Ing. R.Nitz Enzstr. 9 , 70806 Kornwestheim Ust ID: DE 146160631 Gesch?ftsf?hrung: Ing. Richard Nitz -------------- next part -------------- A non-text attachment was scrubbed... Name: semikron111AR.pdf Type: application/pdf Size: 513267 bytes Desc: not available URL: From Simone.Mannori at inria.fr Fri Jan 25 13:07:48 2008 From: Simone.Mannori at inria.fr (Simone Mannori) Date: Fri, 25 Jan 2008 13:07:48 +0100 Subject: [scilab-Users] Scicos MOSFET gate voltage drive In-Reply-To: <4799B6B4.80808@ektronic.de> References: <7b6399840801242114n408d80b5xce8c932b730332b4@mail.gmail.com> <4799B6B4.80808@ektronic.de> Message-ID: <1201262868.23602.17.camel@buta.inria.fr> Shriram: > One problem i have as of now, is defining the parameters for the MOSFET > (attached data sheet). It is a high current (200A) MOSFET. I have asked > the manufacturer for the spice parameters for his device and so far have > got no updates. Can any of you guys help me parameterize this for Scicos ? Masoud has already proposed me to write a Scilab/Scicos application capable to compute Spice parameters from data sheet. I have three conferences in the following weeks, so it is better is you ask Masoud directly. A good starting point is to replicate inside Scicos the test circuit used by the SEMIKRON to plot the curve and play with the Spice parameters in order to obtain a reasonable match. >From Feb. 15th I will find time also for this development. Simone From vincent.couvert at inria.fr Sun Jan 27 16:27:14 2008 From: vincent.couvert at inria.fr (Vincent COUVERT) Date: Sun, 27 Jan 2008 16:27:14 +0100 Subject: [scilab-Users] how to use transfer function in scilab In-Reply-To: References: Message-ID: <479CA2D2.1000800@inria.fr> Hi, What about function syslin ? Vincent Geraldo Netto a ?crit : > Hi Guys, > > How are you doing? > > Sirs, i'm pretty newbie in scilab and i would like to know > how can i use transfer function( tf() from matlab ) > in scilab? > > i read about clr, but i was unable to use it > ie: i was not able to use "clr()" > > Kind Regards and Best Wishes, > > Geraldo > -- ============================================== Vincent COUVERT Centre de Recherche INRIA Paris-Rocquencourt Domaine de Voluceau - B.P. 105 78153 Le Chesnay Cedex ============================================== Equipe Projet SCILAB B?timent 1B - Bureau 013 Email : vincent.couvert at inria.fr T?l : +33 (0)1 39 63 54 46 Fax : +33 (0)1 39 63 55 94 ============================================== From s.sampat at ektronic.de Tue Jan 29 14:13:34 2008 From: s.sampat at ektronic.de (Shriram Sampat) Date: Tue, 29 Jan 2008 14:13:34 +0100 Subject: stiff region and hanging simulation Message-ID: <479F267E.1010801@ektronic.de> Hello guys, Thank you all for your wonderful support. I now have a decent understanding and a basic model. I have attached the experimental model along with this email (.cos file) The real R and L value in my circuit are 300 milli Ohms and 112 micro ohms. Also a 150A / ms climb of Ids is required at the end. When i try with these values in my model, its impossible to run the simulation. Either it nothing happens, or lots of stiff region messages or the whole program hangs, depending on the values used. So i tried with bigger values for both L and R. Even now, for one specific R and L value, all Desired Current values does not work. Still the simulation bumps into sudden hangs when the current nears the desired value. Can you give me some hints on how to remove these stiff regions and bring my simulation close to real world values ? A little explanation of the model (i have also given some comments in the diagram itself) : I measure the current through the circuit, calculate error from the desired current that should be flowing. I multiple this error with Kp. The result of this, i downscale to voltage values. if 20V at gate is 110A in circuit, voltage required for a particular current value Y is = Y * 20/110. Also there is a vgate limit that limits gate voltage to a max 20V.Now i find the difference voltage to be applied to bring the current to desired value and give it at the gate with VCS. Thank you very much again for the help. Ram -- ------------------------------------------------------------ Shriram R Sampat Software Engineer - Embedded Systems EK Tronic Ing. R. Nitz Tel.: + 49/(0)7154/8311-12 FAX : + 49/(0)7154/70449 email: s.sampat at ektronic.de www.ektronic.de ------------------------------------------------------------ EK Tronic Ing. R.Nitz Enzstr. 9 , 70806 Kornwestheim Ust ID: DE 146160631 Gesch?ftsf?hrung: Ing. Richard Nitz From s.sampat at ektronic.de Tue Jan 29 14:17:25 2008 From: s.sampat at ektronic.de (Shriram Sampat) Date: Tue, 29 Jan 2008 14:17:25 +0100 Subject: stiff region and hanging simulation Message-ID: <479F2765.1030406@ektronic.de> sorry the simulation file is attached now Ram -- ------------------------------------------------------------ Shriram R Sampat Software Engineer - Embedded Systems EK Tronic Ing. R. Nitz Tel.: + 49/(0)7154/8311-12 FAX : + 49/(0)7154/70449 email: s.sampat at ektronic.de www.ektronic.de ------------------------------------------------------------ EK Tronic Ing. R.Nitz Enzstr. 9 , 70806 Kornwestheim Ust ID: DE 146160631 Gesch?ftsf?hrung: Ing. Richard Nitz -------------- next part -------------- A non-text attachment was scrubbed... Name: LDU_Sim_001.cos Type: application/octet-stream Size: 172656 bytes Desc: not available URL: From marc.bieri at wincor-nixdorf.com Wed Jan 30 09:08:10 2008 From: marc.bieri at wincor-nixdorf.com (Bieri, Marc) Date: Wed, 30 Jan 2008 09:08:10 +0100 Subject: make library of files which contain several functions Message-ID: <91563E8E206E0F47BD3AF357E399512F234AAF@DEEXVS02.wincor-nixdorf.com> Hello, I'm trying to make a library of my functions. The problem is that some functions are collected in one sci.files. I tried to do that with genlib but it doesn't work. After this command only the function which name are the same as the filename are available. Is there some trick to do that? Maybe with save and lib. Thank you in advance, Marc -------------- next part -------------- An HTML attachment was scrubbed... URL: From mtrainer at central-data.net Wed Jan 30 09:25:01 2008 From: mtrainer at central-data.net (Murray Trainer) Date: Wed, 30 Jan 2008 17:25:01 +0900 Subject: Missing charsets in String to FontSet conversion error Message-ID: <1201681501.4469.5.camel@dev02.gopc.net> Hi, I get the error below starting scilab-4.1.2-56.1 on SuSE 10.2 Linux: Warning: Missing charsets in String to FontSet conversion Warning: Unable to load any usable fontset Am I missing some fonts or something similar? Thanks Murray