From nicolas.vergnes at steria.cnes.fr Tue Nov 3 11:03:03 2009 From: nicolas.vergnes at steria.cnes.fr (Vergnes Nicolas) Date: Tue, 3 Nov 2009 11:03:03 +0100 Subject: [scilab-Users] usecanvas on remote display on linux In-Reply-To: <20091031221549.17056ddoyv9195hc@webmail.utc.fr> Message-ID: Hi, I tried tu use uicontrols with plots with Cygwin X server : not working, I know that Cygwin dont support hardware accelereation. But I'm surprised that it's not working with Exceed on Demand : not working,I have the uicontrol/usecanvas alert message ( with Exceed on Demand, I can run other 3d softwares which require hardware acceleration ) I dont have tested with VirtualGL/TurboVNC Regards; Nicolas Vergnes -----Message d'origine----- De : Stephane Mottelet [mailto:stephane.mottelet at utc.fr] Envoy? : samedi 31 octobre 2009 22:16 ? : users at lists.scilab.org Objet : Re: [scilab-Users] usecanvas on remote display on linux Hi, I suppose you are talking about VNC sessions ? The only solution is to use the VirtualGL/TurboVNC stuff provided by Sun. If you can plug a decent Nvidia card (e.g. Quadro) in your server, it is just a matter of installing the native X11 Nvidia drivers and the stuff I mention above. I am currently unable to tell you if it works with Scilab, because our (Sun) server does not have a regular PCI-Express slot.... S. Vergnes Nicolas a ?crit?: > Ih all, > The http://www.scilab.org/product/man/usecanvas.html page dont speak > about the use of remote session/display from a linux server > > Can you confirm me (or not) that the use of usecanvas and uicontrols > is not supported with linux remote session, even if the > software(server and > client) used to create the remote session have hardware acceleration ? > > Regards; > > Nicolas Vergnes > > > From olivier.stab at mines-paristech.fr Tue Nov 3 14:01:15 2009 From: olivier.stab at mines-paristech.fr (Olivier Stab) Date: Tue, 03 Nov 2009 14:01:15 +0100 Subject: [scilab-Users] Matplot avec/sans usecanvas Message-ID: <4AF0299B.80209@mines-paristech.fr> Bonjour, J'esp?re que je ne pose pas une question d?j? trait?e mais je n'ai rien trouv? sur le site Web qui puisse m'aide... Nous utilisons Scilab au centre Geosciences de l'EMP depuis quelques ann?es... Personnellement, j'ai utilis? la version 4.1.1 de Scilab (avec succ?s) pour le traitement de MNT (Mod?les num?riques de Terrain) que j'appr?hende sous la forme de matrices 3000x3000 environ (en boostant la stacksize et en utilsant Matplot). Pour diverses raisons je suis pass? ? la version 5.1.1 mais... Le passage en 5.1.1 me pose des probl?mes d'affichage tr?s importants : * Sous Linux en remote : avec usecanvas(%F) l'affichage est tr?s tr?s lent (il ne l'?tait pas avec Scilab 4.1.1) avec usecanvas(%T) l'affichage plante m?me la session X ! * Sous Windows en local : avec usecanvas(%F) : une fenetre avec les axes s'affiche mais pas les niveaux de gris ! Le message est : "ConcreteDrawableGrayplot::drawGrayplot : Plus de m?moire disponible" avec usecanvas(%T) : idem mais le message s'affiche plusieurs fois (6)... Est-ce un probl?me d'installation ? ou des bugs connus ? Suite ? ces probl?mes nous envisageons de repasser (sur nos serveurs Linux/RedHat) ? la version 4.1.1... Est-ce judicieux ? Ai-je rat? des informations d?crivant ces probl?mes et les solutions ? mettre en ?uvre sur votre site Web ? Merci d'avance. Cordialement. Olivier Stab. From Samuel.Gougeon at univ-lemans.fr Tue Nov 3 19:35:46 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Tue, 03 Nov 2009 19:35:46 +0100 Subject: getversion() & getversion('scilab','string_info') Message-ID: <4AF07802.7090908@univ-lemans.fr> Hello, What's the usefulness of getversion('scilab', 'string_info') compared to simply getversion() ? Moreover, it would be nice to add to getversion() an option to get the release date in human readable normalized format. Examples: On scilab-5.1.1: getversion('date') => 2009.4.14, 9:14:40 On scilab-master-1251126757: getversion('date') => 2009.8.24, 17:12:37 The related piece of code could be: vers=getversion('scilab'); d=getdate(vers(4)); d=sprintf("%i.%i.%i, %i:%i:%i",d(1),d(2),d(6),d(7),d(8),d(9)); (yes, a SEP would be required) Regards Samuel From Samuel.Gougeon at univ-lemans.fr Tue Nov 3 20:09:46 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Tue, 03 Nov 2009 20:09:46 +0100 Subject: addmenu : Inserting an item to a predefined menu Message-ID: <4AF07FFA.5030305@univ-lemans.fr> Hello, Is it possible to insert a new item into a predefined menu of the console ? I have tried with addmenu(gettext("&Preferences"),...), but this creates a new /Preferences/ Menu, instead of upgrading the existing one. The console' menus are activated into scilab.star, but where are they defined, and is it possible to modify them ? Thanks for any information. Regards, Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Tue Nov 3 21:21:03 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Tue, 03 Nov 2009 21:21:03 +0100 Subject: Trees in Scilab > 5.1.1 Message-ID: <4AF090AF.7040506@univ-lemans.fr> Hi, Trees of activable items (with callbacks) are a new and very nice item available for Scilab > 5.1.1. 4 functions are useful for building, displaying and printing trees: createNode(), createTree(), dumpTree(), and displaytree(). After trying these functions, some remarks might be done, as well as some questions remain. IMO, there are too numerous to be posted as individual bug+resquest reports, and since posting several questions in a single report is not correct, a post for discussion in the newsgroup is preferred (at least as a first step). * About *functions names* : IMO, capitalising the N in createNode() etc is a very good idea, to make functions names more readable. Unfortunately, this is very exceptional in Scilab (so we have for instance /getinstalledlookandfeels()/, that looks not so pleasant than if it would have been /getInstalledLookAndFeels()/ ). So, we should expect /displayTree()/ instead of /displaytree()/. Or, as a worse but more regular naming, createnode() instead of createNode(), etc. * About *help pages *: for createTree() : The last line of the example should be treeRoot = createTree( root, treeNode1, node2, treeNode3) instead of treeRoot = createTree( root, node1, node2, node3) Same thing in the example given for displaytree(). (Bug just posted) * About *CreateTree()* : This is the "branching function". It would be usefull to add a second argument (scalar boolean) for specifying whether the branched node should by default be developped (so displaying the downstream tree) or not. * About *displaytree() *: returns an undocumented value, that looks simply the tree's handle passed in argument. Unfortunately, - no handle is returned for the window displaying the tree. - winlist() does not list the new window - it is possible neither to modify (naming, sizing, locating, foreground & background-colorizing etc) nor to delete the window with a script (or even by hand (except resizing and positionning)) * a new *foldTree(*tree [, unfolded [, maxDepth] ) function could be usefull, to post-fold or post-develop a (sub)tree after displaying it. The first argument could be either a single tree handle, or a list of handles. /unfolded/ could be either a boolean (for assigning status), or -1 (to switch trees' status) Since Scilab 5.2 has not yet been released, these rems & ideas cannot make an official Scilab Enhancement Proposal :-) (moreover, SEP have to be posted on the dev-list, while all users may discuss this here). Expecting your comments, Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: moz-screenshot-4.jpg Type: image/jpeg Size: 6781 bytes Desc: not available URL: From sylvestre.ledru at scilab.org Tue Nov 3 21:25:42 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 03 Nov 2009 21:25:42 +0100 Subject: [scilab-Users] Trees in Scilab > 5.1.1 In-Reply-To: <4AF090AF.7040506@univ-lemans.fr> References: <4AF090AF.7040506@univ-lemans.fr> Message-ID: <1257279942.14255.2929.camel@zlarin> Hello, First, about the internal evolution of Scilab, you should send email on the Dev Mailing list. Le mardi 03 novembre 2009 ? 21:21 +0100, Samuel Gougeon a ?crit : > Hi, > > Trees of activable items (with callbacks) are a new and very nice > item available for Scilab > 5.1.1. > 4 functions are useful for building, displaying and printing trees: > createNode(), createTree(), dumpTree(), and displaytree(). > > After trying these functions, some remarks might be done, > as well as some questions remain. > IMO, there are too numerous to be posted as individual > bug+resquest reports, and since posting several questions > in a single report is not correct, a post for discussion in the > newsgroup is preferred (at least as a first step). > > * About functions names : > IMO, capitalising the N in createNode() etc is a very good idea, > to make functions names more readable. > Unfortunately, this is very exceptional in Scilab (so we have > for instance getinstalledlookandfeels(), that looks not so pleasant > than if it would have been getInstalledLookAndFeels() ). > So, we should expect displayTree() instead of displaytree(). > Or, as a worse but more regular naming, createnode() instead of > createNode(), etc. It is true that we have a lack of consistency on the naming of the function. We try as much as possible to avoid such issues for now. > * About CreateTree() : This is the "branching function". > It would be usefull to add a second argument (scalar boolean) > for specifying whether the branched node should by default > be developped (so displaying the downstream tree) or not. Yes, that sounds reasonable (idem for foldTree). A SEP would be nice here. > * About displaytree() : > returns an undocumented value, that looks simply the tree's > handle passed in argument. Unfortunately, > - no handle is returned for the window displaying the tree. > - winlist() does not list the new window > - it is possible neither to modify (naming, sizing, locating, > foreground & background-colorizing etc) nor to delete the > window with a script (or even by hand (except resizing and > positionning)) Could you submit a bug report on the undocumented value ? > * a new foldTree(tree [, unfolded [, maxDepth] ) function could be > usefull, to post-fold or post-develop a (sub)tree after displaying > it. > The first argument could be either a single tree handle, or a list > of handles. unfolded could be either a boolean (for assigning > status), > or -1 (to switch trees' status) > > Since Scilab 5.2 has not yet been released, these rems & ideas cannot > make an official Scilab Enhancement Proposal :-) > (moreover, SEP have to be posted on the dev-list, while all users may > discuss this here). Please note that a SEP about the tree was be sent on February: http://lists.scilab.org/cgi-bin/ezmlm-browse?list=dev&cmd=showmsg&msgnum=1228 Sylvestre From louis at awake24.de Tue Nov 3 21:35:38 2009 From: louis at awake24.de (Louis) Date: Tue, 3 Nov 2009 21:35:38 +0100 Subject: Parsing ascii delimited data Message-ID: <004001ca5cc5$36e41370$a4ac3a50$@de> Hi everyone. I try to parse a ascii delimited file. If I try to use fscanf I get this: -->a=fscanf(?data.csv', '%s;%s'); !--error 999 msprintf: Wrong number of input arguments: data doesn't fit with format. at line 51 of function sscanf called by : [v1] = sscanf(buf,frmt); in execstr instruction called by : line 41 of function fscanf called by : a=fscanf('kapitalkurven_quelle.csv', '%s;%s'); If I try to use mfscanf like this: [n,a,b]=mfscanf(-1, u, '%s;%s'); It does not split the input line at ;. So if I type a I get this: !31.01.2003;115.918,60 ! ! ! !? !! ! !aaaaa;1.1,10 ! ! ! !? !! ! !bbbbbbb;1.2,50 ! ! ! !? !! ! !cccccc;1.22,00 ! ! ! !? !! ! !dddddd;1.3,20 ! Can someone help me so I will get something like this: !aaaaaaa ! 1.1,10 ! Thanks Louis. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Wed Nov 4 00:25:30 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 04 Nov 2009 00:25:30 +0100 Subject: [scilab-Users] getversion() & getversion('scilab','string_info') In-Reply-To: <4AF07802.7090908@univ-lemans.fr> References: <4AF07802.7090908@univ-lemans.fr> Message-ID: <1257290730.14255.3323.camel@zlarin> Le mardi 03 novembre 2009 ? 19:35 +0100, Samuel Gougeon a ?crit : > Hello, > > What's the usefulness of getversion('scilab', 'string_info') > compared to simply getversion() ? > > Moreover, it would be nice to add to getversion() an option > to get the release date in human readable normalized format. Can I ask why you would need this feature ? Sylvestre From ziliottialfredo at interfree.it Wed Nov 4 01:35:17 2009 From: ziliottialfredo at interfree.it (ziliottialfredo at interfree.it) Date: 4 Nov 2009 00:35:17 -0000 Subject: *****SPAM***** Unsubscribe Message-ID: <20091104003517.30192.qmail@community22.interfree.it> ------------------------------------------------------------------------------- Valore legale alle tue mail InterfreePEC - la tua Posta Elettronica Certificata http://pec.interfree.it ------------------------------------------------------------------------------- From osvaldo at dcc.ufmg.br Wed Nov 4 10:12:02 2009 From: osvaldo at dcc.ufmg.br (Osvaldo Sergio Farhat de Carvalho) Date: Wed, 4 Nov 2009 07:12:02 -0200 Subject: [scilab-Users] Parsing ascii delimited data In-Reply-To: <004001ca5cc5$36e41370$a4ac3a50$@de> References: <004001ca5cc5$36e41370$a4ac3a50$@de> Message-ID: Louis, I suggest to use functions mgetl and tokens, as in fd = mopen("data.csv","r"); while ~meof(fd) line = mgetl(fd,1) // get one line as a string T = tokens(line,";"); //T will be a string vector // do something with T end mclose(fd) Osvaldo De: "Louis" Para: Data: 03/11/2009 20:23 Assunto: [scilab-Users] Parsing ascii delimited data Hi everyone. I try to parse a ascii delimited file. If I try to use fscanf I get this: -->a=fscanf(?data.csv', '%s;%s'); ?!--error 999 msprintf: Wrong number of input arguments: data doesn't fit with format. at line????? 51 of function sscanf called by : [v1] = sscanf(buf,frmt); in? execstr instruction??? called by : line??? 41 of function fscanf called by : a=fscanf('kapitalkurven_quelle.csv', '%s;%s'); If I try to use mfscanf like this: [n,a,b]=mfscanf(-1, u, '%s;%s'); It does not split the input line at ;. So if I type a I get this: !31.01.2003;115.918,60? ! !?????????????????????? ! !????????? ?????????????!!?????????????????????? ! !aaaaa;1.1,10? ! !?????????????????????? ! !?????????????????????? !!?????????????????????? ! !bbbbbbb;1.2,50? ! !?????????????????????? ! !?????????????????????? !!?????????????????????? ! !cccccc;1.22,00? ! !?????????????????????? ! !?????????????????????? !!?????????????????????? ! !dddddd;1.3,20? ! Can someone help me so I will get something like this: !aaaaaaa? ! 1.1,10 ! Thanks Louis. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: graycol.gif Type: image/gif Size: 105 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ecblank.gif Type: image/gif Size: 45 bytes Desc: not available URL: From Samuel.Gougeon at univ-lemans.fr Wed Nov 4 14:52:48 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 04 Nov 2009 14:52:48 +0100 Subject: [scilab-Users] getversion() & getversion('scilab','string_info') In-Reply-To: <1257290730.14255.3323.camel@zlarin> References: <4AF07802.7090908@univ-lemans.fr> <1257290730.14255.3323.camel@zlarin> Message-ID: <4AF18730.1070401@univ-lemans.fr> ----- Message d'origine ----- De : Sylvestre Ledru Date : 04/11/2009 00:25: > Le mardi 03 novembre 2009 ? 19:35 +0100, Samuel Gougeon a ?crit : > >> Hello, >> >> What's the usefulness of getversion('scilab', 'string_info') >> compared to simply getversion() ? >> >> Moreover, it would be nice to add to getversion() an option >> to get the release date in human readable normalized format. >> > Can I ask why you would need this feature ? > Because i am using several master-### releases of Scilab, due to the fact that Scilab rapidly evolves in between 2 official releases, with new important functional or ergonomic features such that completion improvements or fixes, LaTeX in graphic strings, sub-chaptering of help pages, etc. Then, when i consult scilab's bugzilla to see fiexes or progresses or to post reports or comments, i need to know the date of the master that i am using. Bugzilla doesn't timestamp reports and comments with # of seconds since 1/1/1970, and every scilab console is titled "Console" whatever is the related scilab's version. At least 2 masters used at office (one stable, one more recent), 2 others at home, etc. That's why i have created a small versionDate() macro loaded from my scilab.ini. This could be of interest for other users. Except whether forthcoming masters are straightforwardly numbered with human readable compilation date, or consoles' title includes this date. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From allan.cornet at scilab.org Wed Nov 4 15:03:53 2009 From: allan.cornet at scilab.org (Allan CORNET) Date: Wed, 4 Nov 2009 15:03:53 +0100 Subject: [scilab-Users] getversion() & getversion('scilab','string_info') In-Reply-To: <4AF18730.1070401@univ-lemans.fr> References: <4AF07802.7090908@univ-lemans.fr> <1257290730.14255.3323.camel@zlarin> <4AF18730.1070401@univ-lemans.fr> Message-ID: <000a01ca5d57$a4336510$ec9a2f30$@cornet@scilab.org> Hi, Maybe [a,b] = getversion() is enough to know date ? -->[a,b] = getversion() b = !VC++ tk modelicac atlas release Nov 2 2009 10:59:46 ! a = scilab-master-1257152676 Best Regards Allan CORNET De : Samuel Gougeon [mailto:Samuel.Gougeon at univ-lemans.fr] Envoy? : mercredi 4 novembre 2009 14:53 ? : users at lists.scilab.org Objet : Re: [scilab-Users] getversion() & getversion('scilab','string_info') ----- Message d'origine ----- De : Sylvestre Ledru Date : 04/11/2009 00:25: Le mardi 03 novembre 2009 ? 19:35 +0100, Samuel Gougeon a ?crit : Hello, What's the usefulness of getversion('scilab', 'string_info') compared to simply getversion() ? Moreover, it would be nice to add to getversion() an option to get the release date in human readable normalized format. Can I ask why you would need this feature ? Because i am using several master-### releases of Scilab, due to the fact that Scilab rapidly evolves in between 2 official releases, with new important functional or ergonomic features such that completion improvements or fixes, LaTeX in graphic strings, sub-chaptering of help pages, etc. Then, when i consult scilab's bugzilla to see fiexes or progresses or to post reports or comments, i need to know the date of the master that i am using. Bugzilla doesn't timestamp reports and comments with # of seconds since 1/1/1970, and every scilab console is titled "Console" whatever is the related scilab's version. At least 2 masters used at office (one stable, one more recent), 2 others at home, etc. That's why i have created a small versionDate() macro loaded from my scilab.ini. This could be of interest for other users. Except whether forthcoming masters are straightforwardly numbered with human readable compilation date, or consoles' title includes this date. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From vaborg at gmail.com Wed Nov 4 17:05:38 2009 From: vaborg at gmail.com (Ivan Maximov) Date: Wed, 4 Nov 2009 17:05:38 +0100 Subject: DICOM files toolbox Message-ID: <20091104170538.c46bd1ae.vaborg@gmail.com> Does Scilab has a useful toolbox for working with DICOM files like Matlab one? I mean something like dicominfo(); dicomread(); etc? Thanks a lot in advance --------- best regards, Ivan From louis at awake24.de Wed Nov 4 18:02:06 2009 From: louis at awake24.de (Louis) Date: Wed, 4 Nov 2009 18:02:06 +0100 Subject: AW: [scilab-Users] Parsing ascii delimited data In-Reply-To: References: <004001ca5cc5$36e41370$a4ac3a50$@de> Message-ID: <002401ca5d70$8c2c8a50$a4859ef0$@de> Is there no other way with fewer code? I thought about reading into a struct directly, because it looks Like, a matrix or array can only hold values of a single type. Do the other functions not work properly and need to be fixed? Thanks for your answer Louis. Von: Osvaldo Sergio Farhat de Carvalho [mailto:osvaldo at dcc.ufmg.br] Gesendet: Mittwoch, 4. November 2009 10:12 An: users at lists.scilab.org Betreff: Re: [scilab-Users] Parsing ascii delimited data Louis, I suggest to use functions mgetl and tokens, as in fd = mopen("data.csv","r"); while ~meof(fd) line = mgetl(fd,1) // get one line as a string T = tokens(line,";"); //T will be a string vector // do something with T end mclose(fd) Osvaldo Oculta??o de detalhes inativa de"Louis" ---03/11/2009 20:23:10---Hi everyone."Louis" ---03/11/2009 20:23:10---Hi everyone. De: "Louis" Para: Data: 03/11/2009 20:23 Assunto: [scilab-Users] Parsing ascii delimited data _____ Hi everyone. I try to parse a ascii delimited file. If I try to use fscanf I get this: -->a=fscanf(?data.csv', '%s;%s'); !--error 999 msprintf: Wrong number of input arguments: data doesn't fit with format. at line 51 of function sscanf called by : [v1] = sscanf(buf,frmt); in execstr instruction called by : line 41 of function fscanf called by : a=fscanf('kapitalkurven_quelle.csv', '%s;%s'); If I try to use mfscanf like this: [n,a,b]=mfscanf(-1, u, '%s;%s'); It does not split the input line at ;. So if I type a I get this: !31.01.2003;115.918,60 ! ! ! !? !! ! !aaaaa;1.1,10 ! ! ! !? !! ! !bbbbbbb;1.2,50 ! ! ! !? !! ! !cccccc;1.22,00 ! ! ! !? !! ! !dddddd;1.3,20 ! Can someone help me so I will get something like this: !aaaaaaa ! 1.1,10 ! Thanks Louis. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.gif Type: image/gif Size: 105 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 168 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: image003.png Type: image/png Size: 166 bytes Desc: not available URL: From Samuel.Gougeon at univ-lemans.fr Wed Nov 4 18:33:27 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 04 Nov 2009 18:33:27 +0100 Subject: [scilab-Users] Parsing ascii delimited data In-Reply-To: <004001ca5cc5$36e41370$a4ac3a50$@de> References: <004001ca5cc5$36e41370$a4ac3a50$@de> Message-ID: <4AF1BAE7.1020703@univ-lemans.fr> ----- Message d'origine ----- De : Louis Date : 03/11/2009 21:35: > > Hi everyone. > > I try to parse a ascii delimited file. > > If I try to use fscanf I get this: > > > > -->a=fscanf('data.csv', '%s;%s'); > > !--error 999 > > msprintf: Wrong number of input arguments: data doesn't fit with format. > > at line 51 of function sscanf called by : > .../... > May you attach the first lines of your data.csv, please ? Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Wed Nov 4 18:49:09 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 04 Nov 2009 18:49:09 +0100 Subject: [scilab-Users] getversion() & getversion('scilab','string_info') In-Reply-To: <000a01ca5d57$a4336510$ec9a2f30$@cornet@scilab.org> References: <4AF07802.7090908@univ-lemans.fr> <1257290730.14255.3323.camel@zlarin> <4AF18730.1070401@univ-lemans.fr> <000a01ca5d57$a4336510$ec9a2f30$@cornet@scilab.org> Message-ID: <4AF1BE95.6090907@univ-lemans.fr> ----- Message d'origine ----- De : Allan CORNET Date : 04/11/2009 15:03: > > Hi, > > > > Maybe [a,b] = getversion() is enough to know date ? > > > > -->[a,b] = getversion() > > b = > > > > !VC++ tk modelicac atlas release Nov 2 2009 10:59:46 ! > > a = > > > > scilab-master-1257152676 > May we assume that the Modelicac atlas release date is and will be always the same than the scilab's one ? This looks more tricky than to be obvious. So, thanks for the trick. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Wed Nov 4 19:50:22 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 04 Nov 2009 19:50:22 +0100 Subject: [scilab-Users] Trees in Scilab > 5.1.1 In-Reply-To: <1257279942.14255.2929.camel@zlarin> References: <4AF090AF.7040506@univ-lemans.fr> <1257279942.14255.2929.camel@zlarin> Message-ID: <4AF1CCEE.7090405@univ-lemans.fr> ----- Message d'origine ----- De : Sylvestre Ledru Date : 03/11/2009 21:25: > .../... > Le mardi 03 novembre 2009 ? 21:21 +0100, Samuel Gougeon a ?crit : > >> Hi, >> >> .../... >> * About functions names : >> IMO, capitalising the N in createNode() etc is a very good idea, >> to make functions names more readable. >> Unfortunately, this is very exceptional in Scilab (so we have >> for instance getinstalledlookandfeels(), that looks not so pleasant >> than if it would have been getInstalledLookAndFeels() ). >> So, we should expect displayTree() instead of displaytree(). >> Or, as a worse but more regular naming, createnode() instead of >> createNode(), etc. >> > It is true that we have a lack of consistency on the naming of the > function. We try as much as possible to avoid such issues for now. > Thank you for your related report. >> * About CreateTree() : This is the "branching function". >> It would be usefull to add a second argument (scalar boolean) >> for specifying whether the branched node should by default >> be developped (so displaying the downstream tree) or not. >> > Yes, that sounds reasonable (idem for foldTree). A SEP would be nice > here. > OK. I have a bunch of new SEPs in mind. So, one more. Just lack of time. >> * About displaytree() : >> returns an undocumented value, that looks simply the tree's >> handle passed in argument. Unfortunately, >> - no handle is returned for the window displaying the tree. >> - winlist() does not list the new window >> - it is possible neither to modify (naming, sizing, locating, >> foreground & background-colorizing etc) nor to delete the >> window with a script (or even by hand (except resizing and >> positionning)) >> > Could you submit a bug report on the undocumented value ? > OK. Just done as http://bugzilla.scilab.org/show_bug.cgi?id=5192 > .../... > Please note that a SEP about the tree was be sent on February: > http://lists.scilab.org/cgi-bin/ezmlm-browse?list=dev&cmd=showmsg&msgnum=1228 > Sorry, i missed it. I subscribed to the dev@ on 14/4/09 > 12/2/09 (submission date), and i missed it in the archive of SEPs http://gitweb.scilab.org/?p=scilab;a=tree;f=SEP; Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Wed Nov 4 20:32:38 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 04 Nov 2009 20:32:38 +0100 Subject: [scilab-Users] Trees in Scilab > 5.1.1 In-Reply-To: <4AF1CCEE.7090405@univ-lemans.fr> References: <4AF090AF.7040506@univ-lemans.fr> <1257279942.14255.2929.camel@zlarin> <4AF1CCEE.7090405@univ-lemans.fr> Message-ID: <4AF1D6D6.7060304@univ-lemans.fr> ----- Message d'origine ----- De : Samuel Gougeon Date : 04/11/2009 19:50: > ----- Message d'origine ----- > De : Sylvestre Ledru > Date : 03/11/2009 21:25: >> .../... >> >> Please note that a SEP about the tree was be sent on February: >> http://lists.scilab.org/cgi-bin/ezmlm-browse?list=dev&cmd=showmsg&msgnum=1228 >> BTW, why this very interesting and debatted thread is missing from the GMANE archive ?? http://news.gmane.org/gmane.comp.mathematics.scilab.devel > Sorry, i missed it. I subscribed to the dev@ on 14/4/09 > 12/2/09 > (submission date), > and i missed it in the archive of SEPs > http://gitweb.scilab.org/?p=scilab;a=tree;f=SEP; Reading the SEP and the thread makes me eager for inserNode() and other foreseen functions, as well as for the widedly expected UIcontrol evolution of this new display and interactive tool. Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Wed Nov 4 21:37:05 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 04 Nov 2009 21:37:05 +0100 Subject: [scilab-Users] Trees in Scilab > 5.1.1 In-Reply-To: <4AF1D6D6.7060304@univ-lemans.fr> References: <4AF090AF.7040506@univ-lemans.fr> <1257279942.14255.2929.camel@zlarin> <4AF1CCEE.7090405@univ-lemans.fr> <4AF1D6D6.7060304@univ-lemans.fr> Message-ID: <1257367025.7028.130.camel@zlarin> Le mercredi 04 novembre 2009 ? 20:32 +0100, Samuel Gougeon a ?crit : > ----- Message d'origine ----- > De : Samuel Gougeon > Date : 04/11/2009 19:50: > > ----- Message d'origine ----- > > De : Sylvestre Ledru > > Date : 03/11/2009 21:25: > > > .../... > > > > > > Please note that a SEP about the tree was be sent on February: > > > http://lists.scilab.org/cgi-bin/ezmlm-browse?list=dev&cmd=showmsg&msgnum=1228 > > > > BTW, why this very interesting and debatted thread is missing from the > GMANE archive ?? > http://news.gmane.org/gmane.comp.mathematics.scilab.devel I don't know. I asked myself the same question yesterday. Just could find it in the google cache but not on the website ?! Sylvestre From louis at awake24.de Wed Nov 4 22:13:45 2009 From: louis at awake24.de (Louis) Date: Wed, 4 Nov 2009 22:13:45 +0100 Subject: Why is a javabundle installed along with scilab? Message-ID: <000f01ca5d93$b3e649f0$1bb2ddd0$@de> I saw that it is used for demos. However, I want to find out the other tasks for wich java is necesarry, and I did not find any documentation about that topic. Can someone point me into the right direction? Thanks for any help Louis -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Wed Nov 4 22:21:56 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 04 Nov 2009 22:21:56 +0100 Subject: [scilab-Users] Why is a javabundle installed along with scilab? In-Reply-To: <000f01ca5d93$b3e649f0$1bb2ddd0$@de> References: <000f01ca5d93$b3e649f0$1bb2ddd0$@de> Message-ID: <1257369716.7028.315.camel@zlarin> Le mercredi 04 novembre 2009 ? 22:13 +0100, Louis a ?crit : > I saw that it is used for demos. > > However, I want to find out the other tasks for wich java is > necesarry, > > and I did not find any documentation about that topic. > > Can someone point me into the right direction? Because the GUI, the console, the help build/browser and the graphic rendering are done in Java. Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From louis at awake24.de Wed Nov 4 22:31:53 2009 From: louis at awake24.de (Louis) Date: Wed, 4 Nov 2009 22:31:53 +0100 Subject: AW: [scilab-Users] Parsing ascii delimited data In-Reply-To: <4AF1BAE7.1020703@univ-lemans.fr> References: <004001ca5cc5$36e41370$a4ac3a50$@de> <4AF1BAE7.1020703@univ-lemans.fr> Message-ID: <001701ca5d96$3c741ac0$b55c5040$@de> aaa;1.2,3 bbb;1.1,4 ccc;1.1,6 eee;1.4,7 Von: Samuel Gougeon [mailto:Samuel.Gougeon at univ-lemans.fr] Gesendet: Mittwoch, 4. November 2009 18:33 An: users at lists.scilab.org Betreff: Re: [scilab-Users] Parsing ascii delimited data ----- Message d'origine ----- De : Louis Date : 03/11/2009 21:35: Hi everyone. I try to parse a ascii delimited file. If I try to use fscanf I get this: -->a=fscanf('data.csv', '%s;%s'); !--error 999 msprintf: Wrong number of input arguments: data doesn't fit with format. at line 51 of function sscanf called by : .../... May you attach the first lines of your data.csv, please ? Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From kirill.kirillov at gmail.com Wed Nov 4 23:03:38 2009 From: kirill.kirillov at gmail.com (Kirill Kirillov) Date: Thu, 05 Nov 2009 01:03:38 +0300 Subject: [scilab-Users] Questions about Xpad menu actions Message-ID: <1257372218.4124.14.camel@faith.universe> Hi! I've tried new Xpad editor and I have some questions about its menu actions: 1. What does "Edit -> Indent" action do? 2. What does "Document -> Colorize" action do? May be it should be implemented as check box and then it should enable/disable coloring? 3. I think that it would be more usable if "Execute -> Execute File into Scilab" action saved file automatically instead of opening two dialogs. -- Kirill Kirillov <>< From Samuel.Gougeon at univ-lemans.fr Thu Nov 5 12:54:06 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Thu, 05 Nov 2009 12:54:06 +0100 Subject: AW: [scilab-Users] Parsing ascii delimited data In-Reply-To: <001701ca5d96$3c741ac0$b55c5040$@de> References: <004001ca5cc5$36e41370$a4ac3a50$@de> <4AF1BAE7.1020703@univ-lemans.fr> <001701ca5d96$3c741ac0$b55c5040$@de> Message-ID: <4AF2BCDE.4020700@univ-lemans.fr> ----- Message d'origine ----- De : Louis Date : 04/11/2009 22:31: > > aaa;1.2,3 > > bbb;1.1,4 > > ccc;1.1,6 > > eee;1.4,7 > OK. Which is the field separator ? "," ou ";" ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierre.marechal at scilab.org Thu Nov 5 16:55:18 2009 From: pierre.marechal at scilab.org (Pierre MARECHAL) Date: Thu, 05 Nov 2009 16:55:18 +0100 Subject: Scilab 5.2 Beta available Message-ID: <4AF2F566.6010704@scilab.org> Hello, The Scilab Consortium announces the release of the first Scilab 5.2.0 Beta version. >> http://www.scilab.org/download/index_download.php?page=5.2.0-beta-1 Changes between Scilab 5.1.1 & Scilab 5.2.0 beta 1 : >> http://www.scilab.org/download/5.2.0-beta-1/CHANGES_5.2.0-beta-1.pdf The release notes : >> http://www.scilab.org/download/index_download.php?page=RELEASE_NOTES_5.2.0-beta-1 Do not hesitate to send us your comments and feedbacks on this version through the Scilab bug tracker . Pierre -- ============================================== Pierre MARECHAL Ing?nieur Support et D?veloppements ------ Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex ------ T?l : +33.1.39.63.56.81 ============================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Thu Nov 5 17:44:50 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Thu, 05 Nov 2009 17:44:50 +0100 Subject: AW: [scilab-Users] Parsing ascii delimited data In-Reply-To: <4AF2BCDE.4020700@univ-lemans.fr> References: <004001ca5cc5$36e41370$a4ac3a50$@de> <4AF1BAE7.1020703@univ-lemans.fr> <001701ca5d96$3c741ac0$b55c5040$@de> <4AF2BCDE.4020700@univ-lemans.fr> Message-ID: <4AF30102.9010102@univ-lemans.fr> ----- Message d'origine ----- De : Samuel Gougeon Date : 05/11/2009 12:54: > ----- Message d'origine ----- > De : Louis > Date : 04/11/2009 22:31: >> >> aaa;1.2,3 >> >> bbb;1.1,4 >> >> ccc;1.1,6 >> >> eee;1.4,7 >> > OK. Which is the field separator ? "," ou ";" ? ok: according to your first message, it is ";". So, just do: m=excel2sci("data.csv",";") HTH Samuel PS: excel2sci() should be named read_csv(). -------------- next part -------------- An HTML attachment was scrubbed... URL: From louis at awake24.de Thu Nov 5 18:34:07 2009 From: louis at awake24.de (Louis) Date: Thu, 5 Nov 2009 18:34:07 +0100 Subject: AW: AW: [scilab-Users] Parsing ascii delimited data In-Reply-To: <4AF2BCDE.4020700@univ-lemans.fr> References: <004001ca5cc5$36e41370$a4ac3a50$@de> <4AF1BAE7.1020703@univ-lemans.fr> <001701ca5d96$3c741ac0$b55c5040$@de> <4AF2BCDE.4020700@univ-lemans.fr> Message-ID: <002401ca5e3e$2f72dac0$8e589040$@de> ; Von: Samuel Gougeon [mailto:Samuel.Gougeon at univ-lemans.fr] Gesendet: Donnerstag, 5. November 2009 12:54 An: users at lists.scilab.org Betreff: Re: AW: [scilab-Users] Parsing ascii delimited data ----- Message d'origine ----- De : Louis Date : 04/11/2009 22:31: aaa;1.2,3 bbb;1.1,4 ccc;1.1,6 eee;1.4,7 OK. Which is the field separator ? "," ou ";" ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From louis at awake24.de Thu Nov 5 18:35:13 2009 From: louis at awake24.de (Louis) Date: Thu, 5 Nov 2009 18:35:13 +0100 Subject: AW: AW: [scilab-Users] Parsing ascii delimited data In-Reply-To: <4AF2BCDE.4020700@univ-lemans.fr> References: <004001ca5cc5$36e41370$a4ac3a50$@de> <4AF1BAE7.1020703@univ-lemans.fr> <001701ca5d96$3c741ac0$b55c5040$@de> <4AF2BCDE.4020700@univ-lemans.fr> Message-ID: <002901ca5e3e$56c7d300$04577900$@de> Sorry. I accidently pressed the send button. The separator is ;. Greets Louis Von: Samuel Gougeon [mailto:Samuel.Gougeon at univ-lemans.fr] Gesendet: Donnerstag, 5. November 2009 12:54 An: users at lists.scilab.org Betreff: Re: AW: [scilab-Users] Parsing ascii delimited data ----- Message d'origine ----- De : Louis Date : 04/11/2009 22:31: aaa;1.2,3 bbb;1.1,4 ccc;1.1,6 eee;1.4,7 OK. Which is the field separator ? "," ou ";" ? -------------- next part -------------- An HTML attachment was scrubbed... URL: From philippe.mattei at free.fr Thu Nov 5 19:56:55 2009 From: philippe.mattei at free.fr (Philippe Mattei) Date: Thu, 05 Nov 2009 19:56:55 +0100 Subject: Scilab 5.2 Beta: Metanet missing? In-Reply-To: <4AF2F566.6010704@scilab.org> References: <4AF2F566.6010704@scilab.org> Message-ID: <4AF31FF7.3000800@free.fr> Hello everyone, Is it just me, or is metanet completely missing in the Scilab 5.2 Beta release - Windows binary? (and in the nighly builds these day?) -- Philippe Mattei From stephane.mottelet at utc.fr Thu Nov 5 20:17:15 2009 From: stephane.mottelet at utc.fr (Stephane Mottelet) Date: Thu, 05 Nov 2009 20:17:15 +0100 Subject: Scilab 5.2 Beta: Still no Tcl/Tk under OSX In-Reply-To: <4AF31FF7.3000800@free.fr> References: <4AF2F566.6010704@scilab.org> <4AF31FF7.3000800@free.fr> Message-ID: <20091105201715.52362bap98c0b6bk@webmail.utc.fr> Hi all, there is still no Tcl/Tk in the OSX version. Is there any hope that Tcl/Tk will be supported on this platform before being removed from all platforms (I presume this is more or less planned for version 6 ?) Regards, S. From sylvestre.ledru at scilab.org Thu Nov 5 20:24:25 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 05 Nov 2009 20:24:25 +0100 Subject: [scilab-Users] Scilab 5.2 Beta: Still no Tcl/Tk under OSX In-Reply-To: <20091105201715.52362bap98c0b6bk@webmail.utc.fr> References: <4AF2F566.6010704@scilab.org> <4AF31FF7.3000800@free.fr> <20091105201715.52362bap98c0b6bk@webmail.utc.fr> Message-ID: <1257449065.7028.1398.camel@zlarin> Le jeudi 05 novembre 2009 ? 20:17 +0100, Stephane Mottelet a ?crit : > Hi all, > > there is still no Tcl/Tk in the OSX version. Is there > any hope that Tcl/Tk will be supported on this platform > before being removed from all platforms (I presume this > is more or less planned for version 6 ?) There are some conflicts between the way the JVM and Tk are instantiated in Scilab. The JVM needs to be launched into a dedicated thread by the CoreFoundation (Apple API). [1] This way blocks the Tk startup. We spend some time on this issue but we don't know any fix for this. Maybe there is... I will be happy to apply a patch for it. About the removal of Tcl/Tk, for now, there is no such thing planned but even if we remove it, we will continue maintaining the interface and distributing it through ATOMS (our module manager). Sylvestre [1] There is the code: modules/shell/src/c/others/initMacOSXEnv.c > > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From stephane.mottelet at utc.fr Thu Nov 5 20:38:20 2009 From: stephane.mottelet at utc.fr (Stephane Mottelet) Date: Thu, 05 Nov 2009 20:38:20 +0100 Subject: [scilab-Users] Scilab 5.2 Beta: Still no Tcl/Tk under OSX In-Reply-To: <1257449065.7028.1398.camel@zlarin> References: <4AF2F566.6010704@scilab.org> <4AF31FF7.3000800@free.fr> <20091105201715.52362bap98c0b6bk@webmail.utc.fr> <1257449065.7028.1398.camel@zlarin> Message-ID: <20091105203820.826437qacwarfu80@webmail.utc.fr> Sylvestre Ledru a ?crit : > Le jeudi 05 novembre 2009 ? 20:17 +0100, Stephane Mottelet a ?crit : >> Hi all, >> >> there is still no Tcl/Tk in the OSX version. Is there >> any hope that Tcl/Tk will be supported on this platform >> before being removed from all platforms (I presume this >> is more or less planned for version 6 ?) > There are some conflicts between the way the JVM and Tk are instantiated > in Scilab. > The JVM needs to be launched into a dedicated thread by the > CoreFoundation (Apple API). [1] This way blocks the Tk startup. > We spend some time on this issue but we don't know any fix for this. > Maybe there is... I will be happy to apply a patch for it. > > About the removal of Tcl/Tk, for now, there is no such thing planned but > even if we remove it, we will continue maintaining the interface and > distributing it through ATOMS (our module manager). Well, I hope that the native Scilab uicontrols will one day be able to replace all the Tk stuff ! S. From sumit.adhikari at gmail.com Fri Nov 6 07:26:42 2009 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Fri, 6 Nov 2009 11:56:42 +0530 Subject: [Scilab-Dev] Scilab 5.2 Beta available In-Reply-To: <4AF2F566.6010704@scilab.org> References: <4AF2F566.6010704@scilab.org> Message-ID: Hello, Do this new version scilab requires GLIBC_2.7 ? It means we need to upgrade our OS to use it! /user/sa1/tools/scilab-5.2.0-beta-1/bin/scilab-bin: /lib64/tls/libc.so.6: version `GLIBC_2.7' not found (required by /user/sa1/tools/scilab-5.2.0-beta-1/lib/thirdparty/libhdf5.so.6) Regards, Sumit On Thu, Nov 5, 2009 at 9:25 PM, Pierre MARECHAL wrote: > Hello, > > The Scilab Consortium announces the release of the first Scilab 5.2.0 Beta > version. > >> http://www.scilab.org/download/index_download.php?page=5.2.0-beta-1 > > Changes between Scilab 5.1.1 & Scilab 5.2.0 beta 1 : > >> http://www.scilab.org/download/5.2.0-beta-1/CHANGES_5.2.0-beta-1.pdf > > The release notes : > >> > > http://www.scilab.org/download/index_download.php?page=RELEASE_NOTES_5.2.0-beta-1 > > Do not hesitate to send us your comments and feedbacks on this version > through the Scilab bug tracker . > > Pierre > > -- > ============================================== > Pierre MARECHAL > Ing?nieur Support et D?veloppements > ------ > Consortium Scilab > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > ------ > T?l : +33.1.39.63.56.81 > ============================================== > > -- -------------------------------------------- Sumit Adhikari System Design Engineer austriamicrosystems AG Business Unit : Automotive Mob : 00-91-9885271710/00-91-9000161710 -------------- next part -------------- An HTML attachment was scrubbed... URL: From pierre.marechal at scilab.org Fri Nov 6 08:44:40 2009 From: pierre.marechal at scilab.org (Pierre MARECHAL) Date: Fri, 06 Nov 2009 08:44:40 +0100 Subject: [scilab-Users] Re: [Scilab-Dev] Scilab 5.2 Beta available In-Reply-To: References: <4AF2F566.6010704@scilab.org> Message-ID: <4AF3D3E8.2010506@scilab.org> Hello, A bug has been reported. >> http://bugzilla.scilab.org/show_bug.cgi?id=5221 Pierre Sumit Adhikari a ?crit : > Hello, > Do this new version scilab requires GLIBC_2.7 ? It means we need to > upgrade our OS to use it! > /user/sa1/tools/scilab-5.2.0-beta-1/bin/scilab-bin: > /lib64/tls/libc.so.6: version `GLIBC_2.7' not found (required by > /user/sa1/tools/scilab-5.2.0-beta-1/lib/thirdparty/libhdf5.so.6) > > Regards, > Sumit > > > On Thu, Nov 5, 2009 at 9:25 PM, Pierre MARECHAL > > wrote: > > Hello, > > The Scilab Consortium announces the release of the first Scilab > 5.2.0 Beta version. > >> http://www.scilab.org/download/index_download.php?page=5.2.0-beta-1 > > Changes between Scilab 5.1.1 & Scilab 5.2.0 beta 1 : > >> > http://www.scilab.org/download/5.2.0-beta-1/CHANGES_5.2.0-beta-1.pdf > > The release notes : > >> > http://www.scilab.org/download/index_download.php?page=RELEASE_NOTES_5.2.0-beta-1 > > Do not hesitate to send us your comments and feedbacks on this > version through the Scilab bug tracker > . > > Pierre > > -- > ============================================== > Pierre MARECHAL > Ing?nieur Support et D?veloppements > ------ > Consortium Scilab > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > ------ > T?l : +33.1.39.63.56.81 > ============================================== > > > > > > -- > > -------------------------------------------- > Sumit Adhikari > System Design Engineer > austriamicrosystems AG > Business Unit : Automotive > Mob : 00-91-9885271710/00-91-9000161710 -- ============================================== Pierre MARECHAL Ing?nieur Support et D?veloppements ------ Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex ------ T?l : +33.1.39.63.56.81 ============================================== -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Fri Nov 6 13:06:33 2009 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Fri, 06 Nov 2009 13:06:33 +0100 Subject: [Scilab-Dev] Scilab 5.2 Beta available In-Reply-To: References: <4AF2F566.6010704@scilab.org> Message-ID: <4AF41149.5090104@utc.fr> Hi all, just a question/remark. Since version 5, we have a powerfull rendering engine for graphics, but I still do not understand one particular point about interpolated shading. I know that Scilab still works with an indexed color scheme, but why interpolated shading still works by cuting triangles into constant color patches ? This generates artifacts when exporting figure to ps,pdf,svg,... I think that JoGL should be able to use hardware bilinear shading, even with indexed colors (instead of TrueColor). S. From pierre.lando at scilab.org Fri Nov 6 15:01:04 2009 From: pierre.lando at scilab.org (Pierre LANDO) Date: Fri, 06 Nov 2009 15:01:04 +0100 Subject: [scilab-Users] Re: [Scilab-Dev] Scilab 5.2 Beta available In-Reply-To: <4AF41149.5090104@utc.fr> References: <4AF2F566.6010704@scilab.org> <4AF41149.5090104@utc.fr> Message-ID: <4AF42C20.4020409@scilab.org> St?phane Mottelet a ?crit : > Hi all, > > just a question/remark. Since version 5, we have a powerfull rendering > engine for graphics, but I still do not understand one particular point > about interpolated shading. I know that Scilab still works with an > indexed color scheme, but why interpolated shading still works by > cuting triangles into constant color patches ? Maybe for being compatible with scilab 4, but I'm not sure at all... > This generates artifacts when exporting figure to ps,pdf,svg,... You don't have the same result because it's not JoGL who make the exported files (in vectorial format). You better should be happy to have something viewable when you export in vectorial format :o) (see http://bugzilla.scilab.org/show_bug.cgi?id=4866). > I think that JoGL should be able to use hardware bilinear shading, > even with indexed colors (instead of TrueColor). You are right, (modulo drivers problems), actually the 'indexed color' is see by JoGL as a 1D-texture, nothing simplest as activating bilinear shading for the OpenGL texture. But, it's look like that some people don't want to see in a graphic a color who doesn't exist in the colormap (very old trauma related to VGA display and is 0x13 mode). I just hope one day scilab will use 'TrueColor' (as you say)... -- ------------------------- Pierre LANDO Ing?nieur de d?veloppement ------------------------- Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France T?l. : +33.1.39.63.58.21 From stephane.mottelet at utc.fr Fri Nov 6 15:24:21 2009 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Fri, 06 Nov 2009 15:24:21 +0100 Subject: [scilab-Users] Re: [Scilab-Dev] Scilab 5.2 Beta available In-Reply-To: <4AF42C20.4020409@scilab.org> References: <4AF2F566.6010704@scilab.org> <4AF41149.5090104@utc.fr> <4AF42C20.4020409@scilab.org> Message-ID: <4AF43195.4090602@utc.fr> Pierre LANDO a ?crit : > St?phane Mottelet a ?crit : >> Hi all, >> >> just a question/remark. Since version 5, we have a powerfull rendering >> engine for graphics, but I still do not understand one particular point >> about interpolated shading. I know that Scilab still works with an >> indexed color scheme, but why interpolated shading still works by >> cuting triangles into constant color patches ? > > Maybe for being compatible with scilab 4, but I'm not sure at all... > >> This generates artifacts when exporting figure to ps,pdf,svg,... > You don't have the same result because it's not JoGL who make the > exported files (in vectorial format). > You better should be happy to have something viewable when you export > in vectorial format :o) Well, I thought that most "modern" vectorial formats (pdf, svg,...) implemented natively interpolated color patches, but after a quick search on the net, I realized that these format only take into account gradients. At least with svg, this could be a way to emulate interpolated shading for triangles. > (see http://bugzilla.scilab.org/show_bug.cgi?id=4866). > >> I think that JoGL should be able to use hardware bilinear shading, >> even with indexed colors (instead of TrueColor). > You are right, (modulo drivers problems), actually the 'indexed > color' is see by JoGL as a 1D-texture, nothing simplest as activating > bilinear shading for the OpenGL texture. > > But, it's look like that some people don't want to see in a graphic a > color who doesn't exist in the colormap (very old trauma related to > VGA display and is 0x13 mode). Ok, but, Matlab has no problem to render interpolated colors with an indexed color visual. This should be doable in Scilab ? S. From stephane.mottelet at utc.fr Fri Nov 6 15:30:40 2009 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Fri, 06 Nov 2009 15:30:40 +0100 Subject: [scilab-Users] Re: [Scilab-Dev] Scilab 5.2 Beta available In-Reply-To: <4AF43195.4090602@utc.fr> References: <4AF2F566.6010704@scilab.org> <4AF41149.5090104@utc.fr> <4AF42C20.4020409@scilab.org> <4AF43195.4090602@utc.fr> Message-ID: <4AF43310.30609@utc.fr> St??phane Mottelet a ?crit : > Pierre LANDO a ?crit : >> St?phane Mottelet a ?crit : >>> Hi all, >>> >>> just a question/remark. Since version 5, we have a powerfull rendering >>> engine for graphics, but I still do not understand one particular point >>> about interpolated shading. I know that Scilab still works with an >>> indexed color scheme, but why interpolated shading still works by >>> cuting triangles into constant color patches ? >> >> Maybe for being compatible with scilab 4, but I'm not sure at all... >> >>> This generates artifacts when exporting figure to ps,pdf,svg,... >> You don't have the same result because it's not JoGL who make the >> exported files (in vectorial format). >> You better should be happy to have something viewable when you export >> in vectorial format :o) > Well, I thought that most "modern" vectorial formats (pdf, svg,...) > implemented natively interpolated color patches, but after a quick > search on > the net, I realized that these format only take into account > gradients. At least > with svg, this could be a way to emulate interpolated shading for > triangles. People have already given the answer : http://www.svgopen.org/2005/papers/Converting3DFaceToSVG/index.html#S3. S. > >> (see http://bugzilla.scilab.org/show_bug.cgi?id=4866). >> >>> I think that JoGL should be able to use hardware bilinear shading, >>> even with indexed colors (instead of TrueColor). >> You are right, (modulo drivers problems), actually the 'indexed >> color' is see by JoGL as a 1D-texture, nothing simplest as activating >> bilinear shading for the OpenGL texture. >> >> But, it's look like that some people don't want to see in a graphic a >> color who doesn't exist in the colormap (very old trauma related to >> VGA display and is 0x13 mode). > Ok, but, Matlab has no problem to render interpolated colors with an > indexed color visual. This should be doable in Scilab ? > > S. > > From Samuel.Gougeon at univ-lemans.fr Fri Nov 6 21:21:20 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Fri, 06 Nov 2009 21:21:20 +0100 Subject: [scilab-Users] getversion() & getversion('scilab','string_info') In-Reply-To: <4AF1BE95.6090907@univ-lemans.fr> References: <4AF07802.7090908@univ-lemans.fr> <1257290730.14255.3323.camel@zlarin> <4AF18730.1070401@univ-lemans.fr> <000a01ca5d57$a4336510$ec9a2f30$@cornet@scilab.org> <4AF1BE95.6090907@univ-lemans.fr> Message-ID: <20091106212120.15236zcwfsn0xxq8@webmail1.univ-lemans.fr> Samuel Gougeon a ?crit?: > ----- Message d'origine ----- > De : Allan CORNET > Date : 04/11/2009 15:03: >> >> Hi, >> >> Maybe [a,b] = getversion() is enough to know date ? >> >> -->[a,b] = getversion() >> >> b = >> >> !VC++ tk modelicac atlas release Nov 2 2009 10:59:46 ! >> >> a = >> >> scilab-master-1257152676 > May we assume that the Modelicac atlas release date is > and will be always the same than the scilab's one ? ok, i have got it: The release date is the scilab's one, not the library(ies) one. The Description section in the getversion() help page could be a bit more explicit. It says: return .../... in opts build options which can be used to determine if scilab has been build with pvm, tk or modelicac. It could be return .../... in opts build options which can be used to determine if scilab has been built with pvm, tk or modelicac, as well as the Scilab's release date (in human readable format). Regards SG From sbihorel at gmail.com Sat Nov 7 13:31:49 2009 From: sbihorel at gmail.com (=?ISO-8859-1?Q?S=E9bastien_Bihorel?=) Date: Sat, 7 Nov 2009 07:31:49 -0500 Subject: Emulate ismember in scilab Message-ID: Dear Scilab users, Is there an easy method to emulate the Matlab ismember function to match numerical vectors to one another? I've tried several things with intersect but it does not seem to give consistent results. Here is a section of the Matlab help about ismember: [tf, loc] = ismember(A, S, ...) returns an array loc containing the *highest *index in S for each element in A that is a member of S. Here is an example of Scilab code that I tried a = [5 3 1 7 2 9 2 6 4 1 3 6 8 0 1 4]; b=1:5; [v,ka,kb]=intersect(a,b,'c'); Surprisingly, ka is a mix of lowest and highst indexes... Any help would be appreciated. Sebastien -------------- next part -------------- An HTML attachment was scrubbed... URL: From pp.tomasz.gajewski at gmail.com Sat Nov 7 21:49:48 2009 From: pp.tomasz.gajewski at gmail.com (Tomasz Gajewski) Date: Sat, 7 Nov 2009 21:49:48 +0100 Subject: Question about execution scipad file Message-ID: <2503f40a0911071249i27a65c8dpc9e9e26d4084bca1@mail.gmail.com> Hello, I have problem with Scilab, is it possible to launch scilab's script without command "exec" or option "Evaluate selection"? With Greeatings Tomasz Gajewski -------------- next part -------------- An HTML attachment was scrubbed... URL: From fvogelnew1 at free.fr Sun Nov 8 10:17:35 2009 From: fvogelnew1 at free.fr (=?ISO-8859-1?Q?Fran=E7ois_Vogel?=) Date: Sun, 08 Nov 2009 10:17:35 +0100 Subject: [scilab-Users] Question about execution scipad file In-Reply-To: <2503f40a0911071249i27a65c8dpc9e9e26d4084bca1@mail.gmail.com> References: <2503f40a0911071249i27a65c8dpc9e9e26d4084bca1@mail.gmail.com> Message-ID: <4AF68CAF.5030906@free.fr> Tomasz Gajewski said on 07/11/2009 21:49: > I have problem with Scilab, is it possible to launch scilab's script > without command "exec" or option "Evaluate selection"? Not sure I understand what you mean. exec is *the* way of launching scripts from the console, and Scipad uses it in its menues as well despite you don't see it. You would like to launch a script without using exec? Why this? Francois From jewu at gmx.net Sun Nov 8 10:47:03 2009 From: jewu at gmx.net (Jens Wunderlich) Date: Sun, 08 Nov 2009 10:47:03 +0100 Subject: [scilab-Users] Question about execution scipad file In-Reply-To: <4AF68CAF.5030906@free.fr> References: <2503f40a0911071249i27a65c8dpc9e9e26d4084bca1@mail.gmail.com> <4AF68CAF.5030906@free.fr> Message-ID: <4AF69397.6030401@gmx.net> Maybe Tomasz is looking for a function we had with Scipad but was removed with Xpad: In Scipad there was a short cut to execute the active file in Scilab (Ctrl-l). In Xpad this short cut is assigned to switch on/off line numbering. Would be good to have a short cut for executing the file again. It's rather inconvenient to have to go to the menu first and select "execute in Scilab". There is another short cut missing: in Scipad Ctrl-F1 opened Scilab's help with the word below the cursor. This was very convenient. Jens ----------------------- Fran?ois Vogel wrote: > Tomasz Gajewski said on 07/11/2009 21:49: >> I have problem with Scilab, is it possible to launch scilab's script >> without command "exec" or option "Evaluate selection"? > > Not sure I understand what you mean. > > exec is *the* way of launching scripts from the console, and Scipad > uses it in its menues as well despite you don't see it. > > You would like to launch a script without using exec? Why this? > > Francois > From sylvestre.ledru at scilab.org Sun Nov 8 11:37:49 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sun, 08 Nov 2009 11:37:49 +0100 Subject: [scilab-Users] Question about execution scipad file In-Reply-To: <4AF69397.6030401@gmx.net> References: <2503f40a0911071249i27a65c8dpc9e9e26d4084bca1@mail.gmail.com> <4AF68CAF.5030906@free.fr> <4AF69397.6030401@gmx.net> Message-ID: <1257676669.7028.7756.camel@zlarin> Le dimanche 08 novembre 2009 ? 10:47 +0100, Jens Wunderlich a ?crit : > Maybe Tomasz is looking for a function we had with Scipad but was > removed with Xpad: > In Scipad there was a short cut to execute the active file in Scilab > (Ctrl-l). In Xpad this short cut is assigned to switch on/off line > numbering. Would be good to have a short cut for executing the file > again. It's rather inconvenient to have to go to the menu first and > select "execute in Scilab". > There is another short cut missing: in Scipad Ctrl-F1 opened Scilab's > help with the word below the cursor. This was very convenient. Indeed. I just reported these two issues: http://bugzilla.scilab.org/show_bug.cgi?id=5270 http://bugzilla.scilab.org/show_bug.cgi?id=5269 Thanks for the feedback Sylvestre > Jens > > ----------------------- > Fran?ois Vogel wrote: > > Tomasz Gajewski said on 07/11/2009 21:49: > >> I have problem with Scilab, is it possible to launch scilab's script > >> without command "exec" or option "Evaluate selection"? > > > > Not sure I understand what you mean. > > > > exec is *the* way of launching scripts from the console, and Scipad > > uses it in its menues as well despite you don't see it. > > > > You would like to launch a script without using exec? Why this? > > > > Francois > > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From pomchip at free.fr Sun Nov 8 12:29:01 2009 From: pomchip at free.fr (=?ISO-8859-1?Q?S=E9bastien_Bihorel?=) Date: Sun, 8 Nov 2009 06:29:01 -0500 Subject: Emulate Matlab's ismember function in Scilab Message-ID: Dear Scilab users, Is there an easy method to emulate the Matlab ismember function to match numerical vectors to one another? I've tried several things with intersect but it does not seem to give consistent results. Here is a section of the Matlab help about ismember: [tf, loc] = ismember(A, S, ...) returns an array loc containing the *highest *index in S for each element in A that is a member of S. Here is an example of Scilab code that I tried a = [5 3 1 7 2 9 2 6 4 1 3 6 8 0 1 4]; b=1:5; [v,ka,kb]=intersect(a,b,'c'); Surprisingly, ka is a mix of low, middle or high indexes... There must a logic behind that, but I do not see the pattern. I am looking to extract only the highest indexes. Any help would be appreciated. Sebastien -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Mon Nov 9 18:48:47 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Mon, 09 Nov 2009 18:48:47 +0100 Subject: Atoms categories Message-ID: <20091109184847.33022nhcwvsplkw0@webmail2.univ-lemans.fr> Hello, Beside the compilation chain, one of the great new features of the new online toolboxes management system ATOMS is the ability to tag each toolbox with more than one category (see the "New toolbox" interface), and to use subcategories. However, they are a number of things that, IMO, would be worthwhile to tune for initializing the system before it gets crowdy. I would like to discuss them here, before any possible bug/request report. First, the "New toolbox" interface allows /any user/ to create a new category or sub-category. This feature sounds very hasardous. IMO, it should be a webmaster privilege, after discusion of categories here on users@ and with internal Consortium agreement. One may fear that indexation of modules in categories turns quite quickly messy ; because it would then be complicated to correct it afterwards, we should avoid this situation without waiting. A messy tool is no tool, so ignoring past efforts of everyone for keeping clear categories. Moereover, i do not feel really convinced by the new list of 17 defined categories and 9 subcategories (see list on page http://atoms.scilab.org/. Former page: http://www.scilab.org/contrib/index_contrib.php?page=download) An alternative is proposed herebelow. Leading numbers are references for the following discussion. (1) * Xcos (2) * Visualisation (graphics) (3) * User Interfaces (UI) - Editor styles - Graphical UI - Browsers - Other (4) * Instruments control - Data acquisition (drivers) - Remote control (drivers) - Real-time & misc. (5) * Data handling & processing - General - Strings & texts - Image - Sound - Databases (6) * Mathematics (7) * Advanced tools - Optimization - Modeling & control - Finite elements - Graphs & Networks - Advanced processing - Other (8) * Applied tools - Physics - Biology - Economy - Other (9) * System & dev - Operating Systems - File management - InterSoft - Parallelization - Other (10)* Education (11)* Documentation - Manuals - Tutorials & demos - Tools for docs ----- (1) Xcos: Since multi-tagging is possible, a "Manual" sub-category is useless (tagging Xcos + Manual) (2) Visualisation instead of Graphics, since GUI is also related to Graphics, while a specific box may be created for UIs. So, for GUI, Visualisation AND UI will be tagged. (3) UI. Not sure that sub-categories would be useful here. List given for mind mapping. (4) Instruments control: For uploading drivers for detectors & actuators. Tools ror instrumental communication protocol shall go to Realtime & misc box (5) * Data handling & processing: Sound, Strings & text processing shoult not be forgotten. (6) * Mathematics: Obviously, for general maths tools: Statistics, linear algebra, differential calculus, symbolic, geometry, topology, etc. Sub-categories might be defined afterwards, or not. (7) * Advanced tools: Neural networks => Advanced processing. Genetic algorithms & Simul. annealing => Optimization. (Why are there presently 5 sub-categories for Optim box ??? Will long stay with only few items for each one). (8) * Applied tools: Additional sub-categories might be defined later, with respect to the number and color of the Other-box' population. e.g., thinking about "Humanities" (Automatic language & speach processing => Other). (9) * System & dev: OS category shall not specifically target Windows, and shall become a sub-category here. "Parallelization" and "Benchmarks & Tests" might be skipped to join "Other". (10)* Education: Alternative: Could be considered as a sub-category of the "Applied tools" main box. (11)* Documentation: Not only manuals! Sub-categories are compulsory, because of language diversity! Filter on the language could be implemented later. What about the compilation chain here ? In the "New toolbox" interface, a language(s) field should be proposed, at least for modules of this box. Discussion and comments are welcome. Cheers Samuel From sylvestre.ledru at scilab.org Mon Nov 9 18:57:32 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 09 Nov 2009 18:57:32 +0100 Subject: [scilab-Users] Atoms categories In-Reply-To: <20091109184847.33022nhcwvsplkw0@webmail2.univ-lemans.fr> References: <20091109184847.33022nhcwvsplkw0@webmail2.univ-lemans.fr> Message-ID: <1257789452.11928.7.camel@korcula.inria.fr> Le lundi 09 novembre 2009 ? 18:48 +0100, Samuel Gougeon a ?crit : > Hello, > > Beside the compilation chain, one of the great new features > of the new online toolboxes management system ATOMS is the ability > to tag each toolbox with more than one category (see the "New toolbox" > interface), and to use subcategories. > However, they are a number of things that, IMO, would be worthwhile > to tune for initializing the system before it gets crowdy. I would > like to discuss them here, before any possible bug/request report. [...] > Discussion and comments are welcome. Please move this discussion on dev at lists.scilab.org I received some complains of lambda users that are bothered by some developer discussions happening on the users ML and I believe it is the case here. Thanks, Sylvestre > Cheers > Samuel > > > -- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From mabille at supagro.inra.fr Tue Nov 10 09:56:38 2009 From: mabille at supagro.inra.fr (=?ISO-8859-1?Q?Fr=E9d=E9ric_Mabille?=) Date: Tue, 10 Nov 2009 09:56:38 +0100 Subject: external call Message-ID: Hi I actually try to execute an external call in Scilab (mac os), with no success ^. My programm produce a 'myfile.pov' file (this is a text file) used by the ray tracer povray. Actually, i used on a terminal the synthax >povray myfile.pov to produce a myfile.png image. I would like to include this commande in my scilab file. i've try : >host('povray myfile.pov') and >unix('povray myfile.pov') but no-one give me the myfile.png result. Could someone give me idea ? thx Fred From oreske at gmail.com Tue Nov 10 10:06:54 2009 From: oreske at gmail.com (R.Sathish Kumar) Date: Tue, 10 Nov 2009 14:36:54 +0530 Subject: [scilab-Users] external call In-Reply-To: References: Message-ID: hi, Try including the full path to myfile.pov R.Sathish Kumar 2009/11/10 Fr?d?ric Mabille : > Hi > I actually try to execute an external call in Scilab (mac os), with no > success ^. > > My programm produce a 'myfile.pov' file (this is a text file) used by the > ray tracer povray. > Actually, i used on a terminal the synthax >>povray myfile.pov > to produce a myfile.png image. > > I would like to include this commande in my scilab file. > i've try : >>host('povray myfile.pov') > and >>unix('povray myfile.pov') > > but no-one give me the myfile.png result. > Could someone give me idea ? > > thx > Fred > > > From yann.collette at scilab.org Tue Nov 10 10:27:02 2009 From: yann.collette at scilab.org (Collette yann) Date: Tue, 10 Nov 2009 10:27:02 +0100 Subject: [scilab-Users] external call In-Reply-To: References: Message-ID: <4AF931E6.3070607@scilab.org> You can try the unix_g function. If an error happens, it will be redirected into a scilab variable. help unix_g YC Fr?d?ric Mabille a ?crit : > Hi > I actually try to execute an external call in Scilab (mac os), with no > success ^. > > My programm produce a 'myfile.pov' file (this is a text file) used by > the ray tracer povray. > Actually, i used on a terminal the synthax > >povray myfile.pov > to produce a myfile.png image. > > I would like to include this commande in my scilab file. > i've try : > >host('povray myfile.pov') > and > >unix('povray myfile.pov') > > but no-one give me the myfile.png result. > Could someone give me idea ? > > thx > Fred > > From mathieu.dubois at limsi.fr Tue Nov 10 19:03:45 2009 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Tue, 10 Nov 2009 19:03:45 +0100 Subject: How to put " in a string? Message-ID: <4AF9AB01.5050701@limsi.fr> Hello, For some reasons I would like to put a " character in a string. Is there an escape sequence to do that? Thanks in advance, Mathieu From osvaldo at dcc.ufmg.br Tue Nov 10 19:23:09 2009 From: osvaldo at dcc.ufmg.br (Osvaldo Sergio Farhat de Carvalho) Date: Tue, 10 Nov 2009 16:23:09 -0200 Subject: [scilab-Users] How to put " in a string? In-Reply-To: <4AF9AB01.5050701@limsi.fr> References: <4AF9AB01.5050701@limsi.fr> Message-ID: Quite simple: -->s = "My ""string""" s = My "string" Osvaldo De: Mathieu Dubois Para: users at lists.scilab.org Data: 10/11/2009 16:04 Assunto: [scilab-Users] How to put " in a string? Hello, For some reasons I would like to put a " character in a string. Is there an escape sequence to do that? Thanks in advance, Mathieu -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: graycol.gif Type: image/gif Size: 105 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: ecblank.gif Type: image/gif Size: 45 bytes Desc: not available URL: From ajaramillopalma at gmail.com Tue Nov 10 19:10:40 2009 From: ajaramillopalma at gmail.com (Alfredo Jaramillo) Date: Tue, 10 Nov 2009 15:10:40 -0300 Subject: [scilab-Users] How to put " in a string? In-Reply-To: <4AF9AB01.5050701@limsi.fr> References: <4AF9AB01.5050701@limsi.fr> Message-ID: Hi Mathieu, I try this -->str1 str1 = hi! -->str2="'"" str2 = " -->sprintf("%s%s",str1,str2) ans = hi!" hi!"more Where str2 is ' " (semicolon and colon) Saludos Alfredo Jaramillo Palma Estudiante Ing. Matem?tica Universidad De La Frontera IX Regi?n, Chile On Tue, Nov 10, 2009 at 3:03 PM, Mathieu Dubois wrote: > Hello, > > For some reasons I would like to put a " character in a string. > > Is there an escape sequence to do that? > > Thanks in advance, > Mathieu > -------------- next part -------------- An HTML attachment was scrubbed... URL: From Samuel.Gougeon at univ-lemans.fr Tue Nov 10 23:27:48 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Tue, 10 Nov 2009 23:27:48 +0100 Subject: [scilab-Users] Emulate Matlab's ismember function in Scilab In-Reply-To: References: Message-ID: <4AF9E8E4.4040303@univ-lemans.fr> Hi, ----- Message d'origine ----- De : S?bastien Bihorel Date : 08/11/2009 12:29: > Dear Scilab users, > > Is there an easy method to emulate the Matlab ismember function to > match numerical vectors to one another? I've tried several things > with intersect but it does not seem to give consistent results. > > Here is a section of the Matlab help about ismember: > [tf, loc] = ismember(A, S, ...) returns an array loc containing the > *highest *index in S for each element in A that is a member of S. > > > Here is an example of Scilab code that I tried > a = [5 3 1 7 2 9 2 6 4 1 3 6 8 0 1 4]; > b=1:5; > [v,ka,kb]=intersect(a,b,'c'); > > Surprisingly, ka is a mix of low, middle or high indexes... There must > a logic behind that, but I do not see the pattern. > > > I am looking to extract only the highest indexes. Any help would be > appreciated. > > Sebastien Here is a function that works like Matlab for giving loc : ----------- function loc = ismember(A,S, highest) // loc = ismember(A, S, highest) // // A : Matrix of booleans, integers, reals, complexes, polynomes // S : Matrix of same datatype than S // highest : Scalar boolean // // ismember() returns a matrix loc of A's format. loc(i,j) = linear // index in S of the first (highest ==%F) | last (highest==%T) // occurrence of A(i,j). Zero is returned in A(i,j) if no occurrence is found // LA=length(A); LS=length(S); A2=matrix(A,LA,1)*ones(1,LS) ; S2=(matrix(S,LS,1)*ones(1,LA)).' ; d01 =double(A2==S2); S_ind=ones(LA,1)*(1:LS); tmp=d01.*S_ind; if highest, tmp2=max(tmp,'c'); else tmp(tmp==0)=%inf; // removes zeros as min values tmp2=min(tmp,'c'); tmp2(tmp2==%inf)=0; end loc=matrix(tmp2,size(A)); endfunction -------- ismember() works with any datatype, as long as elements can be multiplied by reals and compared each other with "==". A test with reals gives: -->A,S A = 7. 3. 2. 0. 8. 1. S = 5. 8. 0. 4. 3. 4. 7. 7. 3. 6. 6. 2. 7. 5. 5. 8. -->ismember(A,S,%f) ans = 4. 2. 15. 9. 5. 0. -->ismember(A,S,%t) ans = 14. 3. 15. 9. 16. 0. HTH, Regards Samuel -------------- next part -------------- An HTML attachment was scrubbed... URL: From pomchip at free.fr Wed Nov 11 01:27:21 2009 From: pomchip at free.fr (=?ISO-8859-1?Q?S=E9bastien_Bihorel?=) Date: Tue, 10 Nov 2009 19:27:21 -0500 Subject: [scilab-Users] Emulate Matlab's ismember function in Scilab In-Reply-To: <4AF9E8E4.4040303@univ-lemans.fr> References: <4AF9E8E4.4040303@univ-lemans.fr> Message-ID: Thanks your very much Samuel, This works such fine for the application I intend to use this code for. I assume that you are the author of this code, but, for some copyright issues, I would like that you confirm this point to me. If indeed you are, would you authorize me to use (and/or modify) your code as part of an application distributed under a GNU license? To preserve appropriate copyrights, I could either add your name and affiliation in a comment section at the beginning of the .sci file or you could maybe create such an .sci and sent it to me at your convenience. Please, let me know what you would rather do. Sebastien On Tue, Nov 10, 2009 at 5:27 PM, Samuel Gougeon < Samuel.Gougeon at univ-lemans.fr> wrote: > Hi, > > ----- Message d'origine ----- > De : S?bastien Bihorel > Date : 08/11/2009 12:29: > > Dear Scilab users, > > Is there an easy method to emulate the Matlab ismember function to match > numerical vectors to one another? I've tried several things with intersect > but it does not seem to give consistent results. > > Here is a section of the Matlab help about ismember: > [tf, loc] = ismember(A, S, ...) returns an array loc containing the *highest > *index in S for each element in A that is a member of S. > > > Here is an example of Scilab code that I tried > a = [5 3 1 7 2 9 2 6 4 1 3 6 8 0 1 4]; > b=1:5; > [v,ka,kb]=intersect(a,b,'c'); > > Surprisingly, ka is a mix of low, middle or high indexes... There must a > logic behind that, but I do not see the pattern. > > > I am looking to extract only the highest indexes. Any help would be > appreciated. > > Sebastien > > Here is a function that works like Matlab for giving loc : > ----------- > function loc = ismember(A,S, highest) > // loc = ismember(A, S, highest) > // > // A : Matrix of booleans, integers, reals, complexes, polynomes > // S : Matrix of same datatype than S > // highest : Scalar boolean > // > // ismember() returns a matrix loc of A's format. loc(i,j) = linear > // index in S of the first (highest ==%F) | last (highest==%T) > // occurrence of A(i,j). Zero is returned in A(i,j) if no occurrence is > found > // > LA=length(A); > LS=length(S); > A2=matrix(A,LA,1)*ones(1,LS) ; > S2=(matrix(S,LS,1)*ones(1,LA)).' ; > d01 =double(A2==S2); > S_ind=ones(LA,1)*(1:LS); > tmp=d01.*S_ind; > if highest, > tmp2=max(tmp,'c'); > else > tmp(tmp==0)=%inf; // removes zeros as min values > tmp2=min(tmp,'c'); > tmp2(tmp2==%inf)=0; > end > loc=matrix(tmp2,size(A)); > endfunction > -------- > ismember() works with any datatype, as long as elements > can be multiplied by reals and compared each other with "==". > > A test with reals gives: > -->A,S > A = > > 7. 3. > 2. 0. > 8. 1. > S = > > 5. 8. 0. 4. > 3. 4. 7. 7. > 3. 6. 6. 2. > 7. 5. 5. 8. > > -->ismember(A,S,%f) > ans = > > 4. 2. > 15. 9. > 5. 0. > > -->ismember(A,S,%t) > ans = > > 14. 3. > 15. 9. > 16. 0. > > HTH, > > Regards > Samuel > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From mathieu.dubois at limsi.fr Wed Nov 11 14:10:00 2009 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Wed, 11 Nov 2009 14:10:00 +0100 Subject: [scilab-Users] How to put " in a string? In-Reply-To: <4AF9AB01.5050701@limsi.fr> References: <4AF9AB01.5050701@limsi.fr> Message-ID: <4AFAB7A8.7060200@limsi.fr> Dear Osvaldo, Dear Alfredo, Thanks for your reply. I don't know why I didn't find the solution. Saludos, Sauda??es, Mathieu From pomchip at free.fr Wed Nov 11 14:32:23 2009 From: pomchip at free.fr (=?ISO-8859-1?Q?S=E9bastien_Bihorel?=) Date: Wed, 11 Nov 2009 08:32:23 -0500 Subject: Difference in calculations between Matlab and Scilab Message-ID: Hi I would be interested knowing why Scilab (version beta 5.2) and Matlab (7.6.0) do not provide the same results for a '1/x' calculation (with x being a matrix of real numbers), and how to reproduce the results of Matlab in Scilab for this particular case. Thank you Sebastien %%%%%%Matlab >> X=1:5 X = 1 2 3 4 5 >> 1./X ans = 1.0000 0.5000 0.3333 0.2500 0.2000 /////////////// Scilab -->X=1:5 X = 1. 2. 3. 4. 5. -->1./X ans = 0.0181818 0.0363636 0.0545455 0.0727273 0.0909091 -------------- next part -------------- An HTML attachment was scrubbed... URL: From yann.collette at scilab.org Wed Nov 11 16:59:35 2009 From: yann.collette at scilab.org (Yann Collette) Date: Wed, 11 Nov 2009 16:59:35 +0100 Subject: [scilab-Users] Difference in calculations between Matlab and Scilab In-Reply-To: References: Message-ID: <4AFADF67.20600@scilab.org> Hello, Classical mistake: Try (1)./X the . under matlab has not the same priority as the scilab one. YC S?bastien Bihorel a ?crit : > Hi > > I would be interested knowing why Scilab (version beta 5.2) and Matlab > (7.6.0) do not provide the same results for a '1/x' calculation (with > x being a matrix of real numbers), and how to reproduce the results of > Matlab in Scilab for this particular case. > > Thank you > > Sebastien > > %%%%%%Matlab > > >> X=1:5 > > X = > > 1 2 3 4 5 > > >> 1./X > > ans = > > 1.0000 0.5000 0.3333 0.2500 0.2000 > > > /////////////// Scilab > > -->X=1:5 > X = > > 1. 2. 3. 4. 5. > > -->1./X > ans = > > 0.0181818 > 0.0363636 > 0.0545455 > 0.0727273 > 0.0909091 From Samuel.Gougeon at univ-lemans.fr Wed Nov 11 18:03:11 2009 From: Samuel.Gougeon at univ-lemans.fr (Samuel Gougeon) Date: Wed, 11 Nov 2009 18:03:11 +0100 Subject: [scilab-Users] Emulate Matlab's ismember function in Scilab In-Reply-To: References: <4AF9E8E4.4040303@univ-lemans.fr> Message-ID: <20091111180311.85165pqz2uldvurk@webmail1.univ-lemans.fr> Hello S?bastien, S?bastien Bihorel a ?crit?: > Thanks your very much Samuel, > > This works such fine for the application I intend to use this code for. > > I assume that you are the author of this code, but, for some copyright > issues, I would like that you confirm this point to me. That's right > If indeed you are, > would you authorize me to use (and/or modify) your code as part of an > application distributed under a GNU license? To preserve appropriate > copyrights, I could either add your name and affiliation in a comment > section at the beginning of the .sci file or you could maybe create such an > .sci and sent it to me at your convenience. I will do so as soon as possible. I am aiming to propose this function (with improvements) as a SEP for Scilab ; then, i must get more infos from the Scilab's consortium about licensing of such contribs. I guess that it will be either under a GPL or Cecill license. If this matter urges for you, please note my Affiliation: Samuel Gougeon - Universit? du Maine, France (2009) Here is an improved release of ismember(), that now supports %inf values either in A or S, and with fixed mistakes in the head_comments: ---- function loc=ismember(A,S, highest) // loc = ismember(A, S, highest) // // A : Matrix of booleans, integers, reals, complexes, polynomes // (or any datatype supporting #*R real multiplication and == // inter-comparison). // S : Matrix of same datatype than S // highest : Scalar boolean // // ismember() returns a matrix loc of A's format. loc(i,j) = linear // index in S of the first (highest ==%F), or the last (highest==%T) // occurrence of A(i,j). loc(i,j) returns zero if A(i,j) is not found. // // COPYRIGHT : Samuel GOUGEON - Universit? du Maine, France (2009) // LICENSE : CeCILL // LA=length(A); LS=length(S); A2=matrix(A,LA,1)*ones(1,LS) ; S2=(matrix(S,LS,1)*ones(1,LA)).' ; d01 =double(A2==S2); S_ind=ones(LA,1)*(1:LS); tmp=d01.*S_ind; if highest, tmp2=max(tmp,'c'); else tmp(tmp==0)=2*LS; // Masks zeros=unfound as min values tmp2=min(tmp,'c'); tmp2(tmp2==2*LS)=0; // Retrieves zeros=unfound end loc=matrix(tmp2,size(A)); endfunction ---- -->A,S A = 7. 3. Inf 0. 8. 1. S = 5. 8. 0. 4. 3. 4. 7. 7. 3. Inf Inf 2. 7. 5. 5. 8. -->ismember(A,S,%f) ans = 4. 2. 7. 9. 5. 0. -->ismember(A,S,%t) ans = 14. 3. 11. 9. 16. 0. --------- Regards Samuel From pomchip at free.fr Wed Nov 11 19:15:26 2009 From: pomchip at free.fr (=?ISO-8859-1?Q?S=E9bastien_Bihorel?=) Date: Wed, 11 Nov 2009 13:15:26 -0500 Subject: [scilab-Users] Emulate Matlab's ismember function in Scilab In-Reply-To: <20091111180311.85165pqz2uldvurk@webmail1.univ-lemans.fr> References: <4AF9E8E4.4040303@univ-lemans.fr> <20091111180311.85165pqz2uldvurk@webmail1.univ-lemans.fr> Message-ID: Thank you very much. I am working on the translation of my application from Matlab to Scilab syntax, and there is a fair amount of work still to be done. So, no hurry. Sebastien PS: ain't that funny that most of the people posting on this forum are French or working in French-speaking institutions but write in English ? :D On Wed, Nov 11, 2009 at 12:03 PM, Samuel Gougeon < Samuel.Gougeon at univ-lemans.fr> wrote: > Hello S?bastien, > > S?bastien Bihorel a ?crit : > > > Thanks your very much Samuel, >> >> This works such fine for the application I intend to use this code for. >> >> I assume that you are the author of this code, but, for some copyright >> issues, I would like that you confirm this point to me. >> > > That's right > > > If indeed you are, >> would you authorize me to use (and/or modify) your code as part of an >> application distributed under a GNU license? To preserve appropriate >> copyrights, I could either add your name and affiliation in a comment >> section at the beginning of the .sci file or you could maybe create such >> an >> .sci and sent it to me at your convenience. >> > > I will do so as soon as possible. I am aiming to propose this function > (with > improvements) as a SEP for Scilab ; then, i must get more infos from the > Scilab's consortium about licensing of such contribs. I guess that it will > be either under a GPL or Cecill license. > > If this matter urges for you, please note my Affiliation: > Samuel Gougeon - Universit? du Maine, France (2009) > > Here is an improved release of ismember(), that now supports > %inf values either in A or S, and with fixed mistakes in the > head_comments: > > ---- > function loc=ismember(A,S, highest) > // loc = ismember(A, S, highest) > // > // A : Matrix of booleans, integers, reals, complexes, polynomes > // (or any datatype supporting #*R real multiplication and == > // inter-comparison). > > // S : Matrix of same datatype than S > // highest : Scalar boolean > // > // ismember() returns a matrix loc of A's format. loc(i,j) = linear > // index in S of the first (highest ==%F), or the last (highest==%T) > // occurrence of A(i,j). loc(i,j) returns zero if A(i,j) is not found. > // > // COPYRIGHT : Samuel GOUGEON - Universit? du Maine, France (2009) > // LICENSE : CeCILL > > // > LA=length(A); > LS=length(S); > A2=matrix(A,LA,1)*ones(1,LS) ; > S2=(matrix(S,LS,1)*ones(1,LA)).' ; > d01 =double(A2==S2); > S_ind=ones(LA,1)*(1:LS); > tmp=d01.*S_ind; > if highest, > tmp2=max(tmp,'c'); > else > tmp(tmp==0)=2*LS; // Masks zeros=unfound as min values > tmp2=min(tmp,'c'); > tmp2(tmp2==2*LS)=0; // Retrieves zeros=unfound > > end > loc=matrix(tmp2,size(A)); > endfunction > ---- > -->A,S > A = > > 7. 3. > Inf 0. > > 8. 1. > S = > > 5. 8. 0. 4. > 3. 4. 7. 7. > 3. Inf Inf 2. > > 7. 5. 5. 8. > > -->ismember(A,S,%f) > ans = > > 4. 2. > 7. 9. > > 5. 0. > > -->ismember(A,S,%t) > ans = > > 14. 3. > 11. 9. > 16. 0. > --------- > Regards > Samuel > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From hinow at uwm.edu Wed Nov 11 19:28:19 2009 From: hinow at uwm.edu (Peter Hinow) Date: Wed, 11 Nov 2009 12:28:19 -0600 (CST) Subject: pdist and squareform In-Reply-To: <20091111180311.85165pqz2uldvurk@webmail1.univ-lemans.fr> Message-ID: <110056150.1404031257964099312.JavaMail.root@mail02.pantherlink.uwm.edu> Hello all, the matlab functions pdist and squareform (from the statistics toolbox) are missing in scilab. So I wrote them myself and just want to know if the community has any use for it. The codes are pasted below. pdist is written with only the Euclidean distance in mind, I guess one can generalize it with an optional argument that specifies other metrics. Best regards, Peter // this function computes the pairwise distances in the vector x function [r] = pdist(x) [rows,columns] = size(x); if rows == 1 x = x'; swap = rows; rows = columns; columns = swap; end r = zeros(rows*(rows-1)/2,1); start = 1; for k = 1:rows-1 mat1 = kron(x(k,:),ones(rows-k,1)); mat2 = x(k+1:rows,:); r(start:start+rows-k-1) = sqrt(sum((mat1-mat2).^2,2)); start = start+rows-k; end endfunction // this function rearranges a vector of length n*(n-1)/2 in squareform (with zero diagonal) function [r] = squareform(x) [rows,columns] = size(x); if rows == 1 x = x'; swap = rows; rows = columns; columns = swap; end m = (1+sqrt(1+8*rows))/2; if abs(int(m)-m)>0.0001 disp('error: wrong dimension') r=[-1]; return; end r=zeros(m,m); start = 1; for k = 1:m-1 r(k+1:m,k) = x(start:start+m-k-1); r(k,k+1:m) = x(start:start+m-k-1)'; start = start+m-k; end endfunction From pomchip at free.fr Wed Nov 11 19:17:56 2009 From: pomchip at free.fr (=?ISO-8859-1?Q?S=E9bastien_Bihorel?=) Date: Wed, 11 Nov 2009 13:17:56 -0500 Subject: [scilab-Users] Difference in calculations between Matlab and Scilab In-Reply-To: <4AFADF67.20600@scilab.org> References: <4AFADF67.20600@scilab.org> Message-ID: Scilab got me there :D Thanks for the tip... I actually found a fix using ones(1,size(X,2) instead of 1, but, now, realize why this fixed the problem. On Wed, Nov 11, 2009 at 10:59 AM, Yann Collette wrote: > Hello, > > Classical mistake: > > Try > > (1)./X > > the . under matlab has not the same priority as the scilab one. > > YC > > S?bastien Bihorel a ?crit : > > Hi >> >> I would be interested knowing why Scilab (version beta 5.2) and Matlab >> (7.6.0) do not provide the same results for a '1/x' calculation (with x >> being a matrix of real numbers), and how to reproduce the results of Matlab >> in Scilab for this particular case. >> >> Thank you >> >> Sebastien >> >> %%%%%%Matlab >> >> >> X=1:5 >> >> X = >> >> 1 2 3 4 5 >> >> >> 1./X >> >> ans = >> >> 1.0000 0.5000 0.3333 0.2500 0.2000 >> >> >> /////////////// Scilab >> >> -->X=1:5 >> X = >> 1. 2. 3. 4. 5. -->1./X >> ans = >> 0.0181818 0.0363636 0.0545455 0.0727273 0.0909091 >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pomchip at free.fr Thu Nov 12 04:28:23 2009 From: pomchip at free.fr (=?ISO-8859-1?Q?S=E9bastien_Bihorel?=) Date: Wed, 11 Nov 2009 22:28:23 -0500 Subject: Another beginner question Message-ID: Hi, While translating some Matlab to Scilab, I stumbled upon some issues with problems with the eval function. I don't quite get why the 'eval 6' statement of the following code returns an error (and not the 'eval 3' statement), and would appreciate any explanation. Thank you Sebastien function [b]=test(z) b = 1; endfunction function [x,y]=test2(z) x = 1; y = 2; endfunction b=test(2) // eval 1 b=evstr('test(2)') // eval 2 b=eval('test(2)') // eval 3 [x,y]=test2(2) // eval 4 [x,y]=evstr('test2(2)') // eval 5 [x,y]=eval('test2(2)') // eval 6 -------------- next part -------------- An HTML attachment was scrubbed... URL: From yann.collette at scilab.org Thu Nov 12 08:59:41 2009 From: yann.collette at scilab.org (Collette yann) Date: Thu, 12 Nov 2009 08:59:41 +0100 Subject: [scilab-Users] Another beginner question In-Reply-To: References: Message-ID: <4AFBC06D.4070100@scilab.org> S?bastien Bihorel a ?crit : > Hi, > > While translating some Matlab to Scilab, I stumbled upon some issues > with problems with the eval function. I don't quite get why the 'eval > 6' statement of the following code returns an error (and not the 'eval > 3' statement), and would appreciate any explanation. > > Thank you > > Sebastien > > > function [b]=test(z) > b = 1; > endfunction > > function [x,y]=test2(z) > x = 1; > y = 2; > endfunction > > b=test(2) // eval 1 > b=evstr('test(2)') // eval 2 > b=eval('test(2)') // eval 3 > > [x,y]=test2(2) // eval 4 > [x,y]=evstr('test2(2)') // eval 5 > [x,y]=eval('test2(2)') // eval 6 > > eval returns the value of the evaluation of a matrix of strings. If there is one string, eval returns 1 value, if there is 2 strings, eval returns 2 values. If you want to get several parameters of a function, use execstr: execstr('[x,y] = test2(2)'); YC From pomchip at free.fr Thu Nov 12 14:16:23 2009 From: pomchip at free.fr (=?ISO-8859-1?Q?S=E9bastien_Bihorel?=) Date: Thu, 12 Nov 2009 08:16:23 -0500 Subject: [scilab-Users] Another beginner question In-Reply-To: <4AFBC06D.4070100@scilab.org> References: <4AFBC06D.4070100@scilab.org> Message-ID: OK, The whole expression has to be evaluated rather just the right part (ie the function call). Thanks a lot On Thu, Nov 12, 2009 at 2:59 AM, Collette yann wrote: > S?bastien Bihorel a ?crit : > > Hi, >> >> While translating some Matlab to Scilab, I stumbled upon some issues with >> problems with the eval function. I don't quite get why the 'eval 6' >> statement of the following code returns an error (and not the 'eval 3' >> statement), and would appreciate any explanation. >> >> Thank you >> >> Sebastien >> >> >> function [b]=test(z) >> b = 1; endfunction >> >> function [x,y]=test2(z) >> x = 1; >> y = 2; endfunction >> >> b=test(2) // eval 1 >> b=evstr('test(2)') // eval 2 >> b=eval('test(2)') // eval 3 >> >> [x,y]=test2(2) // eval 4 >> [x,y]=evstr('test2(2)') // eval 5 >> [x,y]=eval('test2(2)') // eval 6 >> >> >> eval returns the value of the evaluation of a matrix of strings. > If there is one string, eval returns 1 value, if there is 2 strings, eval > returns 2 values. > If you want to get several parameters of a function, use execstr: > > execstr('[x,y] = test2(2)'); > > YC > -------------- next part -------------- An HTML attachment was scrubbed... URL: From scilab.support at scilab.org Thu Nov 12 18:03:24 2009 From: scilab.support at scilab.org (Scilab Support) Date: Thu, 12 Nov 2009 18:03:24 +0100 Subject: [Ticket#2009101810000038] dcgain in scilab? In-Reply-To: References: Message-ID: <1258045404.816662.004849133.6018.4@scilab.org> Dear suhas deshpande, There is no ready to use function to compute DCgain, but in the regular cases it is quite easy on can use the formulas D-(C/A)*B for continuuos time state space systems or D+C/(eye(A)-A)*B for discrete time systems For continuuous time transfert systems on can use horner(H,0) and for discrete ones horner(H,1) 18.10.2009 22:37 - suhas deshpande a ?crit: 1) How to calculate DC gain in scilab? matlab command i know is dcgain(system) 2) When I execute tf2ss(system), the state space matrices are not in standard form, how do i get the matrices in canonical form and companion form see? the canon and cont_frm functions -- Suhas Deshpande Serge Steer INRIA -------------- next part -------------- An HTML attachment was scrubbed... URL: From vnpenguin at vnoss.org Fri Nov 13 08:47:29 2009 From: vnpenguin at vnoss.org (Vnpenguin) Date: Fri, 13 Nov 2009 08:47:29 +0100 Subject: 5.1.1 on CentOS 5.4 x86_64: can not run demos Message-ID: Hi, I just downloaded version 5.1.1 Scilab (binary for Linux 64bit). My system is CentOS 5.4 x86_64. I run Scilab by command: /opt/scilab-5.1.1/bin/scilab Scilab starts ok. But when I click on "Scilab Demonstrations" => Graphics => "2D and 3D plots" I see many errors in console: ================= Begin error messages ======================================== Startup execution: loading initial environment Warning: file '/opt/scilab-5.1.1/share/scilab/modules/graphics/demos/graphics.dem.gateway.sce' already opened in Scilab. Warning: file '/opt/scilab-5.1.1/share/scilab/modules/graphics/demos/graphics.dem.gateway.sce' already opened in Scilab. !--error 241 File "/opt/scilab-5.1.1/share/scilab/modules/graphics/demos//opt/scilab-5.1.1/share/scilab/modules/graphics/demos/2d_3d_plots/2d_3d_plots.dem.gateway.sce" does not exist or read access denied. at line 38 of function demo_gui_update called by : t(18);script_path = demo_gui_update();exec(script_path,-1);;if exists("%old while executing a callback !--error 241 File "/opt/scilab-5.1.1/share/scilab/modules/graphics/demos//opt/scilab-5.1.1/share/scilab/modules/graphics/demos/2d_3d_plots/2d_3d_plots.dem.gateway.sce" does not exist or read access denied. at line 38 of function demo_gui_update called by : t(18);script_path = demo_gui_update();exec(script_path,-1);;if exists("%old while executing a callback =========================== end of error messages ================================= Anyone could help me to fix this please. Thanks in advance, -- http://vnoss.org From mathieu.dubois at limsi.fr Fri Nov 13 10:00:15 2009 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Fri, 13 Nov 2009 10:00:15 +0100 Subject: Question about xstring Message-ID: <4AFD201F.8040801@limsi.fr> Hello, I have plotted a complicated bar plot (the 'y' matrix is 3*6 so I have 6 polylines and 18 bars) so I would like to print some text under each bar to help understanding. I use the 'data' and 'x_shift' members of each polyline to compute the x position of the text: x=current_poly.data(:,1)'+current_poly.x_shift (this works). After that I use xstring to display my text. If I use 0 as the 'y' coordinate the text is displayed at the bottom of the bar (see attachment). The problem is that I would like to attach the text under the bar. If I use a negative 'y' coordinate, the text is hidden. How can I put it foreground? Is the problem linked to the fact that the "Text" object is a children of the "Axes" object and so cannot be put 'outside' this object? If true can I insert the "Text" object as a children of the "Figure" object? xstring looks like a function for the old graphic mode (no handle argument)... Is there any replacement? Thanks in advance, Mathieu -------------- next part -------------- A non-text attachment was scrubbed... Name: test_y_0.eps Type: image/x-eps Size: 10680 bytes Desc: not available URL: From manuel.juliachs at scilab.org Fri Nov 13 10:50:57 2009 From: manuel.juliachs at scilab.org (Manuel JULIACHS) Date: Fri, 13 Nov 2009 10:50:57 +0100 Subject: [scilab-Users] Question about xstring In-Reply-To: <4AFD201F.8040801@limsi.fr> References: <4AFD201F.8040801@limsi.fr> Message-ID: <4AFD2C01.8010503@scilab.org> Hello, each string object located outside the axes box (which is the case in your own example) is hidden due to the fact that it is clipped against the box bounds and thus culled. Setting each string object's clip_state property to "off" after it has been created should make it visible. As an example: xstring(0.0, -0.2, "cloudy"); e=gce(); e.clip_state="off"; Take a look at the text_properties help page for related information. Mathieu Dubois a ?crit : > Hello, > > I have plotted a complicated bar plot (the 'y' matrix is 3*6 so I have > 6 polylines and 18 bars) so I would like to print some text under each > bar to help understanding. > > I use the 'data' and 'x_shift' members of each polyline to compute the > x position of the text: > x=current_poly.data(:,1)'+current_poly.x_shift (this works). > > After that I use xstring to display my text. If I use 0 as the 'y' > coordinate the text is displayed at the bottom of the bar (see > attachment). > > The problem is that I would like to attach the text under the bar. If > I use a negative 'y' coordinate, the text is hidden. > > How can I put it foreground? > Is the problem linked to the fact that the "Text" object is a children > of the "Axes" object and so cannot be put 'outside' this object? If > true can I insert the "Text" object as a children of the "Figure" object? > > xstring looks like a function for the old graphic mode (no handle > argument)... Is there any replacement? > > Thanks in advance, > Mathieu > > > -- ------------------------- Manuel Juliachs Ing?nieur de d?veloppement ------------------------- Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France T?l. : +33.1.39.63.52.71 From mathieu.dubois at limsi.fr Fri Nov 13 11:29:05 2009 From: mathieu.dubois at limsi.fr (Mathieu Dubois) Date: Fri, 13 Nov 2009 11:29:05 +0100 Subject: [scilab-Users] Question about xstring In-Reply-To: <4AFD2C01.8010503@scilab.org> References: <4AFD201F.8040801@limsi.fr> <4AFD2C01.8010503@scilab.org> Message-ID: <4AFD34F1.5060607@limsi.fr> Hello Manuel, Thanks for your tip it works like a charm now! Mathieu From manuel.juliachs at scilab.org Fri Nov 13 11:34:49 2009 From: manuel.juliachs at scilab.org (Manuel JULIACHS) Date: Fri, 13 Nov 2009 11:34:49 +0100 Subject: [scilab-Users] Question about xstring In-Reply-To: <4AFD34F1.5060607@limsi.fr> References: <4AFD201F.8040801@limsi.fr> <4AFD2C01.8010503@scilab.org> <4AFD34F1.5060607@limsi.fr> Message-ID: <4AFD3649.1010300@scilab.org> Mathieu Dubois a ?crit : > Hello Manuel, > > Thanks for your tip it works like a charm now! > > Mathieu > Don't mention it, glad it worked. -- ------------------------- Manuel Juliachs Ing?nieur de d?veloppement ------------------------- Consortium Scilab Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France T?l. : +33.1.39.63.52.71 From pomchip at free.fr Sat Nov 14 02:53:08 2009 From: pomchip at free.fr (=?ISO-8859-1?Q?S=E9bastien_Bihorel?=) Date: Fri, 13 Nov 2009 20:53:08 -0500 Subject: Create graph directly to file Message-ID: Dear Scilab users, Does Scilab has a functionality to create graphs directly to file? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Sat Nov 14 14:00:29 2009 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Sat, 14 Nov 2009 14:00:29 +0100 Subject: [scilab-Users] Create graph directly to file In-Reply-To: References: Message-ID: <4AFEA9ED.9040402@utc.fr> S?bastien Bihorel a ?crit : > Dear Scilab users, > > Does Scilab has a functionality to create graphs directly to file? > > > Thanks Hi, see the "driver" and "xinit" macros. S. From pomchip at free.fr Sat Nov 14 14:26:42 2009 From: pomchip at free.fr (=?ISO-8859-1?Q?S=E9bastien_Bihorel?=) Date: Sat, 14 Nov 2009 08:26:42 -0500 Subject: [scilab-Users] Create graph directly to file In-Reply-To: <4AFEA9ED.9040402@utc.fr> References: <4AFEA9ED.9040402@utc.fr> Message-ID: Thanks Stephane, After some Quick tests with those functions, I have the follow-up questions: - even if the figure is save to file, it also briefly show up on screen - is there a way to prevent that to happen ? - in contrast to xsave, driver and xinit does not seem to be able to save figure as scg. Is that correct? Sebastien 2009/11/14 St??phane Mottelet > S?bastien Bihorel a ?crit : > > Dear Scilab users, >> >> Does Scilab has a functionality to create graphs directly to file? >> >> >> Thanks >> > Hi, > > see the "driver" and "xinit" macros. > > S. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From stephane.mottelet at utc.fr Sat Nov 14 16:23:14 2009 From: stephane.mottelet at utc.fr (=?UTF-8?B?U3TCjsOpcGhhbmUgTW90dGVsZXQ=?=) Date: Sat, 14 Nov 2009 16:23:14 +0100 Subject: [scilab-Users] Create graph directly to file In-Reply-To: References: <4AFEA9ED.9040402@utc.fr> Message-ID: <4AFECB62.5040904@utc.fr> Yes, I know this problem makes batch graphics impossible : http://bugzilla.scilab.org/show_bug.cgi?id=4158 S. S?bastien Bihorel a ?crit : > Thanks Stephane, > > After some Quick tests with those functions, I have the follow-up > questions: > - even if the figure is save to file, it also briefly show up on > screen - is there a way to prevent that to happen ? > - in contrast to xsave, driver and xinit does not seem to be able to > save figure as scg. Is that correct? > > Sebastien > > 2009/11/14 St??phane Mottelet > > > S?bastien Bihorel a ?crit : > > Dear Scilab users, > > Does Scilab has a functionality to create graphs directly to file? > > > Thanks > > Hi, > > see the "driver" and "xinit" macros. > > S. > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pomchip at free.fr Mon Nov 16 16:30:14 2009 From: pomchip at free.fr (=?ISO-8859-1?Q?S=E9bastien_Bihorel?=) Date: Mon, 16 Nov 2009 10:30:14 -0500 Subject: [scilab-Users] Create graph directly to file In-Reply-To: <4AFECB62.5040904@utc.fr> References: <4AFEA9ED.9040402@utc.fr> <4AFECB62.5040904@utc.fr> Message-ID: Thanks for the notice and the tips. One additional thing I have noticed during the week-end. When one has saved a figure as a scg file and one drag-and-drops this file from Windows Explorer into the Scilab screen, two graphical windows are open: the first one is called figure n.0 and is empty, while the second one is called figure n.1 and contains the previously saved graphs. Only one window shows up when opening the scg file with load or xload. Sebastien 2009/11/14 St??phane Mottelet > Yes, I know this problem makes batch graphics impossible : > > http://bugzilla.scilab.org/show_bug.cgi?id=4158 > > S. > > S?bastien Bihorel a ?crit : > > Thanks Stephane, > > After some Quick tests with those functions, I have the follow-up > questions: > - even if the figure is save to file, it also briefly show up on screen - > is there a way to prevent that to happen ? > - in contrast to xsave, driver and xinit does not seem to be able to save > figure as scg. Is that correct? > > Sebastien > > 2009/11/14 St??phane Mottelet > >> S?bastien Bihorel a ?crit : >> >> Dear Scilab users, >>> >>> Does Scilab has a functionality to create graphs directly to file? >>> >>> >>> Thanks >>> >> Hi, >> >> see the "driver" and "xinit" macros. >> >> S. >> >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From debasis.sahu007 at gmail.com Wed Nov 18 11:33:01 2009 From: debasis.sahu007 at gmail.com (Debasis Sahu) Date: Wed, 18 Nov 2009 16:03:01 +0530 Subject: Errors in installation of scilab-5.1.1 Message-ID: <1f49001c0911180233p1054e649r928f5733bb1cd58b@mail.gmail.com> While I am trying to install the 5.1.1 version then it is giving the following error. *configure: error: Unable to find pvmgetarch in PATH or PVM_ROOT. (Scilab no longer provides an embedded PVM)* I checked the dependencies form the following site http://wiki.scilab.org/Dependencies_of_Scilab_5.X and PVM is an optional one. still it is giving the above error. Then I tried with *./configure --without-pvm* command then it is giving the following error *configure: error: Cannot find headers (umfpack.h) of the library UMFPACK. Please install the dev package (Debian : libsuitesparse-dev)* UMFPACK is also and optional file. Now I tried with the follwoing command ./configure --without-pvm-UMFPACK Then it is giving me the following error *configure: error: Unable to find pvmgetarch in PATH or PVM_ROOT. (Scilab no longer provides an embedded PVM)* Which I guess is because PVM is not installed. Can you please help me to move forward. -- Thanks and Regards Debasis Sahu -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Wed Nov 18 11:55:30 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Wed, 18 Nov 2009 11:55:30 +0100 Subject: [scilab-Users] Errors in installation of scilab-5.1.1 In-Reply-To: <1f49001c0911180233p1054e649r928f5733bb1cd58b@mail.gmail.com> References: <1f49001c0911180233p1054e649r928f5733bb1cd58b@mail.gmail.com> Message-ID: <1258541730.5418.610.camel@zlarin> Le mercredi 18 novembre 2009 ? 16:03 +0530, Debasis Sahu a ?crit : > While I am trying to install the 5.1.1 version then it is giving the > following error. > > configure: error: Unable to find pvmgetarch in PATH or PVM_ROOT. > (Scilab no longer provides an embedded PVM) > > I checked the dependencies form the following site > > http://wiki.scilab.org/Dependencies_of_Scilab_5.X > > and PVM is an optional one. still it is giving the above error. By default, the configure checks all dependencies but it is possible to disable many of them (pvm, umfpack, matio, tcl/tk, the gui, etc). > UMFPACK is also and optional file. > > Now I tried with the follwoing command > > ./configure --without-pvm-UMFPACK The command is --without-pvm --without-umfpack However, try to install the dependencies. If you are running a recent Ubuntu or Debian, the following command with install all Scilab mandatory dependencies: apt-get build-dep scilab Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From arty0806 at gmail.com Thu Nov 19 09:56:05 2009 From: arty0806 at gmail.com (Yuan Ma) Date: Thu, 19 Nov 2009 09:56:05 +0100 Subject: Questions about create user defined library in Scilab Message-ID: <9063B7AD-BA36-4C1B-AB9C-5C18B44D1F52@gmail.com> Hey, I am freshman for Scilab. I have some sci. files to import as permanent library for my calculation. But I don't know how to create this kind of library. I use scilab-5.20-beta-1 version for Mac. I tried genlib('THlib','/Users/Eric/Documents/SCILAB/SH2701') But it doesn't work when I want to use the functions. Best, Yuan --------------------------------------------------------------------------------------------- ?? Yuan MA e-mail: arty0806 at gmail.com MSN: arty_0806 at hotmail.com From hinow at uwm.edu Thu Nov 19 22:15:34 2009 From: hinow at uwm.edu (Peter Hinow) Date: Thu, 19 Nov 2009 15:15:34 -0600 (CST) Subject: annotation of graphs with Greek and LaTeX symbols Message-ID: <2039853443.2144631258665334617.JavaMail.root@mail02.pantherlink.uwm.edu> Dear scilab users, it seems to be an old problem that it is not so easy (impossible?) to annotate graphs with Greek or mathematical (LaTeX) symbols, just as it is possible in matlab to write xlabel('\alpha_\beta') Are there workarounds? Thank you and best regards, Peter From sylvestre.ledru at scilab.org Thu Nov 19 23:16:56 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 19 Nov 2009 23:16:56 +0100 Subject: [scilab-Users] annotation of graphs with Greek and LaTeX symbols In-Reply-To: <2039853443.2144631258665334617.JavaMail.root@mail02.pantherlink.uwm.edu> References: <2039853443.2144631258665334617.JavaMail.root@mail02.pantherlink.uwm.edu> Message-ID: <1258669016.958.3483.camel@zlarin> Hello Peter, Le jeudi 19 novembre 2009 ? 15:15 -0600, Peter Hinow a ?crit : > Dear scilab users, > it seems to be an old problem that it is not so easy (impossible?) to annotate graphs with Greek or mathematical (LaTeX) symbols, just as it is possible in matlab to write > xlabel('\alpha_\beta') > Are there workarounds? Yes, you will be happy to know that Scilab 5.2 will have this feature. The beta1 already have this feature. Its supports LaTeX and MathML. See: http://www.scilab.org/download/5.2.0-beta-1/CHANGES_5.2.0-beta-1.pdf You will find a screenshoot. The beta1 does not have it but, thanks to a Scilab contributor, Calixte (who is also the dev of the LaTeX/MathML feature), will have also a new function called prettyprint. See the attachement for more information on this. Sylvestre > Thank you and best regards, > Peter -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France -------------- next part -------------- A non-text attachment was scrubbed... Name: SEP_36_prettyprint.pdf Type: application/pdf Size: 385860 bytes Desc: not available URL: From hinow at uwm.edu Fri Nov 20 00:09:18 2009 From: hinow at uwm.edu (Peter Hinow) Date: Thu, 19 Nov 2009 17:09:18 -0600 (CST) Subject: [scilab-Users] annotation of graphs with Greek and LaTeX symbols In-Reply-To: <1258669016.958.3483.camel@zlarin> Message-ID: <536393944.2207561258672158854.JavaMail.root@mail02.pantherlink.uwm.edu> Dear Sylvestre, thank you for this information. I guess I should try to install 5.2 beta without messing up my 5.1. Merci again, Peter ----- Original Message ----- From: "Sylvestre Ledru" To: users at lists.scilab.org Sent: Thursday, November 19, 2009 4:16:56 PM GMT -06:00 US/Canada Central Subject: Re: [scilab-Users] annotation of graphs with Greek and LaTeX symbols Hello Peter, Le jeudi 19 novembre 2009 ? 15:15 -0600, Peter Hinow a ?crit : > Dear scilab users, > it seems to be an old problem that it is not so easy (impossible?) to annotate graphs with Greek or mathematical (LaTeX) symbols, just as it is possible in matlab to write > xlabel('\alpha_\beta') > Are there workarounds? Yes, you will be happy to know that Scilab 5.2 will have this feature. The beta1 already have this feature. Its supports LaTeX and MathML. See: http://www.scilab.org/download/5.2.0-beta-1/CHANGES_5.2.0-beta-1.pdf You will find a screenshoot. The beta1 does not have it but, thanks to a Scilab contributor, Calixte (who is also the dev of the LaTeX/MathML feature), will have also a new function called prettyprint. See the attachement for more information on this. Sylvestre > Thank you and best regards, > Peter -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From hinow at uwm.edu Fri Nov 20 00:23:47 2009 From: hinow at uwm.edu (Peter Hinow) Date: Thu, 19 Nov 2009 17:23:47 -0600 (CST) Subject: [scilab-Users] annotation of graphs with Greek and LaTeX symbols In-Reply-To: <1258669016.958.3483.camel@zlarin> Message-ID: <1980333008.2212601258673027216.JavaMail.root@mail02.pantherlink.uwm.edu> Hello Sylvestre et al, it works with xstring, but not within legend. Or am I missing something? Cheers, Peter ----- Original Message ----- From: "Sylvestre Ledru" To: users at lists.scilab.org Sent: Thursday, November 19, 2009 4:16:56 PM GMT -06:00 US/Canada Central Subject: Re: [scilab-Users] annotation of graphs with Greek and LaTeX symbols Hello Peter, Le jeudi 19 novembre 2009 ? 15:15 -0600, Peter Hinow a ?crit : > Dear scilab users, > it seems to be an old problem that it is not so easy (impossible?) to annotate graphs with Greek or mathematical (LaTeX) symbols, just as it is possible in matlab to write > xlabel('\alpha_\beta') > Are there workarounds? Yes, you will be happy to know that Scilab 5.2 will have this feature. The beta1 already have this feature. Its supports LaTeX and MathML. See: http://www.scilab.org/download/5.2.0-beta-1/CHANGES_5.2.0-beta-1.pdf You will find a screenshoot. The beta1 does not have it but, thanks to a Scilab contributor, Calixte (who is also the dev of the LaTeX/MathML feature), will have also a new function called prettyprint. See the attachement for more information on this. Sylvestre > Thank you and best regards, > Peter -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From sylvestre.ledru at scilab.org Fri Nov 20 07:42:08 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 20 Nov 2009 07:42:08 +0100 Subject: [scilab-Users] annotation of graphs with Greek and LaTeX symbols In-Reply-To: <1980333008.2212601258673027216.JavaMail.root@mail02.pantherlink.uwm.edu> References: <1980333008.2212601258673027216.JavaMail.root@mail02.pantherlink.uwm.edu> Message-ID: <1258699328.958.5469.camel@zlarin> Le jeudi 19 novembre 2009 ? 17:23 -0600, Peter Hinow a ?crit : > Hello Sylvestre et al, > it works with xstring, but not within legend. Or am I missing something? Can you show us your example which is failing ? This works for me with the current 5.2 branch: t=linspace(0,%pi,20); a=gca();a.data_bounds=[t(1) -1.8;t($) 1.8]; plot2d(t,[cos(t'),cos(2*t'),cos(3*t')],[-5,2 3]); hl=legend(['$cos(t)$';'$cos(2*t)$';'$cos(3*t)$']); Thx Sylvestre From inderpreet_arora at rediffmail.com Fri Nov 20 17:01:26 2009 From: inderpreet_arora at rediffmail.com (Inderpreet Arora) Date: 20 Nov 2009 16:01:26 -0000 Subject: =?utf-8?B?RGVidWdnZXIgaW4gU2NpbGFi?= Message-ID: <20091120160126.37880.qmail@f5mail-236-242.rediffmail.com> Hello, >From which version of Scilab will the debugger be available again? I have used an explicit debugger in Scilab 4.1. But in the later versions, supposedly 5.x, there seems to be only a command available and I am not sure how to use it. Also, Xcos in Scilab 5.2.0-beta version doesn't seem to be compatible with Scicos. I am unable to open the existing Scicos diagrams in Xcos. Has anyone tried? Please let me know. Thanks. Regards, Inderpreet -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Fri Nov 20 18:12:23 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 20 Nov 2009 18:12:23 +0100 Subject: [scilab-Users] Debugger in Scilab In-Reply-To: <20091120160126.37880.qmail@f5mail-236-242.rediffmail.com> References: <20091120160126.37880.qmail@f5mail-236-242.rediffmail.com> Message-ID: <1258737143.958.7115.camel@zlarin> Le vendredi 20 novembre 2009 ? 16:01 +0000, Inderpreet Arora a ?crit : > Hello, > From which version of Scilab will the debugger be available again? I > have used an explicit debugger in Scilab 4.1. But in the later > versions, supposedly 5.x, there seems to be only a command available > and I am not sure how to use it. We are planning to introduce a new debugger in the version 6 of Scilab. > Also, Xcos in Scilab 5.2.0-beta version doesn't seem to be compatible > with Scicos. I am unable to open the existing Scicos diagrams in Xcos. > Has anyone tried? It is compatible. If it is failing for you, please submit a bug report with your attached diagram on http://bugzilla.scilab.org/. Sylvestre > Please let me know. Thanks. > > Regards, > Inderpreet > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From hinow at uwm.edu Fri Nov 20 19:04:01 2009 From: hinow at uwm.edu (Peter Hinow) Date: Fri, 20 Nov 2009 12:04:01 -0600 (CST) Subject: [scilab-Users] annotation of graphs with Greek and LaTeX symbols In-Reply-To: <1258699328.958.5469.camel@zlarin> Message-ID: <841034275.2441731258740241644.JavaMail.root@mail02.pantherlink.uwm.edu> Sylvestre, it works, and beautifully so! Thanks for your help, Peter ----- Original Message ----- From: "Sylvestre Ledru" To: users at lists.scilab.org Cc: "Peter Hinow" Sent: Friday, November 20, 2009 12:42:08 AM GMT -06:00 US/Canada Central Subject: Re: [scilab-Users] annotation of graphs with Greek and LaTeX symbols Le jeudi 19 novembre 2009 ? 17:23 -0600, Peter Hinow a ?crit : > Hello Sylvestre et al, > it works with xstring, but not within legend. Or am I missing something? Can you show us your example which is failing ? This works for me with the current 5.2 branch: t=linspace(0,%pi,20); a=gca();a.data_bounds=[t(1) -1.8;t($) 1.8]; plot2d(t,[cos(t'),cos(2*t'),cos(3*t')],[-5,2 3]); hl=legend(['$cos(t)$';'$cos(2*t)$';'$cos(3*t)$']); Thx Sylvestre From fvogelnew1 at free.fr Fri Nov 20 21:04:02 2009 From: fvogelnew1 at free.fr (=?UTF-8?B?RnJhbsOnb2lzIFZvZ2Vs?=) Date: Fri, 20 Nov 2009 21:04:02 +0100 Subject: [scilab-Users] Debugger in Scilab In-Reply-To: <20091120160126.37880.qmail@f5mail-236-242.rediffmail.com> References: <20091120160126.37880.qmail@f5mail-236-242.rediffmail.com> Message-ID: <4B06F632.5070809@free.fr> Inderpreet Arora said on 20/11/2009 17:01: > >From which version of Scilab will the debugger be available again? I > have used an explicit debugger in Scilab 4.1. But in the later versions, > supposedly 5.x, there seems to be only a command available and I am not > sure how to use it. See this thread in the Scilab newsgroup: http://groups.google.fr/group/comp.soft-sys.math.scilab/browse_thread/thread/f853a4de842d71b4 The Scipad debugger is now available only in Scicoslab. Check it out: http://www.scicoslab.org/ Francois From iskandhar2000 at gmail.com Mon Nov 23 20:19:55 2009 From: iskandhar2000 at gmail.com (Alexandre Pereira) Date: Mon, 23 Nov 2009 19:19:55 +0000 Subject: Compilation of Scilab under Slackware 64 13 fails... clock_gettime issue... Message-ID: <39243d120911231119t33b3920dt84fbdac42587e378@mail.gmail.com> Hi I am trying to compile Scilab 5.1.1 under Slkackware64 13, I use the following options : --without-pvm --without-matio --enable-relocatable, I can configure, but as soon as I run #make, it starts building but aborts before the end, complaining about a missing function : clock_gettime... How can I fix this issue...? Thanks Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Tue Nov 24 00:40:46 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 24 Nov 2009 00:40:46 +0100 Subject: [scilab-Users] Compilation of Scilab under Slackware 64 13 fails... clock_gettime issue... In-Reply-To: <39243d120911231119t33b3920dt84fbdac42587e378@mail.gmail.com> References: <39243d120911231119t33b3920dt84fbdac42587e378@mail.gmail.com> Message-ID: <1259019646.5363.7175.camel@zlarin> Le lundi 23 novembre 2009 ? 19:19 +0000, Alexandre Pereira a ?crit : > Hi > > I am trying to compile Scilab 5.1.1 under Slkackware64 13, > > I use the following options : --without-pvm --without-matio > --enable-relocatable, > > I can configure, but as soon as I run #make, it starts building but > aborts before the end, complaining about a missing function : > clock_gettime... Could you copy/paste the actual error message ? Thanks Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From trendic at gmx.de Tue Nov 24 11:47:35 2009 From: trendic at gmx.de (trendic at gmx.de) Date: Tue, 24 Nov 2009 11:47:35 +0100 Subject: compiling c block with LCC Message-ID: <20091124104735.41180@gmx.net> Hello, Does anyone know how to compile and link a c block for scicos? I have tried with the Blocks in the Palette "user defined functions" but I get errors with that. At first I recieve the warning: C:/SCILAB~1/modules/dynamic_link/src/scripts/TEMPLATE_MAKEFILE.LCCnot found. which is surprising since there is a file with that name at exactly that position. I further get the Message Can't open Makelib.lcc After that: unix_s: error during "make -f Makelib.lcc all" execution ... Is the command unix_s correct although I am working on windows? I have googled around and found someone who says that you can compile Functions similar to S-Functions in Matlab by the ilib_for_link command. I have tried that with an example c-File which delivers exactly the same Warnings/Errors as mentioned above. Another question I have is: when I edit system functions as "ilib_for_link.sci" e.g. how is the corresponding ilib_for_link.bin file created? Thanks for any advise in advance Olaf -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser From allan.cornet at scilab.org Tue Nov 24 12:01:29 2009 From: allan.cornet at scilab.org (Allan CORNET) Date: Tue, 24 Nov 2009 12:01:29 +0100 Subject: [scilab-Users] compiling c block with LCC In-Reply-To: <20091124104735.41180@gmx.net> References: <20091124104735.41180@gmx.net> Message-ID: <000b01ca6cf5$79a9a9f0$6cfcfdd0$@cornet@scilab.org> Hi, Can you attach your diagram (example) ? Thanks you -- ------------------------- Allan CORNET ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France -----Message d'origine----- De?: trendic at gmx.de [mailto:trendic at gmx.de] Envoy??: mardi 24 novembre 2009 11:48 ??: users at lists.scilab.org Objet?: [scilab-Users] compiling c block with LCC Hello, Does anyone know how to compile and link a c block for scicos? I have tried with the Blocks in the Palette "user defined functions" but I get errors with that. At first I recieve the warning: C:/SCILAB~1/modules/dynamic_link/src/scripts/TEMPLATE_MAKEFILE.LCCnot found. which is surprising since there is a file with that name at exactly that position. I further get the Message Can't open Makelib.lcc After that: unix_s: error during "make -f Makelib.lcc all" execution ... Is the command unix_s correct although I am working on windows? I have googled around and found someone who says that you can compile Functions similar to S-Functions in Matlab by the ilib_for_link command. I have tried that with an example c-File which delivers exactly the same Warnings/Errors as mentioned above. Another question I have is: when I edit system functions as "ilib_for_link.sci" e.g. how is the corresponding ilib_for_link.bin file created? Thanks for any advise in advance Olaf -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser From iskandhar2000 at gmail.com Tue Nov 24 16:39:38 2009 From: iskandhar2000 at gmail.com (Alexandre Pereira) Date: Tue, 24 Nov 2009 15:39:38 +0000 Subject: [scilab-Users] Compilation of Scilab under Slackware 64 13 fails... clock_gettime issue... In-Reply-To: <1259019646.5363.7175.camel@zlarin> References: <39243d120911231119t33b3920dt84fbdac42587e378@mail.gmail.com> <1259019646.5363.7175.camel@zlarin> Message-ID: <39243d120911240739k471583b3o865a73fba1332a44@mail.gmail.com> Hi Sylvestre Thanks for your reply I rm -rf scilab-5.1.1 and tried again with untarred prerequirements and source code... But this time #make complained earlier... here it is : Scilab511 ./configure --without-pvm --without-matio --enable-relocatable Option Value ------------------------------------------------------------------------- Shared libraries....... --enable-shared=yes yes Static libraries....... --enable-static=no no GNU ld................. --with-gnu-ld=yes yes Enable debug .......... --enable-debug=no no Enable debug C......... --enable-debug-C=no no Enable debug C++....... --enable-debug-CXX=no no Enable debug Fortran... --enable-debug-fortran=no no Enable stop on warning. --enable-stop-on-warning= Compiler Configuration: Intel (--with-intelcompilers) .... = GNU gcc (--with-gcc) ............. = GNU Fortran 77 (--with-g77) ...... = GNU Fortran 95 (--with-gfortran) . = Options: Use PVM (--without-pvm) .......................... = no PVM include (--with-pvm-include) ................. = PVM library (--with-pvm-library) ................. = Compile with Ocaml (--without-ocaml) ............. = Do not use TCL/TK (--without-tk) ................. = TCL include (--with-tcl-include) ................. = TCL library (--with-tcl-library) ................. = TK include (--with-tk-include) ................... = TK library (--with-tk-library) ................... = Install XML Help (--with-install-help-xml) ....... = Make the package relocatable (--enable-relocatable)= yes Use FFTW (--without-fftw) ........................ = Use MATIO (--without-matio) ...................... = no Scicos enable Ocaml Configuration (for Modelica compiler): OCAMLC ............. = ocamlc OCAMLOPT ........... = ocamlopt OCAMLDEP ........... = ocamldep Not using PVM FFTW Configuration: FFTW LIBS .......... = -lfftw3 FFTW CFLAGS ........ = Not using MATIO UMFPACK Configuration: UMFPACK LIBS ....... = -lumfpack -lamd UMFPACK CFLAGS ..... = UMFPACK SUITESPARSE = Yes BLAS/LAPACK/ATLAS Configuration: BLAS LIBS ............. = -lblas BLAS TYPE ............. = Generic Blas LAPACK LIBS ........... = -llapack LAPACK TYPE ........... = Library -llapack Gettext/localization configuration: xgettext ............... = /usr/bin/xgettext msgfmt ................ = /usr/bin/msgfmt msgfmt_opts ............ = msgcat ................ = /usr/bin/msgcat Docbook XSL path ....... = /store/alex/Dstor/Packages/Scilab/scilab-5.1.1/thirdparty/docbook/ Batik (SVG) ............ = /store/alex/Dstor/Packages/Scilab/scilab-5.1.1/thirdparty/batik-all-1.7.jar Saxon XSLT ............. = /store/alex/Dstor/Packages/Scilab/scilab-5.1.1/thirdparty/saxon.jar FOP (XML => PDF) ....... = /store/alex/Dstor/Packages/Scilab/scilab-5.1.1/thirdparty/fop.jar Jeuclid (MathML) ....... = /store/alex/Dstor/Packages/Scilab/scilab-5.1.1/thirdparty/jeuclid-core.jar Commons I/O ............ = /store/alex/Dstor/Packages/Scilab/scilab-5.1.1/thirdparty/commons-io.jar XML graphics commons ... = /store/alex/Dstor/Packages/Scilab/scilab-5.1.1/thirdparty/xmlgraphics-commons-1.3.1.jar XML commons external ... = /store/alex/Dstor/Packages/Scilab/scilab-5.1.1/thirdparty/xml-apis-ext.jar Java Configuration: JAVA_HOME ........... = /usr/lib64/java JAVAC ............... = /usr/lib64/java/bin/javac JAVA_CLASSPATH ...... = JAVA_VERSION ........ = 1.5 JAVAC_FLAGS ......... = -g JAVA_JNI_INCLUDE .... = -I/usr/lib64/java/include -I/usr/lib64/java/include/linux JAVA_JNI_LIBS ....... = -L/usr/lib64/java/jre/lib/amd64 -ljava -lverify -L/usr/lib64/java/jre/lib/amd64/server -ljvm JAVA_JNI_LIBS_PRELOAD = JAVA ................ = /usr/lib64/java/bin/java JAR ................. = /usr/lib64/java/bin/jar ANT ................. = /usr/bin/ant TCL/TK configuration: TK_INC_PATH ........ = -I/usr/include TCL_INC_PATH ....... = -I/usr/include TCLTK_LIBS ......... = -L/usr/lib64 -ltk8.5 -L/usr/lib64 -ltcl8.5 -ldl TCL_SERIAL_VERSION . = 8.5.7 TK_SERIAL_VERSION .. = 8.5.7 XML configuration: XML_FLAGS .......... = -I/usr/include/libxml2 XML_LIBS ........... = -lxml2 -lz -lm XML_VERSION ........ = 2.7.3 PCRE configuration: PCRE_CFLAGS ........ = PCRE_LIBS .......... = -L/usr/lib64 -lpcreposix -lpcre PCRE_VERSION ....... = 7.7 SWIG Configuration: SWIG generation disabled GIWS Configuration: GIWS generation disabled Libtool config: objext .............. = o libext (static) ..... = a shrext_cmds ......... = .so exeext .............. = Compilation paths: srcdir .............. = . srcdir_full ......... = /store/alex/Dstor/Packages/Scilab/scilab-5.1.1 builddir ............ = /store/alex/Dstor/Packages/Scilab/scilab-5.1.1 Platform informations: host ........... = x86_64-unknown-linux-gnu host_cpu ....... = x86_64 host_vendor .... = unknown host_os ... .... = linux-gnu hostname ....... = iskandhar CPU 64 bits .... = true Options used to compile and link: prefix ......... = /usr/local localedir ...... = ${datarootdir}/locale VERSION ........ = 5 CC ............. = gcc CFLAGS ......... = -g -O2 -DNDEBUG -fno-stack-protector -DNARROWPROTO -m64 -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ PCFLAGS ........ = DEFS ........... = -DHAVE_CONFIG_H LD ............. = /usr/x86_64-slackware-linux/bin/ld -m elf_x86_64 LDFLAGS ........ = LIBS ........... = CXX ............ = g++ CXXFLAGS ....... = -g -O2 -DNDEBUG -fno-stack-protector -I$(top_srcdir)/modules/core/includes/ -I$(top_srcdir)/libs/MALLOC/includes/ -I$(top_srcdir)/modules/localization/includes/ F77 ............ = g77 FFLAGS ......... = -g -O2 -DNDEBUG -m64 -fPIC -I$(top_srcdir)/modules/core/includes/ F77_LDFLAGS .... = TERMCAP_LIB .... = -lncurses bash-3.1#make Making all in libs make[1]: Entering directory `/store/alex/Dstor/Packages/Scilab/scilab-5.1.1/libs' Making all in MALLOC make[2]: Entering directory `/store/alex/Dstor/Packages/Scilab/scilab-5.1.1/libs/MALLOC' /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../modules/core/includes -g -O2 -DNDEBUG -fno-stack-protector -DNARROWPROTO -m64 -I../../modules/core/includes/ -I../../libs/MALLOC/includes/ -I../../modules/localization/includes/ -MT libscimalloc_la-sci_mem_alloc.lo -MD -MP -MF .deps/libscimalloc_la-sci_mem_alloc.Tpo -c -o libscimalloc_la-sci_mem_alloc.lo `test -f 'src/sci_mem_alloc.c' || echo './'`src/sci_mem_alloc.c mkdir .libs gcc -DHAVE_CONFIG_H -I. -I../../modules/core/includes -g -O2 -DNDEBUG -fno-stack-protector -DNARROWPROTO -m64 -I../../modules/core/includes/ -I../../libs/MALLOC/includes/ -I../../modules/localization/includes/ -MT libscimalloc_la-sci_mem_alloc.lo -MD -MP -MF .deps/libscimalloc_la-sci_mem_alloc.Tpo -c src/sci_mem_alloc.c -fPIC -DPIC -o .libs/libscimalloc_la-sci_mem_alloc.o 0 entries mv -f .deps/libscimalloc_la-sci_mem_alloc.Tpo .deps/libscimalloc_la-sci_mem_alloc.Plo mv: cannot stat `.deps/libscimalloc_la-sci_mem_alloc.Tpo': No such file or directory make[2]: *** [libscimalloc_la-sci_mem_alloc.lo] Error 1 make[2]: Leaving directory `/store/alex/Dstor/Packages/Scilab/scilab-5.1.1/libs/MALLOC' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/store/alex/Dstor/Packages/Scilab/scilab-5.1.1/libs' make: *** [all-recursive] Error 1 I also gave it a try with Scilab-5.2.0Beta Same configuration Options... : ./configure --without-pvm --without-matio --enable-relocatable configures ok.... but fails to build... : ................................................. In file included from src/c/scilines.c:35: /usr/include/term.h:780: error: conflicting types for 'tgetstr' /usr/include/termcap.h:46: error: previous declaration of 'tgetstr' was here /usr/include/term.h:782: error: conflicting types for 'tgetent' /usr/include/termcap.h:43: error: previous declaration of 'tgetent' was here /usr/include/term.h:783: error: conflicting types for 'tgetflag' /usr/include/termcap.h:44: error: previous declaration of 'tgetflag' was here /usr/include/term.h:784: error: conflicting types for 'tgetnum' /usr/include/termcap.h:45: error: previous declaration of 'tgetnum' was here /usr/include/term.h:785: error: conflicting types for 'tputs' /usr/include/termcap.h:53: error: previous declaration of 'tputs' was here make[2]: *** [libscishell_la-scilines.lo] Error 1 make[2]: Leaving directory `/store/alex/Sci52/scilab-5.2.0-beta-1/modules/shell' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/store/alex/Sci52/scilab-5.2.0-beta-1/modules' make: *** [all-recursive] Error 1 I will try to reproduce the clock_gettime error in another machine where I still have the original folder of scilab-5.1.1 where this error occured... And i will post back here the ./configure options, and the aborting message of #make tomorrow... I am not with my Slackware laptop right now, and I do not have internet connection at home... Once again, thanks for your help :-) BRGDS Alex 2009/11/23 Sylvestre Ledru > Le lundi 23 novembre 2009 ? 19:19 +0000, Alexandre Pereira a ?crit : > > Hi > > > > I am trying to compile Scilab 5.1.1 under Slkackware64 13, > > > > I use the following options : --without-pvm --without-matio > > --enable-relocatable, > > > > I can configure, but as soon as I run #make, it starts building but > > aborts before the end, complaining about a missing function : > > clock_gettime... > Could you copy/paste the actual error message ? > > Thanks > Sylvestre > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Tue Nov 24 16:46:31 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 24 Nov 2009 16:46:31 +0100 Subject: [scilab-Users] Compilation of Scilab under Slackware 64 13 fails... clock_gettime issue... In-Reply-To: <39243d120911240739k471583b3o865a73fba1332a44@mail.gmail.com> References: <39243d120911231119t33b3920dt84fbdac42587e378@mail.gmail.com> <1259019646.5363.7175.camel@zlarin> <39243d120911240739k471583b3o865a73fba1332a44@mail.gmail.com> Message-ID: <1259077591.10460.89.camel@korcula.inria.fr> [...] > bash-3.1#make [...] > gcc -DHAVE_CONFIG_H -I. -I../../modules/core/includes -g -O2 -DNDEBUG > -fno-stack-protector -DNARROWPROTO -m64 > -I../../modules/core/includes/ > -I../../libs/MALLOC/includes/ -I../../modules/localization/includes/ > -MT libscimalloc_la-sci_mem_alloc.lo -MD -MP -MF > .deps/libscimalloc_la-sci_mem_alloc.Tpo -c src/sci_mem_alloc.c -fPIC > -DPIC -o .libs/libscimalloc_la-sci_mem_alloc.o > 0 entries > mv > -f .deps/libscimalloc_la-sci_mem_alloc.Tpo .deps/libscimalloc_la-sci_mem_alloc.Plo > mv: cannot stat `.deps/libscimalloc_la-sci_mem_alloc.Tpo': No such > file or directory > make[2]: *** [libscimalloc_la-sci_mem_alloc.lo] Error 1 > make[2]: Leaving directory > `/store/alex/Dstor/Packages/Scilab/scilab-5.1.1/libs/MALLOC' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory > `/store/alex/Dstor/Packages/Scilab/scilab-5.1.1/libs' > make: *** [all-recursive] Error 1 Usually, this kind of problem happens when you have been playing too much on/with your source tree. Are you sure you didn't move it from a directory to an other ? > In file included from src/c/scilines.c:35: > /usr/include/term.h:780: error: conflicting types for 'tgetstr' > /usr/include/termcap.h:46: error: previous declaration of 'tgetstr' > was > here Regarding this error, I would say that it is a slackware issue here ... > I will try to reproduce the clock_gettime error in another machine > where I still have the original folder of scilab-5.1.1 where this > error occured... And i will post back here the ./configure options, > and the aborting message of #make tomorrow... > > I am not with my Slackware laptop right now, and I do not have > internet connection at home... About Slackware, Scilab is packaged. http://repository.slacky.eu/slackware-12.2/scientific/scilab/5.1/ I don't know if the 5.1.1 is available or not but since the modification between the 5.1.0 & 5.1.1 are not related to the build system. It should be easy to use the package description of the 5.1.0 to build the 5.1.1. > Once again, thanks for your help :-) You are welcome. Sylvestre From iskandhar2000 at gmail.com Tue Nov 24 17:14:53 2009 From: iskandhar2000 at gmail.com (Alexandre Pereira) Date: Tue, 24 Nov 2009 16:14:53 +0000 Subject: [scilab-Users] Compilation of Scilab under Slackware 64 13 fails... clock_gettime issue... In-Reply-To: <1259077591.10460.89.camel@korcula.inria.fr> References: <39243d120911231119t33b3920dt84fbdac42587e378@mail.gmail.com> <1259019646.5363.7175.camel@zlarin> <39243d120911240739k471583b3o865a73fba1332a44@mail.gmail.com> <1259077591.10460.89.camel@korcula.inria.fr> Message-ID: <39243d120911240814n6173dab7u33320d3474d0f528@mail.gmail.com> Hi Sylvestre I Have grabbed the Slackbuild from Slacky.eu, as well as the package, although I prefer to compile my own apps from source... I will try to build the app with these... I will also try to use new tarballs for prerequirements and src as for Scilab 5.1.1 so as to have a brand new source tree, I will post the results back here tomorrow... :-) BTW one more question, Is there any net advantage in using the Intel development toolchain to build Scilab, as compared to using gcc/gfortran...? I plan to use Scilab in real heavy stuff like MIMO H(inf) controller optimization, and genetic optimization.. BRGDS Alex 2009/11/24 Sylvestre Ledru > [...] > > > bash-3.1#make > [...] > > gcc -DHAVE_CONFIG_H -I. -I../../modules/core/includes -g -O2 -DNDEBUG > > -fno-stack-protector -DNARROWPROTO -m64 > > -I../../modules/core/includes/ > > -I../../libs/MALLOC/includes/ -I../../modules/localization/includes/ > > -MT libscimalloc_la-sci_mem_alloc.lo -MD -MP -MF > > .deps/libscimalloc_la-sci_mem_alloc.Tpo -c src/sci_mem_alloc.c -fPIC > > -DPIC -o .libs/libscimalloc_la-sci_mem_alloc.o > > 0 entries > > mv > > -f .deps/libscimalloc_la-sci_mem_alloc.Tpo > .deps/libscimalloc_la-sci_mem_alloc.Plo > > mv: cannot stat `.deps/libscimalloc_la-sci_mem_alloc.Tpo': No such > > file or directory > > make[2]: *** [libscimalloc_la-sci_mem_alloc.lo] Error 1 > > make[2]: Leaving directory > > `/store/alex/Dstor/Packages/Scilab/scilab-5.1.1/libs/MALLOC' > > make[1]: *** [all-recursive] Error 1 > > make[1]: Leaving directory > > `/store/alex/Dstor/Packages/Scilab/scilab-5.1.1/libs' > > make: *** [all-recursive] Error 1 > Usually, this kind of problem happens when you have been playing too > much on/with your source tree. Are you sure you didn't move it from a > directory to an other ? > > > In file included from src/c/scilines.c:35: > > /usr/include/term.h:780: error: conflicting types for 'tgetstr' > > /usr/include/termcap.h:46: error: previous declaration of 'tgetstr' > > was > > here > Regarding this error, I would say that it is a slackware issue here ... > > > I will try to reproduce the clock_gettime error in another machine > > where I still have the original folder of scilab-5.1.1 where this > > error occured... And i will post back here the ./configure options, > > and the aborting message of #make tomorrow... > > > > I am not with my Slackware laptop right now, and I do not have > > internet connection at home... > About Slackware, Scilab is packaged. > http://repository.slacky.eu/slackware-12.2/scientific/scilab/5.1/ > I don't know if the 5.1.1 is available or not but since the modification > between the 5.1.0 & 5.1.1 are not related to the build system. It should > be easy to use the package description of the 5.1.0 to build the 5.1.1. > > > Once again, thanks for your help :-) > You are welcome. > > Sylvestre > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Tue Nov 24 17:22:30 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Tue, 24 Nov 2009 17:22:30 +0100 Subject: [scilab-Users] Compilation of Scilab under Slackware 64 13 fails... clock_gettime issue... In-Reply-To: <39243d120911240814n6173dab7u33320d3474d0f528@mail.gmail.com> References: <39243d120911231119t33b3920dt84fbdac42587e378@mail.gmail.com> <1259019646.5363.7175.camel@zlarin> <39243d120911240739k471583b3o865a73fba1332a44@mail.gmail.com> <1259077591.10460.89.camel@korcula.inria.fr> <39243d120911240814n6173dab7u33320d3474d0f528@mail.gmail.com> Message-ID: <1259079750.10460.100.camel@korcula.inria.fr> > > I will also try to use new tarballs for prerequirements and src as for > Scilab 5.1.1 > so as to have a brand new source tree, I will post the results back > here tomorrow... :-) OK, Thanks. > BTW one more question, Is there any net advantage in using the Intel > development toolchain to build Scilab, as compared to using > gcc/gfortran...? Yep, the Intel compilers are producing a faster Scilab but first, if you are focusing on the performances, use Atlas or MKL instead of refblas. Sylvestre From trendic at gmx.de Tue Nov 24 19:09:39 2009 From: trendic at gmx.de (trendic at gmx.de) Date: Tue, 24 Nov 2009 19:09:39 +0100 Subject: [scilab-Users] compiling c block with LCC In-Reply-To: <000b01ca6cf5$79a9a9f0$6cfcfdd0$@cornet@scilab.org> References: <20091124104735.41180@gmx.net> <000b01ca6cf5$79a9a9f0$6cfcfdd0$@cornet@scilab.org> Message-ID: <20091124180939.98750@gmx.net> Hi, Even if there is an error in the code I dont understand the Warnings/errors. This is the example Code: #include #include void pendel_c(scicos_block *block, int flag) { if(flag==1){ block->outptr[0][0]=block->x[0]; } if(flag==0){ double g=9.81; double m = block->rpar[0]; double l = block->rpar[1]; double c = block->rpar[2]; double d = block->rpar[3]; double phi=block->x[0]; //phi double omega=block->x[1]; //omega double M = block->inptr[0][0]; block->xd[0]=block->x[1]; block->xd[1]=1/m/l/l*(g*l*cos(phi)*m-c*phi-M-d*omega); } } I have tried to insert the Code in a block and tried the command ilib_for_link('pendel_c','pendel.o',[],'c'); best regards -------- Original-Nachricht -------- > Datum: Tue, 24 Nov 2009 12:01:29 +0100 > Von: "Allan CORNET" > An: users at lists.scilab.org > Betreff: RE: [scilab-Users] compiling c block with LCC > Hi, > > Can you attach your diagram (example) ? > > Thanks you > > -- > ------------------------- > Allan CORNET > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > -----Message d'origine----- > De?: trendic at gmx.de [mailto:trendic at gmx.de] > Envoy??: mardi 24 novembre 2009 11:48 > ??: users at lists.scilab.org > Objet?: [scilab-Users] compiling c block with LCC > > Hello, > > Does anyone know how to compile and link a c block for scicos? > > I have tried with the Blocks in the Palette "user defined functions" but I > get errors with that. At first I recieve the warning: > > C:/SCILAB~1/modules/dynamic_link/src/scripts/TEMPLATE_MAKEFILE.LCCnot > found. > > which is surprising since there is a file with that name at exactly that > position. I further get the Message > > Can't open Makelib.lcc > > After that: > > unix_s: error during "make -f Makelib.lcc all" execution ... > > Is the command unix_s correct although I am working on windows? > > I have googled around and found someone who says that you can compile > Functions similar to S-Functions in Matlab by the ilib_for_link command. > > I have tried that with an example c-File which delivers exactly the same > Warnings/Errors as mentioned above. > > > Another question I have is: when I edit system functions as > "ilib_for_link.sci" e.g. how is the corresponding ilib_for_link.bin file > created? > > Thanks for any advise in advance > > Olaf > -- > Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 > - > sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser -- GRATIS f?r alle GMX-Mitglieder: Die maxdome Movie-FLAT! Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01 From roberto.bucher at supsi.ch Tue Nov 24 20:50:27 2009 From: roberto.bucher at supsi.ch (Roberto Bucher) Date: Tue, 24 Nov 2009 20:50:27 +0100 Subject: [scilab-Users] compiling c block with LCC In-Reply-To: <20091124180939.98750@gmx.net> References: <20091124104735.41180@gmx.net> <000b01ca6cf5$79a9a9f0$6cfcfdd0$@cornet@scilab.org> <20091124180939.98750@gmx.net> Message-ID: <200911242050.27515.roberto.bucher@supsi.ch> Try to cmodify as some parts as following ... if(flag==1){ double *y = block->outptr[0]; y[0] = block->x[0]; ... double *M = block->inptr[0]; ... block->xd[1]=1/m/l/l*(g*l*cos(phi)*m-c*phi-M[0]-d*omega); ... Regards Roberto Bucher On Tuesday 24 November 2009 19:09:39 trendic at gmx.de wrote: > Hi, > > Even if there is an error in the code I dont understand the > Warnings/errors. This is the example Code: > > #include > #include > void pendel_c(scicos_block *block, int flag) { > if(flag==1){ > block->outptr[0][0]=block->x[0]; > } > if(flag==0){ > double g=9.81; > double m = block->rpar[0]; > double l = block->rpar[1]; > double c = block->rpar[2]; > double d = block->rpar[3]; > double phi=block->x[0]; //phi > double omega=block->x[1]; //omega > double M = block->inptr[0][0]; > block->xd[0]=block->x[1]; > block->xd[1]=1/m/l/l*(g*l*cos(phi)*m-c*phi-M-d*omega); > } > } > > > I have tried to insert the Code in a block and tried the command > > ilib_for_link('pendel_c','pendel.o',[],'c'); > > best regards > > -------- Original-Nachricht -------- > > > Datum: Tue, 24 Nov 2009 12:01:29 +0100 > > Von: "Allan CORNET" > > An: users at lists.scilab.org > > Betreff: RE: [scilab-Users] compiling c block with LCC > > > > Hi, > > > > Can you attach your diagram (example) ? > > > > Thanks you > > > > -- > > ------------------------- > > Allan CORNET > > ------------------------- > > The Scilab Consortium > > Digiteo > > Domaine de Voluceau > > Rocquencourt - B.P. 105 > > 78153 Le Chesnay Cedex > > France > > > > -----Message d'origine----- > > De : trendic at gmx.de [mailto:trendic at gmx.de] > > Envoy? : mardi 24 novembre 2009 11:48 > > ? : users at lists.scilab.org > > Objet : [scilab-Users] compiling c block with LCC > > > > Hello, > > > > Does anyone know how to compile and link a c block for scicos? > > > > I have tried with the Blocks in the Palette "user defined functions" but > > I get errors with that. At first I recieve the warning: > > > > C:/SCILAB~1/modules/dynamic_link/src/scripts/TEMPLATE_MAKEFILE.LCCnot > > found. > > > > which is surprising since there is a file with that name at exactly that > > position. I further get the Message > > > > Can't open Makelib.lcc > > > > After that: > > > > unix_s: error during "make -f Makelib.lcc all" execution ... > > > > Is the command unix_s correct although I am working on windows? > > > > I have googled around and found someone who says that you can compile > > Functions similar to S-Functions in Matlab by the ilib_for_link command. > > > > I have tried that with an example c-File which delivers exactly the same > > Warnings/Errors as mentioned above. > > > > > > Another question I have is: when I edit system functions as > > "ilib_for_link.sci" e.g. how is the corresponding ilib_for_link.bin file > > created? > > > > Thanks for any advise in advance > > > > Olaf > -- University of Applied Sciences of Southern Switzerland Dept. Innovative Technologies CH-6928 Lugano-Manno http://web.dti.supsi.ch/~bucher From trendic at gmx.de Tue Nov 24 21:31:28 2009 From: trendic at gmx.de (Dirk Schwitzt) Date: Tue, 24 Nov 2009 21:31:28 +0100 Subject: [scilab-Users] compiling c block with LCC In-Reply-To: <200911242050.27515.roberto.bucher@supsi.ch> References: <20091124104735.41180@gmx.net> <000b01ca6cf5$79a9a9f0$6cfcfdd0$@cornet@scilab.org> <20091124180939.98750@gmx.net> <200911242050.27515.roberto.bucher@supsi.ch> Message-ID: <20091124203128.248510@gmx.net> This doesnt change anything. It doesnt work with the VC compiler as well. It says: ilib_for_link('pendel_c.c','pendel_c.o',[],'c'); erzeuge eine Laderdatei erzeuge ein Makefile F?hre Makefile aus Kompilation von pendel_c erzeuge eine gemeisame Bibliothek (habe Sie Geduld) NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio 8\VC\bin\cl.EXE"' : return code '0x2' Stop. !--error 10000 unix_s: error during "nmake /Y /nologo /f Makelib.mak all" execution at line 34 of function unix_s called by : at line 67 of function ilib_compile called by : at line 59 of function ilib_for_link called by : ilib_for_link('pendel_c.c','pendel_c.o',[],'c'); Any ideas? -------- Original-Nachricht -------- > Datum: Tue, 24 Nov 2009 20:50:27 +0100 > Von: Roberto Bucher > An: users at lists.scilab.org > CC: trendic at gmx.de > Betreff: Re: [scilab-Users] compiling c block with LCC > Try to cmodify as some parts as following > > ... > if(flag==1){ > double *y = block->outptr[0]; > y[0] = block->x[0]; > ... > double *M = block->inptr[0]; > ... > > block->xd[1]=1/m/l/l*(g*l*cos(phi)*m-c*phi-M[0]-d*omega); > ... > > Regards > > Roberto Bucher > > On Tuesday 24 November 2009 19:09:39 trendic at gmx.de wrote: > > Hi, > > > > Even if there is an error in the code I dont understand the > > Warnings/errors. This is the example Code: > > > > #include > > #include > > void pendel_c(scicos_block *block, int flag) { > > if(flag==1){ > > block->outptr[0][0]=block->x[0]; > > } > > if(flag==0){ > > double g=9.81; > > double m = block->rpar[0]; > > double l = block->rpar[1]; > > double c = block->rpar[2]; > > double d = block->rpar[3]; > > double phi=block->x[0]; //phi > > double omega=block->x[1]; //omega > > double M = block->inptr[0][0]; > > block->xd[0]=block->x[1]; > > block->xd[1]=1/m/l/l*(g*l*cos(phi)*m-c*phi-M-d*omega); > > } > > } > > > > > > I have tried to insert the Code in a block and tried the command > > > > ilib_for_link('pendel_c','pendel.o',[],'c'); > > > > best regards > > > > -------- Original-Nachricht -------- > > > > > Datum: Tue, 24 Nov 2009 12:01:29 +0100 > > > Von: "Allan CORNET" > > > An: users at lists.scilab.org > > > Betreff: RE: [scilab-Users] compiling c block with LCC > > > > > > Hi, > > > > > > Can you attach your diagram (example) ? > > > > > > Thanks you > > > > > > -- > > > ------------------------- > > > Allan CORNET > > > ------------------------- > > > The Scilab Consortium > > > Digiteo > > > Domaine de Voluceau > > > Rocquencourt - B.P. 105 > > > 78153 Le Chesnay Cedex > > > France > > > > > > -----Message d'origine----- > > > De : trendic at gmx.de [mailto:trendic at gmx.de] > > > Envoy? : mardi 24 novembre 2009 11:48 > > > ? : users at lists.scilab.org > > > Objet : [scilab-Users] compiling c block with LCC > > > > > > Hello, > > > > > > Does anyone know how to compile and link a c block for scicos? > > > > > > I have tried with the Blocks in the Palette "user defined functions" > but > > > I get errors with that. At first I recieve the warning: > > > > > > C:/SCILAB~1/modules/dynamic_link/src/scripts/TEMPLATE_MAKEFILE.LCCnot > > > found. > > > > > > which is surprising since there is a file with that name at exactly > that > > > position. I further get the Message > > > > > > Can't open Makelib.lcc > > > > > > After that: > > > > > > unix_s: error during "make -f Makelib.lcc all" execution ... > > > > > > Is the command unix_s correct although I am working on windows? > > > > > > I have googled around and found someone who says that you can compile > > > Functions similar to S-Functions in Matlab by the ilib_for_link > command. > > > > > > I have tried that with an example c-File which delivers exactly the > same > > > Warnings/Errors as mentioned above. > > > > > > > > > Another question I have is: when I edit system functions as > > > "ilib_for_link.sci" e.g. how is the corresponding ilib_for_link.bin > file > > > created? > > > > > > Thanks for any advise in advance > > > > > > Olaf > > > > -- > University of Applied Sciences of Southern Switzerland > Dept. Innovative Technologies > CH-6928 Lugano-Manno > http://web.dti.supsi.ch/~bucher -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser From allan.cornet at scilab.org Wed Nov 25 08:50:11 2009 From: allan.cornet at scilab.org (Allan CORNET) Date: Wed, 25 Nov 2009 08:50:11 +0100 Subject: [scilab-Users] compiling c block with LCC In-Reply-To: <20091124203128.248510@gmx.net> References: <20091124104735.41180@gmx.net> <000b01ca6cf5$79a9a9f0$6cfcfdd0$@cornet@scilab.org> <20091124180939.98750@gmx.net> <200911242050.27515.roberto.bucher@supsi.ch> <20091124203128.248510@gmx.net> Message-ID: <000901ca6da3$ead73670$c085a350$@cornet@scilab.org> Hi, Try this: Save as 'pendel_c.c' filename #include #include void pendel_c(scicos_block *block, int flag) { if(flag==1){ block->outptr[0][0]=block->x[0]; } if(flag==0){ double g=9.81; double m = block->rpar[0]; double l = block->rpar[1]; double c = block->rpar[2]; double d = block->rpar[3]; double phi=block->x[0]; //phi double omega=block->x[1]; //omega double M = block->inptr[0][0]; block->xd[0]=block->x[1]; block->xd[1]=1/m/l/l*(g*l*cos(phi)*m-c*phi-M-d*omega); } } ilib_for_link('pendel_c','pendel_c.c','','c','','loader.sce','','','-I""' +WSCI+'\modules\scicos_blocks\includes""') With Scilab 5.2-beta1: -->ilib_for_link('pendel_c','pendel_c.c','','c','','loader.sce','','','-I""' +WSCI+'\modules\scicos_blocks\includes""') Generate a loader file Generate a Makefile Running the Makefile Compilation of pendel_c.c Building shared library (be patient) Generate a cleaner file ans = libpendel_c.dll Best Regards Allan CORNET -- ------------------------- Allan CORNET ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France -----Message d'origine----- De?: Dirk Schwitzt [mailto:trendic at gmx.de] Envoy??: mardi 24 novembre 2009 21:31 ??: users at lists.scilab.org Objet?: Re: [scilab-Users] compiling c block with LCC This doesnt change anything. It doesnt work with the VC compiler as well. It says: ilib_for_link('pendel_c.c','pendel_c.o',[],'c'); erzeuge eine Laderdatei erzeuge ein Makefile F?hre Makefile aus Kompilation von pendel_c erzeuge eine gemeisame Bibliothek (habe Sie Geduld) NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio 8\VC\bin\cl.EXE"' : return code '0x2' Stop. !--error 10000 unix_s: error during "nmake /Y /nologo /f Makelib.mak all" execution at line 34 of function unix_s called by : at line 67 of function ilib_compile called by : at line 59 of function ilib_for_link called by : ilib_for_link('pendel_c.c','pendel_c.o',[],'c'); Any ideas? -------- Original-Nachricht -------- > Datum: Tue, 24 Nov 2009 20:50:27 +0100 > Von: Roberto Bucher > An: users at lists.scilab.org > CC: trendic at gmx.de > Betreff: Re: [scilab-Users] compiling c block with LCC > Try to cmodify as some parts as following > > ... > if(flag==1){ > double *y = block->outptr[0]; > y[0] = block->x[0]; > ... > double *M = block->inptr[0]; > ... > > block->xd[1]=1/m/l/l*(g*l*cos(phi)*m-c*phi-M[0]-d*omega); > ... > > Regards > > Roberto Bucher > > On Tuesday 24 November 2009 19:09:39 trendic at gmx.de wrote: > > Hi, > > > > Even if there is an error in the code I dont understand the > > Warnings/errors. This is the example Code: > > > > #include > > #include > > void pendel_c(scicos_block *block, int flag) { > > if(flag==1){ > > block->outptr[0][0]=block->x[0]; > > } > > if(flag==0){ > > double g=9.81; > > double m = block->rpar[0]; > > double l = block->rpar[1]; > > double c = block->rpar[2]; > > double d = block->rpar[3]; > > double phi=block->x[0]; //phi > > double omega=block->x[1]; //omega > > double M = block->inptr[0][0]; > > block->xd[0]=block->x[1]; > > block->xd[1]=1/m/l/l*(g*l*cos(phi)*m-c*phi-M-d*omega); > > } > > } > > > > > > I have tried to insert the Code in a block and tried the command > > > > ilib_for_link('pendel_c','pendel.o',[],'c'); > > > > best regards > > > > -------- Original-Nachricht -------- > > > > > Datum: Tue, 24 Nov 2009 12:01:29 +0100 > > > Von: "Allan CORNET" > > > An: users at lists.scilab.org > > > Betreff: RE: [scilab-Users] compiling c block with LCC > > > > > > Hi, > > > > > > Can you attach your diagram (example) ? > > > > > > Thanks you > > > > > > -- > > > ------------------------- > > > Allan CORNET > > > ------------------------- > > > The Scilab Consortium > > > Digiteo > > > Domaine de Voluceau > > > Rocquencourt - B.P. 105 > > > 78153 Le Chesnay Cedex > > > France > > > > > > -----Message d'origine----- > > > De : trendic at gmx.de [mailto:trendic at gmx.de] > > > Envoy? : mardi 24 novembre 2009 11:48 > > > ? : users at lists.scilab.org > > > Objet : [scilab-Users] compiling c block with LCC > > > > > > Hello, > > > > > > Does anyone know how to compile and link a c block for scicos? > > > > > > I have tried with the Blocks in the Palette "user defined functions" > but > > > I get errors with that. At first I recieve the warning: > > > > > > C:/SCILAB~1/modules/dynamic_link/src/scripts/TEMPLATE_MAKEFILE.LCCnot > > > found. > > > > > > which is surprising since there is a file with that name at exactly > that > > > position. I further get the Message > > > > > > Can't open Makelib.lcc > > > > > > After that: > > > > > > unix_s: error during "make -f Makelib.lcc all" execution ... > > > > > > Is the command unix_s correct although I am working on windows? > > > > > > I have googled around and found someone who says that you can compile > > > Functions similar to S-Functions in Matlab by the ilib_for_link > command. > > > > > > I have tried that with an example c-File which delivers exactly the > same > > > Warnings/Errors as mentioned above. > > > > > > > > > Another question I have is: when I edit system functions as > > > "ilib_for_link.sci" e.g. how is the corresponding ilib_for_link.bin > file > > > created? > > > > > > Thanks for any advise in advance > > > > > > Olaf > > > > -- > University of Applied Sciences of Southern Switzerland > Dept. Innovative Technologies > CH-6928 Lugano-Manno > http://web.dti.supsi.ch/~bucher -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser From trendic at gmx.de Wed Nov 25 09:58:27 2009 From: trendic at gmx.de (trendic at gmx.de) Date: Wed, 25 Nov 2009 09:58:27 +0100 Subject: [scilab-Users] compiling c block with LCC In-Reply-To: <000901ca6da3$ead73670$c085a350$@cornet@scilab.org> References: <20091124104735.41180@gmx.net> <000b01ca6cf5$79a9a9f0$6cfcfdd0$@cornet@scilab.org> <20091124180939.98750@gmx.net> <200911242050.27515.roberto.bucher@supsi.ch> <20091124203128.248510@gmx.net> <000901ca6da3$ead73670$c085a350$@cornet@scilab.org> Message-ID: <20091125085827.39500@gmx.net> Hi, thanks for your advices. Unfortunately it still doesnt work. What I have done. I have created a user directory under scilab path. In the console i switch to that directory by the cd command. I save the file pendel_c.c in that directory. Then I type in the command as suggested. I use the beta version 5.2. I have installed the latest LCC compiler. My results are the same as before: >ilib_for_link('pendel_c','pendel_c.c','','c','','loader.sce','','','-I""'+WSCI+'\modules\scicos_blocks\includes""') erzeuge eine Laderdatei erzeuge ein Makefile Warnung: C:/SCILAB~1/modules/dynamic_link/src/scripts/TEMPLATE_MAKEFILE.LCCnot found. F?hre Makefile aus Kompilation von pendel_c.c erzeuge eine gemeisame Bibliothek (habe Sie Geduld) make: Can't open makelib.lcc !--error 10000 unix_s: error during "make -f makelib.lcc all" execution at line 34 of function unix_s called by : at line 67 of function ilib_compile called by : at line 59 of function ilib_for_link called by : ilib_for_link('pendel_c','pendel_c.c','','c','','loader.sce','','','-I""'+WSCI+'\modules\scicos_blocks\includes""') I still dont understand why it is said the makefile TEMPLATE_MAKEFILE.LCC is not found. It is exactly there. Can there be a problem with the tilde in SCILAB~1 ? best regards Olaf -------- Original-Nachricht -------- > Datum: Wed, 25 Nov 2009 08:50:11 +0100 > Von: "Allan CORNET" > An: users at lists.scilab.org > Betreff: RE: [scilab-Users] compiling c block with LCC > Hi, > > Try this: > > Save as 'pendel_c.c' filename > > #include > #include > void pendel_c(scicos_block *block, int flag) { if(flag==1){ > block->outptr[0][0]=block->x[0]; > } > if(flag==0){ > double g=9.81; > double m = block->rpar[0]; > double l = block->rpar[1]; > double c = block->rpar[2]; > double d = block->rpar[3]; > double phi=block->x[0]; //phi > double omega=block->x[1]; //omega > double M = block->inptr[0][0]; > block->xd[0]=block->x[1]; > block->xd[1]=1/m/l/l*(g*l*cos(phi)*m-c*phi-M-d*omega); > } > } > > ilib_for_link('pendel_c','pendel_c.c','','c','','loader.sce','','','-I""' > +WSCI+'\modules\scicos_blocks\includes""') > > With Scilab 5.2-beta1: > > -->ilib_for_link('pendel_c','pendel_c.c','','c','','loader.sce','','','-I""' > +WSCI+'\modules\scicos_blocks\includes""') > Generate a loader file > Generate a Makefile > Running the Makefile > Compilation of pendel_c.c > Building shared library (be patient) > Generate a cleaner file > ans = > > libpendel_c.dll > > > > Best Regards > > Allan CORNET > > -- > ------------------------- > Allan CORNET > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > -----Message d'origine----- > De?: Dirk Schwitzt [mailto:trendic at gmx.de] > Envoy??: mardi 24 novembre 2009 21:31 > ??: users at lists.scilab.org > Objet?: Re: [scilab-Users] compiling c block with LCC > > This doesnt change anything. > > It doesnt work with the VC compiler as well. It says: > > ilib_for_link('pendel_c.c','pendel_c.o',[],'c'); > erzeuge eine Laderdatei > erzeuge ein Makefile > F?hre Makefile aus > Kompilation von pendel_c > erzeuge eine gemeisame Bibliothek (habe Sie Geduld) > NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio > 8\VC\bin\cl.EXE"' : return code '0x2' > Stop. > !--error 10000 > unix_s: error during "nmake /Y /nologo /f Makelib.mak all" execution > at line 34 of function unix_s called by : > at line 67 of function ilib_compile called by : > at line 59 of function ilib_for_link called by : > ilib_for_link('pendel_c.c','pendel_c.o',[],'c'); > > > Any ideas? > > > > -------- Original-Nachricht -------- > > Datum: Tue, 24 Nov 2009 20:50:27 +0100 > > Von: Roberto Bucher > > An: users at lists.scilab.org > > CC: trendic at gmx.de > > Betreff: Re: [scilab-Users] compiling c block with LCC > > > Try to cmodify as some parts as following > > > > ... > > if(flag==1){ > > double *y = block->outptr[0]; > > y[0] = block->x[0]; > > ... > > double *M = block->inptr[0]; > > ... > > > > block->xd[1]=1/m/l/l*(g*l*cos(phi)*m-c*phi-M[0]-d*omega); > > ... > > > > Regards > > > > Roberto Bucher > > > > On Tuesday 24 November 2009 19:09:39 trendic at gmx.de wrote: > > > Hi, > > > > > > Even if there is an error in the code I dont understand the > > > Warnings/errors. This is the example Code: > > > > > > #include > > > #include > > > void pendel_c(scicos_block *block, int flag) { > > > if(flag==1){ > > > block->outptr[0][0]=block->x[0]; > > > } > > > if(flag==0){ > > > double g=9.81; > > > double m = block->rpar[0]; > > > double l = block->rpar[1]; > > > double c = block->rpar[2]; > > > double d = block->rpar[3]; > > > double phi=block->x[0]; //phi > > > double omega=block->x[1]; //omega > > > double M = block->inptr[0][0]; > > > block->xd[0]=block->x[1]; > > > block->xd[1]=1/m/l/l*(g*l*cos(phi)*m-c*phi-M-d*omega); > > > } > > > } > > > > > > > > > I have tried to insert the Code in a block and tried the command > > > > > > ilib_for_link('pendel_c','pendel.o',[],'c'); > > > > > > best regards > > > > > > -------- Original-Nachricht -------- > > > > > > > Datum: Tue, 24 Nov 2009 12:01:29 +0100 > > > > Von: "Allan CORNET" > > > > An: users at lists.scilab.org > > > > Betreff: RE: [scilab-Users] compiling c block with LCC > > > > > > > > Hi, > > > > > > > > Can you attach your diagram (example) ? > > > > > > > > Thanks you > > > > > > > > -- > > > > ------------------------- > > > > Allan CORNET > > > > ------------------------- > > > > The Scilab Consortium > > > > Digiteo > > > > Domaine de Voluceau > > > > Rocquencourt - B.P. 105 > > > > 78153 Le Chesnay Cedex > > > > France > > > > > > > > -----Message d'origine----- > > > > De : trendic at gmx.de [mailto:trendic at gmx.de] > > > > Envoy? : mardi 24 novembre 2009 11:48 > > > > ? : users at lists.scilab.org > > > > Objet : [scilab-Users] compiling c block with LCC > > > > > > > > Hello, > > > > > > > > Does anyone know how to compile and link a c block for scicos? > > > > > > > > I have tried with the Blocks in the Palette "user defined functions" > > but > > > > I get errors with that. At first I recieve the warning: > > > > > > > > > C:/SCILAB~1/modules/dynamic_link/src/scripts/TEMPLATE_MAKEFILE.LCCnot > > > > found. > > > > > > > > which is surprising since there is a file with that name at exactly > > that > > > > position. I further get the Message > > > > > > > > Can't open Makelib.lcc > > > > > > > > After that: > > > > > > > > unix_s: error during "make -f Makelib.lcc all" execution ... > > > > > > > > Is the command unix_s correct although I am working on windows? > > > > > > > > I have googled around and found someone who says that you can > compile > > > > Functions similar to S-Functions in Matlab by the ilib_for_link > > command. > > > > > > > > I have tried that with an example c-File which delivers exactly the > > same > > > > Warnings/Errors as mentioned above. > > > > > > > > > > > > Another question I have is: when I edit system functions as > > > > "ilib_for_link.sci" e.g. how is the corresponding ilib_for_link.bin > > file > > > > created? > > > > > > > > Thanks for any advise in advance > > > > > > > > Olaf > > > > > > > -- > > University of Applied Sciences of Southern Switzerland > > Dept. Innovative Technologies > > CH-6928 Lugano-Manno > > http://web.dti.supsi.ch/~bucher > > -- > Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 > - > sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser From allan.cornet at scilab.org Wed Nov 25 10:12:29 2009 From: allan.cornet at scilab.org (Allan CORNET) Date: Wed, 25 Nov 2009 10:12:29 +0100 Subject: [scilab-Users] compiling c block with LCC In-Reply-To: <20091125085827.39500@gmx.net> References: <20091124104735.41180@gmx.net> <000b01ca6cf5$79a9a9f0$6cfcfdd0$@cornet@scilab.org> <20091124180939.98750@gmx.net> <200911242050.27515.roberto.bucher@supsi.ch> <20091124203128.248510@gmx.net> <000901ca6da3$ead73670$c085a350$@cornet@scilab.org> <20091125085827.39500@gmx.net> Message-ID: <001201ca6daf$6afed370$40fc7a50$@cornet@scilab.org> Hi, http://bugzilla.scilab.org/show_bug.cgi?id=5484 We will fix for 5.2 Thanks you Allan -----Message d'origine----- De?: trendic at gmx.de [mailto:trendic at gmx.de] Envoy??: mercredi 25 novembre 2009 09:58 ??: users at lists.scilab.org Objet?: Re: RE: [scilab-Users] compiling c block with LCC Hi, thanks for your advices. Unfortunately it still doesnt work. What I have done. I have created a user directory under scilab path. In the console i switch to that directory by the cd command. I save the file pendel_c.c in that directory. Then I type in the command as suggested. I use the beta version 5.2. I have installed the latest LCC compiler. My results are the same as before: >ilib_for_link('pendel_c','pendel_c.c','','c','','loader.sce','','','-I""'+W SCI+'\modules\scicos_blocks\includes""') erzeuge eine Laderdatei erzeuge ein Makefile Warnung: C:/SCILAB~1/modules/dynamic_link/src/scripts/TEMPLATE_MAKEFILE.LCCnot found. F?hre Makefile aus Kompilation von pendel_c.c erzeuge eine gemeisame Bibliothek (habe Sie Geduld) make: Can't open makelib.lcc !--error 10000 unix_s: error during "make -f makelib.lcc all" execution at line 34 of function unix_s called by : at line 67 of function ilib_compile called by : at line 59 of function ilib_for_link called by : ilib_for_link('pendel_c','pendel_c.c','','c','','loader.sce','','','-I""'+WS CI+'\modules\scicos_blocks\includes""') I still dont understand why it is said the makefile TEMPLATE_MAKEFILE.LCC is not found. It is exactly there. Can there be a problem with the tilde in SCILAB~1 ? best regards Olaf -------- Original-Nachricht -------- > Datum: Wed, 25 Nov 2009 08:50:11 +0100 > Von: "Allan CORNET" > An: users at lists.scilab.org > Betreff: RE: [scilab-Users] compiling c block with LCC > Hi, > > Try this: > > Save as 'pendel_c.c' filename > > #include > #include > void pendel_c(scicos_block *block, int flag) { if(flag==1){ > block->outptr[0][0]=block->x[0]; > } > if(flag==0){ > double g=9.81; > double m = block->rpar[0]; > double l = block->rpar[1]; > double c = block->rpar[2]; > double d = block->rpar[3]; > double phi=block->x[0]; //phi > double omega=block->x[1]; //omega > double M = block->inptr[0][0]; > block->xd[0]=block->x[1]; > block->xd[1]=1/m/l/l*(g*l*cos(phi)*m-c*phi-M-d*omega); > } > } > > ilib_for_link('pendel_c','pendel_c.c','','c','','loader.sce','','','-I""' > +WSCI+'\modules\scicos_blocks\includes""') > > With Scilab 5.2-beta1: > > -->ilib_for_link('pendel_c','pendel_c.c','','c','','loader.sce','','','-I""' > +WSCI+'\modules\scicos_blocks\includes""') > Generate a loader file > Generate a Makefile > Running the Makefile > Compilation of pendel_c.c > Building shared library (be patient) > Generate a cleaner file > ans = > > libpendel_c.dll > > > > Best Regards > > Allan CORNET > > -- > ------------------------- > Allan CORNET > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > > -----Message d'origine----- > De?: Dirk Schwitzt [mailto:trendic at gmx.de] > Envoy??: mardi 24 novembre 2009 21:31 > ??: users at lists.scilab.org > Objet?: Re: [scilab-Users] compiling c block with LCC > > This doesnt change anything. > > It doesnt work with the VC compiler as well. It says: > > ilib_for_link('pendel_c.c','pendel_c.o',[],'c'); > erzeuge eine Laderdatei > erzeuge ein Makefile > F?hre Makefile aus > Kompilation von pendel_c > erzeuge eine gemeisame Bibliothek (habe Sie Geduld) > NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio > 8\VC\bin\cl.EXE"' : return code '0x2' > Stop. > !--error 10000 > unix_s: error during "nmake /Y /nologo /f Makelib.mak all" execution > at line 34 of function unix_s called by : > at line 67 of function ilib_compile called by : > at line 59 of function ilib_for_link called by : > ilib_for_link('pendel_c.c','pendel_c.o',[],'c'); > > > Any ideas? > > > > -------- Original-Nachricht -------- > > Datum: Tue, 24 Nov 2009 20:50:27 +0100 > > Von: Roberto Bucher > > An: users at lists.scilab.org > > CC: trendic at gmx.de > > Betreff: Re: [scilab-Users] compiling c block with LCC > > > Try to cmodify as some parts as following > > > > ... > > if(flag==1){ > > double *y = block->outptr[0]; > > y[0] = block->x[0]; > > ... > > double *M = block->inptr[0]; > > ... > > > > block->xd[1]=1/m/l/l*(g*l*cos(phi)*m-c*phi-M[0]-d*omega); > > ... > > > > Regards > > > > Roberto Bucher > > > > On Tuesday 24 November 2009 19:09:39 trendic at gmx.de wrote: > > > Hi, > > > > > > Even if there is an error in the code I dont understand the > > > Warnings/errors. This is the example Code: > > > > > > #include > > > #include > > > void pendel_c(scicos_block *block, int flag) { > > > if(flag==1){ > > > block->outptr[0][0]=block->x[0]; > > > } > > > if(flag==0){ > > > double g=9.81; > > > double m = block->rpar[0]; > > > double l = block->rpar[1]; > > > double c = block->rpar[2]; > > > double d = block->rpar[3]; > > > double phi=block->x[0]; //phi > > > double omega=block->x[1]; //omega > > > double M = block->inptr[0][0]; > > > block->xd[0]=block->x[1]; > > > block->xd[1]=1/m/l/l*(g*l*cos(phi)*m-c*phi-M-d*omega); > > > } > > > } > > > > > > > > > I have tried to insert the Code in a block and tried the command > > > > > > ilib_for_link('pendel_c','pendel.o',[],'c'); > > > > > > best regards > > > > > > -------- Original-Nachricht -------- > > > > > > > Datum: Tue, 24 Nov 2009 12:01:29 +0100 > > > > Von: "Allan CORNET" > > > > An: users at lists.scilab.org > > > > Betreff: RE: [scilab-Users] compiling c block with LCC > > > > > > > > Hi, > > > > > > > > Can you attach your diagram (example) ? > > > > > > > > Thanks you > > > > > > > > -- > > > > ------------------------- > > > > Allan CORNET > > > > ------------------------- > > > > The Scilab Consortium > > > > Digiteo > > > > Domaine de Voluceau > > > > Rocquencourt - B.P. 105 > > > > 78153 Le Chesnay Cedex > > > > France > > > > > > > > -----Message d'origine----- > > > > De : trendic at gmx.de [mailto:trendic at gmx.de] > > > > Envoy? : mardi 24 novembre 2009 11:48 > > > > ? : users at lists.scilab.org > > > > Objet : [scilab-Users] compiling c block with LCC > > > > > > > > Hello, > > > > > > > > Does anyone know how to compile and link a c block for scicos? > > > > > > > > I have tried with the Blocks in the Palette "user defined functions" > > but > > > > I get errors with that. At first I recieve the warning: > > > > > > > > > C:/SCILAB~1/modules/dynamic_link/src/scripts/TEMPLATE_MAKEFILE.LCCnot > > > > found. > > > > > > > > which is surprising since there is a file with that name at exactly > > that > > > > position. I further get the Message > > > > > > > > Can't open Makelib.lcc > > > > > > > > After that: > > > > > > > > unix_s: error during "make -f Makelib.lcc all" execution ... > > > > > > > > Is the command unix_s correct although I am working on windows? > > > > > > > > I have googled around and found someone who says that you can > compile > > > > Functions similar to S-Functions in Matlab by the ilib_for_link > > command. > > > > > > > > I have tried that with an example c-File which delivers exactly the > > same > > > > Warnings/Errors as mentioned above. > > > > > > > > > > > > Another question I have is: when I edit system functions as > > > > "ilib_for_link.sci" e.g. how is the corresponding ilib_for_link.bin > > file > > > > created? > > > > > > > > Thanks for any advise in advance > > > > > > > > Olaf > > > > > > > -- > > University of Applied Sciences of Southern Switzerland > > Dept. Innovative Technologies > > CH-6928 Lugano-Manno > > http://web.dti.supsi.ch/~bucher > > -- > Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 > - > sicherer, schneller und einfacher! http://portal.gmx.net/de/go/chbrowser -- Jetzt kostenlos herunterladen: Internet Explorer 8 und Mozilla Firefox 3.5 - sicherer, schneller und einfacher! http://portal.gmx.net/de/go/atbrowser From iskandhar2000 at gmail.com Wed Nov 25 14:13:13 2009 From: iskandhar2000 at gmail.com (Alexandre Pereira) Date: Wed, 25 Nov 2009 13:13:13 +0000 Subject: [scilab-Users] Compilation of Scilab under Slackware 64 13 fails... clock_gettime issue... In-Reply-To: <1259079750.10460.100.camel@korcula.inria.fr> References: <39243d120911231119t33b3920dt84fbdac42587e378@mail.gmail.com> <1259019646.5363.7175.camel@zlarin> <39243d120911240739k471583b3o865a73fba1332a44@mail.gmail.com> <1259077591.10460.89.camel@korcula.inria.fr> <39243d120911240814n6173dab7u33320d3474d0f528@mail.gmail.com> <1259079750.10460.100.camel@korcula.inria.fr> Message-ID: <39243d120911250513m32151a14u20d7b462c4c1b96c@mail.gmail.com> Hi Laurent I Have tried to compile the SlackBuild for Scilab http://repository.slacky.eu/slackware-12.2/scientific/scilab/5.1 from Slacky e.u. for x64 arch under Slackware; I Have manually download the packages, to an USB disk because my Slackware machine does not have www connection, and I have changed the slackbuild to use the tarballs, instead of downloading them, as well as to build for x86_64 arch ( Slackware 12.2 is 32 bits ); Also made some changes as to use gfortran, and about the location of ant. The external prerequirements are all set up : pvm, lapack, blas, umfpack, metis, jdk, ocaml, fftw3, ant. ( there are slackbulds for them too, either for SL 12.2, or for SL 13...) . this is the Slackbuild as I changed it...: #!/bin/sh # Heavily based on the Slackware 12.2 SlackBuild # http://www.scilab.org/ # Packager Vincenzi Loris - slacky at slacky.it CWD=`pwd` TMP=${TMP:-/tmp/tgz} PKG=$TMP/package-scilab NAME=scilab VERSION=5.1 ################################### CHOST=x86_64 ################################### ARCH=${ARCH:-x86_64} ################################### BUILD=1sl SOURCE=http://www.scilab.org/download/$VERSION/$NAME-$VERSION-src.tar.gz PREREQUIREMENTS= http://www.scilab.org/download/$VERSION/prerequirements-$NAME-$VERSION-src.tar.gz # PVM=http://www.netlib.org/pvm3/pvm3.4.6.tgz set -e ################################################## #if [ ! -e prerequirements-$NAME-$VERSION-src.tar.gz ]; then #echo "Downloading prerequirements" #wget -c $PREREQUIREMENTS #fi # if [ ! -e pvm3.4.6.tgz ]; then # echo "Downloading PVM" # wget -c $PVM # fi #if [ ! -e $NAME-$VERSION-src.tar.gz ]; then #echo "Downloading source" #wget -c $SOURCE #fi ############################################### if [ "$ARCH" = "i386" ]; then SLKCFLAGS="-O2 -march=i386 -mcpu=i686" elif [ "$ARCH" = "i486" ]; then SLKCFLAGS="-O2 -march=i486 -mtune=i686" elif [ "$ARCH" = "i686" ]; then SLKCFLAGS="-O2" elif [ "$ARCH" = "s390" ]; then SLKCFLAGS="-O2" elif [ "$ARCH" = "x86_64" ]; then SLKCFLAGS="-O2" fi if [ ! -d $TMP ]; then mkdir -p $TMP fi if [ ! -d $PKG ]; then mkdir -p $PKG fi cd $TMP # tar xzf $CWD/pvm3.4.6.tgz # export PVM_ROOT=$TMP/pvm3 # ( # echo "Building PVM" # cd pvm3 # CFLOPTS="$SLKCFLAGS" \ # FFLOPTS="$SLKCFLAGS" \ # make # make install # ) echo "Unpacking Prerequirements (this can take several minutes)" ######################################################################## tar xzf $CWD/prerequirements-$NAME-$VERSION-x86_64-src.tar.gz ######################################################################## tar xzf $CWD/$NAME-$VERSION-src.tar.gz echo "+==============================================================================" echo "| Building $NAME-$VERSION" echo "+==============================================================================" cd $NAME-$VERSION find . \( -perm 777 -o -perm 775 -o -perm 711 \) -exec chmod 755 {} \; find . \( -perm 700 -o -perm 555 -o -perm 511 \) -exec chmod 755 {} \; find . \( -perm 666 -o -perm 664 -o -perm 600 \) -exec chmod 644 {} \; find . \( -perm 444 -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; chown -R root:root . CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ FFLABS="$SLKCFLAGS" \ ./configure --prefix=/usr \ ############################################# --with-gfortran \ ############################################# --sysconfdir=/etc \ --without-ocaml \ --without-pvm \ --with-jdk=$TMP/$NAME-$VERSION/java/jdk \ --without-matio \ ############################################# --with-ant=/usr/bin \ ############################################# --with-x \ --enable-build-localization \ --enable-build-help \ --build=$CHOST-slackware-linux make all make doc make install DESTDIR=$PKG cd $PKG mv $TMP/$NAME-$VERSION/thirdparty $PKG/usr/share/$NAME cp $TMP/$NAME-$VERSION/bin/lib* $PKG/usr/lib/$NAME/ sed -i "s/\/tmp\/tgz\/$NAME-$VERSION/\$SCILAB/" $PKG/usr/share/scilab/etc/classpath.xml find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null find . | xargs file | grep "current ar archive" | cut -f 1 -d : | xargs strip -g 2> /dev/null mkdir -p $PKG/usr/share/applications cp $CWD/scilab.desktop $PKG/usr/share/applications mkdir -p $PKG/usr/share/pixmaps cp $CWD/scilab.png $PKG/usr/share/pixmaps mkdir -p $PKG/usr/doc/$NAME-$VERSION ln -s /usr/share/$NAME $PKG/usr/doc/$NAME-$VERSION mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc cat $CWD/slack-desc > $PKG/usr/doc/$NAME-$VERSION/slack-desc cat $CWD/$NAME.SlackBuild > $PKG/usr/doc/$NAME-$VERSION/$NAME.SlackBuild requiredbuilder -v -y -s $CWD $PKG makepkg -l y -c n $CWD/../$NAME-$VERSION-$ARCH-$BUILD.tgz if [ "$1" = "--cleanup" ]; then rm -rf $TMP fi My changes are between comment lines....; Anyway, the script, identifies the packages, untar them, and configures. When it reaches the build phase, it complains in the same place, the ../libs/MALLOC thing, not finding some object to link with... and it is all about some mv -f something... I do not have the detailed log, I teft it at my home PC, but I will bring this tomorrow... Is This error reproducible...? I will post this problem to the Slackware forum in LinuxQuestions, but one thing puzzles me though... this happened in a freshly untared source tree, in a fresh install of Slackware 64 13 with the default options... The only things I changed were : The prerequirements ( as Slackbuilds ) to install GMSH, Paraview, Gnumeric, and Octave/QtOctave, ( all standard to SL 13 ) and I downgraded Python 2.6.2 to Python 2.5.2 using a Slackware 12.1 Slackbuild, to allow me to build Code Aster ( which calls for Python 2.5 ) And I upgraded Mesa to to allow me to use BRL CAD with Raytracing features Do you think that any of these things may have contributed to Scilab not properly building... ? I mean... I can use src2pkg ( a Slackware build system ) to build cmake projects, as well as "configure make install" build systems... why does Scilab fails.... ? :-( BRGDS Alex 2009/11/24 Sylvestre Ledru > > > > > I will also try to use new tarballs for prerequirements and src as for > > Scilab 5.1.1 > > so as to have a brand new source tree, I will post the results back > > here tomorrow... :-) > OK, Thanks. > > > BTW one more question, Is there any net advantage in using the Intel > > development toolchain to build Scilab, as compared to using > > gcc/gfortran...? > Yep, the Intel compilers are producing a faster Scilab but first, if you > are focusing on the performances, use Atlas or MKL instead of refblas. > > Sylvestre > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From sbihorel at gmail.com Wed Nov 25 14:50:49 2009 From: sbihorel at gmail.com (=?ISO-8859-1?Q?S=E9bastien_Bihorel?=) Date: Wed, 25 Nov 2009 08:50:49 -0500 Subject: Delayed differential equation solver Message-ID: Dear Scilab users, I would like to know if there is a solver of delayed differential equations in Scilab, something which would be the equivalent of the dde23 solver from Matlab. Thank you Sebastien -------------- next part -------------- An HTML attachment was scrubbed... URL: From sumit.adhikari at gmail.com Thu Nov 26 11:54:24 2009 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Thu, 26 Nov 2009 16:24:24 +0530 Subject: [scilab-Users] Delayed differential equation solver In-Reply-To: References: Message-ID: Following script is not terminating. It is stuck at line : Hcic = Hcic_num / Hcic_den ; SCRIPT : ----------- clear all ; stacksize('max'); z = poly(0,'z'); N = 32 ; M = 3 ; M = 1024 ; Hn = syslin('c',(z^M - 1.0), (z^M)); Hcic_num = Hn*Hn*Hn; Hd = syslin('c',(z- 1.0), (z)); Hcic_den = Hd*Hd*Hd ; Hcic = Hcic_num / Hcic_den ; Npoints = 1024*1024; [hzm,fr]=frmag(Hcic,Npoints); SBW = 1024*1024; frm = fr*SBW; //xbasc(0);xset('window',0);plot(log10(frm(2:Npoints)),20*log10(hzm(2:Npoints)),"red"); mtlb_grid("on"); xbasc(0);xset('window',0);plot(frm(1:Npoints),hzm(1:Npoints),"red"); mtlb_grid("on"); xbasc(1);xset('window',1);plzr(H); mtlb_grid("on"); -------------------------------------------- Sumit Adhikari System Design Engineer austriamicrosystems AG Business Unit : Automotive Mob : 00-91-9885271710/00-91-9000161710 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sumit.adhikari at gmail.com Thu Nov 26 11:55:24 2009 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Thu, 26 Nov 2009 16:25:24 +0530 Subject: Reg :: Termination of this script Message-ID: Following script is not terminating. It is stuck at line : Hcic = Hcic_num / Hcic_den ; SCRIPT : ----------- clear all ; stacksize('max'); z = poly(0,'z'); N = 32 ; M = 3 ; M = 1024 ; Hn = syslin('c',(z^M - 1.0), (z^M)); Hcic_num = Hn*Hn*Hn; Hd = syslin('c',(z- 1.0), (z)); Hcic_den = Hd*Hd*Hd ; Hcic = Hcic_num / Hcic_den ; Npoints = 1024*1024; [hzm,fr]=frmag(Hcic,Npoints); SBW = 1024*1024; frm = fr*SBW; //xbasc(0);xset('window',0); plot(log10(frm(2:Npoints)),20*log10(hzm(2:Npoints)),"red"); mtlb_grid("on"); xbasc(0);xset('window',0);plot(frm(1:Npoints),hzm(1:Npoints),"red"); mtlb_grid("on"); xbasc(1);xset('window',1);plzr(H); mtlb_grid("on"); -- -------------------------------------------- Sumit Adhikari System Design Engineer austriamicrosystems AG Business Unit : Automotive Mob : 00-91-9885271710/00-91-9000161710 -------------- next part -------------- An HTML attachment was scrubbed... URL: From yann.collette at scilab.org Thu Nov 26 13:43:24 2009 From: yann.collette at scilab.org (Collette yann) Date: Thu, 26 Nov 2009 13:43:24 +0100 Subject: [scilab-Users] Reg :: Termination of this script In-Reply-To: References: Message-ID: <4B0E77EC.7070708@scilab.org> Works fine for me. It's just long ... Tested on scilab master. YC Sumit Adhikari a ?crit : > Following script is not terminating. It is stuck at line : > > Hcic = Hcic_num / Hcic_den ; > > > SCRIPT : > ----------- > > > clear all ; > > stacksize('max'); > > z = poly(0,'z'); > > N = 32 ; > M = 3 ; > > > M = 1024 ; > Hn = syslin('c',(z^M - 1.0), (z^M)); > Hcic_num = Hn*Hn*Hn; > > Hd = syslin('c',(z- 1.0), (z)); > Hcic_den = Hd*Hd*Hd ; > > Hcic = Hcic_num / Hcic_den ; > > > Npoints = 1024*1024; > [hzm,fr]=frmag(Hcic,Npoints); > SBW = 1024*1024; > frm = fr*SBW; > > > //xbasc(0);xset('window',0); > plot(log10(frm(2:Npoints)),20*log10(hzm(2:Npoints)),"red"); > mtlb_grid("on"); > xbasc(0);xset('window',0);plot(frm(1:Npoints),hzm(1:Npoints),"red"); > mtlb_grid("on"); > xbasc(1);xset('window',1);plzr(H); mtlb_grid("on"); > > > > -- > > -------------------------------------------- > Sumit Adhikari > System Design Engineer > austriamicrosystems AG > Business Unit : Automotive > Mob : 00-91-9885271710/00-91-9000161710 From sylvestre.ledru at scilab.org Thu Nov 26 17:38:40 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Thu, 26 Nov 2009 17:38:40 +0100 Subject: [scilab-Users] Compilation of Scilab under Slackware 64 13 fails... clock_gettime issue... In-Reply-To: <39243d120911250513m32151a14u20d7b462c4c1b96c@mail.gmail.com> References: <39243d120911231119t33b3920dt84fbdac42587e378@mail.gmail.com> <1259019646.5363.7175.camel@zlarin> <39243d120911240739k471583b3o865a73fba1332a44@mail.gmail.com> <1259077591.10460.89.camel@korcula.inria.fr> <39243d120911240814n6173dab7u33320d3474d0f528@mail.gmail.com> <1259079750.10460.100.camel@korcula.inria.fr> <39243d120911250513m32151a14u20d7b462c4c1b96c@mail.gmail.com> Message-ID: <1259253520.22126.850.camel@korcula.inria.fr> Le mercredi 25 novembre 2009 ? 13:13 +0000, Alexandre Pereira a ?crit : > Hi Laurent Laurent ? :) [...] > Do you think that any of these things may have contributed to Scilab > not properly building... ? Maybe. I really don't think it is Scilab-related. > I mean... I can use src2pkg ( a Slackware build system ) to build > cmake projects, as well as "configure make install" build systems... > why does Scilab fails.... ? :-( You should see with the Slackware community. ;) Please let me know if you find a fix for your problem. Sylvestre From iskandhar2000 at gmail.com Thu Nov 26 18:10:07 2009 From: iskandhar2000 at gmail.com (Alexandre Pereira) Date: Thu, 26 Nov 2009 17:10:07 +0000 Subject: [scilab-Users] Compilation of Scilab under Slackware 64 13 fails... clock_gettime issue... In-Reply-To: <1259253520.22126.850.camel@korcula.inria.fr> References: <39243d120911231119t33b3920dt84fbdac42587e378@mail.gmail.com> <1259019646.5363.7175.camel@zlarin> <39243d120911240739k471583b3o865a73fba1332a44@mail.gmail.com> <1259077591.10460.89.camel@korcula.inria.fr> <39243d120911240814n6173dab7u33320d3474d0f528@mail.gmail.com> <1259079750.10460.100.camel@korcula.inria.fr> <39243d120911250513m32151a14u20d7b462c4c1b96c@mail.gmail.com> <1259253520.22126.850.camel@korcula.inria.fr> Message-ID: <39243d120911260910t4919c9fbp82ce822f64b30da0@mail.gmail.com> Hi Sylvestre, Sorry for "Laurent", I was thinking about other person when I sent the mail .. :-) I will try again in a freshly installed Slackware virtual machine, as well as on a Debian Lenny 5.0 amd 64. As far as with the Slackware Community, I have several posts pertaining to this... I have already ( don't ask me how i did it because I do not recall :-( ) build the binaries from source code of 5.1.1... It was a working version ( I only had to fix the graphical issue with the jogl.jar librairies as explained in the wiki... ) although useless for me... : I had to reconfigure after first try and remake, because the compilation of scicos toolbox would halt on not finding clock_gettime for my system.. so I conf --without-scicos, and it built... but without scicos is useless for my needs... :-( About my Slackware Forum Posts : http://www.linuxquestions.org/questions/slackware-14/slackbuild-of-scilab-5.1-fails-under-slackware64-13...-is-this-reproducible...-771482/ http://www.linuxquestions.org/questions/slackware-14/bad-graphics-issue-with-scilab-5.1.1-and-slackware64-13-769742/ http://www.linuxquestions.org/questions/slackware-14/bad-graphics-issue-with-scilab-5.1.1-and-slackware64-13-769742/page2.html I wish I could remember what I did to past that point of the lib/MALLOC thing.. But AFAIK, as you can check in my first link to Slackware community, there is a similar issue with Scilab 5.0.3 under Debian, poster Gnashley proposes a patch, that corrects some things in 5.1 sources ( from the Slackbuild of 12.2 ) but make still stops in the same spot ( /lib/MALLOC... ) I will try in a few hours to apply this patch to the 5.0.3 sources and try to compile... I will report to you and to the Slackware forum how it went... This is why yesterday I asked the forum if my errors could be reproduced... to rule out if there is something cranked with my configuration... Still no answers... BRGDS Alex 2009/11/26 Sylvestre Ledru > Le mercredi 25 novembre 2009 ? 13:13 +0000, Alexandre Pereira a ?crit : > > Hi Laurent > Laurent ? :) > > [...] > > Do you think that any of these things may have contributed to Scilab > > not properly building... ? > Maybe. I really don't think it is Scilab-related. > > > I mean... I can use src2pkg ( a Slackware build system ) to build > > cmake projects, as well as "configure make install" build systems... > > why does Scilab fails.... ? :-( > You should see with the Slackware community. ;) > Please let me know if you find a fix for your problem. > > Sylvestre > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From charlesmarchetti at yahoo.com Fri Nov 27 15:01:24 2009 From: charlesmarchetti at yahoo.com (charles marchetti) Date: Fri, 27 Nov 2009 06:01:24 -0800 (PST) Subject: =?iso-8859-1?Q?Exemple_TCL/TK_n=27est_as_install=E9_sur_Mac_=3F?= Message-ID: <642421.22027.qm@web24101.mail.ird.yahoo.com> Bonjour Sur Scilab sur un Mac Book Pro ,j'ai tap?: --->function [H] = Heavyside(x) -->H = bool2s(x>=0) -->endfunction; -->x=-1:0.2:1; xbasc(); plot2d2(x,Heavyside(x),rect=[-1,-0.1,1,1.2]); WARNING: TCL/TK interface not installed. Comment installer TCL/TK sur Mac quelle version ... Sous tout syst?me unix, j'avais cru comprendre que cela ?tait install?... j'ai tap? with_tk() ; la reponse fut F... Pzeut on avoir quelque precision? From sylvestre.ledru at scilab.org Fri Nov 27 15:06:04 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Fri, 27 Nov 2009 15:06:04 +0100 Subject: [scilab-Users] Exemple TCL/TK n'est as =?ISO-8859-1?Q?install=E9?= sur Mac ? In-Reply-To: <642421.22027.qm@web24101.mail.ird.yahoo.com> References: <642421.22027.qm@web24101.mail.ird.yahoo.com> Message-ID: <1259330764.13072.145.camel@korcula.inria.fr> Le vendredi 27 novembre 2009 ? 06:01 -0800, charles marchetti a ?crit : > Bonjour > > Sur Scilab sur un Mac Book Pro ,j'ai tap?: > > --->function [H] = Heavyside(x) > -->H = bool2s(x>=0) > -->endfunction; > > > -->x=-1:0.2:1; xbasc(); plot2d2(x,Heavyside(x),rect=[-1,-0.1,1,1.2]); > WARNING: TCL/TK interface not installed. > > > > Comment installer TCL/TK sur Mac quelle version ... Sous tout syst?me unix, j'avais cru comprendre que cela ?tait install?... Due to Scilab technical constraints, we had to disable the Tcl/Tk interface under Mac OS X. We are sorry about this drawkback... Sylvestre -- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From antonyat at gmail.com Sat Nov 28 00:46:06 2009 From: antonyat at gmail.com (Antony Jepson) Date: Fri, 27 Nov 2009 18:46:06 -0500 Subject: Troubling compiling Scilab 5.1.1 on Apple Xserve Cluster Message-ID: <4B1064BE.80008@gmail.com> I am having difficulty compiling Scilab (5.1.1) from source on our Apple Xserve Cluster. The configure script exits with the error message: "checking for PVM3 library... configure: error: check for PVM library failed." This is my configure command: $ P=/common/local $ PVM_ROOT=/common/local/pkg/pvm3 $ PVM_ARCH=DARWIN $ PATH=$PATH:$PVM_ROOT/lib:$PVM_ROOT/bin/$PVM_ARCH/ $ ./configure --prefix=$P --with-gcc --with-gfortran --with-fftw-include=$P/include --with-fftw-library=$P/lib --with-blas-library=$P/lib --with-lapack-library=$P/lib --with-umfpack-library=$P/lib --with-umfpack-include=$P/lib --with-pcre=$P/lib --with-x --with-matio-include=$P/include --with-matio-library=$P/lib --with-pvm-include=$PVM_ROOT/include --with-pvm-library=$PVM_ROOT/lib CC=$P/bin/gcc F77=$P/bin/gfortran CXX=$P/bin/g++ Regarding my architecture: $ uname -a Darwin portal.cluster.private 9.8.0 Darwin Kernel Version 9.8.0: Wed Jul 15 16:55:01 PDT 2009; root:xnu-1228.15.4~1/RELEASE_I386 i386 Attached is the config.log and configure output (configure.log) as well. Please let me know if you need any additional information. -- Sincerely, Antony Jepson / / GPG Key: 0xFA10ED80 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: config.log URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: configure.log URL: From sylvestre.ledru at scilab.org Sat Nov 28 00:47:54 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sat, 28 Nov 2009 00:47:54 +0100 Subject: [scilab-Users] Troubling compiling Scilab 5.1.1 on Apple Xserve Cluster In-Reply-To: <4B1064BE.80008@gmail.com> References: <4B1064BE.80008@gmail.com> Message-ID: <1259365674.5363.7511.camel@zlarin> Le vendredi 27 novembre 2009 ? 18:46 -0500, Antony Jepson a ?crit : > I am having difficulty compiling Scilab (5.1.1) from source on our Apple > Xserve Cluster. > > The configure script exits with the error message: > "checking for PVM3 library... configure: error: check for PVM library > failed." The PVM detection has been redesign in the current beta 1 of Scilab 5.2 among other Mac OS X issues. This problem is probably fixed. You should give a try! Thanks Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From trendic at gmx.de Sat Nov 28 18:07:09 2009 From: trendic at gmx.de (trendic at gmx.de) Date: Sat, 28 Nov 2009 18:07:09 +0100 Subject: chooselcccompiler doesnt work Message-ID: <20091128170709.12860@gmx.net> hi, I have a problem on windows with scilab 5.2 beta and night builds. Although I have called chooselcccompiler and configure_lcc, scilab tries to compile with visual studio compiler. Example: ilib_for_link('pendel_c.c','pendel_c.o',[],'c'); erzeuge eine Laderdatei erzeuge ein Makefile F?hre Makefile aus Kompilation von pendel_c erzeuge eine gemeisame Bibliothek (habe Sie Geduld) NMAKE : fatal error U1077: '"C:\Programme\Microsoft Visual Studio 8\VC\bin\cl.EXE"' : return code '0x2' Stop. !--error 10000 unix_s: error during "nmake /Y /nologo /f Makelib.mak all" execution at line 34 of function unix_s called by : at line 67 of function ilib_compile called by : at line 59 of function ilib_for_link called by : ilib_for_link('pendel_c.c','pendel_c.o',[],'c'); best regards Olaf -- Endlich! Das Deb?t-Album von Pop-Diva Sarah Kreuz ist da! Jetzt bei GMX Musik Downloads. http://portal.gmx.net/de/go/musik01 From johnny.heikell at kolumbus.fi Sun Nov 29 18:43:10 2009 From: johnny.heikell at kolumbus.fi (johnny.heikell at kolumbus.fi) Date: Sun, 29 Nov 2009 19:43:10 +0200 (EET) Subject: xgetmouse example Message-ID: <31583787.4261251259516591122.JavaMail.johnny.heikell@kolumbus.fi> Greetings, Can anybody help me make sense of the script that is presented in connection with the function xgetmouse() in Scilab?s Help Browser (draw a rectangle in the Graphic Window)? I have the following questions: 1. In the command a = gca(); a.data_bounds = [0 0;100 100] the numeric value of matrix elements do not seem to influence anything, they can be changed without noticeable effect. What are they for? 2. According to Help\xclick, the first left vector element in the command [b,xc,yc]=xclick; is ibutton and should have a numeric value. So how can it be textual (b)? 3. The third vector element (-1) in the command rep=[xc,yc,-1] stands for ?ibutton/pointer has moved? when we later have rep=xgetmouse(). However, it is also used as the condition in the while-do-end loop. So what exactly changes its value?the second click on the button??and to which value is it changed? 4. The command first=%f; is used twice in the script, but it seems to be redundant because it can be deleted without any influence. Is that correct? v/r Johnny Heikell -- Johnny Heikell Soukan rantatie 68 B FI-02360 Espoo, FINLAND Tel: +358-(0)50-918 2758 Fax/Voice Mail: +358-(0)9-803 8182 Email: johnny.heikell at kolumbus.fi From jari.lietzen at dnainternet.net Sun Nov 29 20:54:02 2009 From: jari.lietzen at dnainternet.net (Jari Lietzen) Date: Sun, 29 Nov 2009 21:54:02 +0200 Subject: Connections between blocks get mixed up Message-ID: <4B12D15A.6010209@dnainternet.net> Hi! I have written a c function block and the interfacing function following this tutorial: www-roc.inria.fr/scicos/ScicosCBlockTutorial.pdf The function listens to a tcp-port and receives an output channel and a value as a command and sets the block's output(s) accordingly. I can add the block and connect it to other blocks and this is all working fine. I'm using scicoslab-gtk 4.3-3, Xubuntu 9.04 with kernel 2.6.29.4 patched with RTAI. I'm also using Etherlab Scicos Toolbox as I'm using Scicos to generate standalone code for EtherCAT fieldbus components. If I add my own block to Scicos diagram and connect it with EtherCAT blocks, everything is fine. Codegeneration works and the resulting userspace program does what it is supposed to do. However, if I change the connections originating from my own block, everything still looks good in the diagram, but in the generated code the connections between blocks are mixed up. Then changing connections back to their previous state doesn't correct the situation. Everything still looks good, but the connections are still mixed up. When I remove all connections from my own block and draw them again, only then the connections are really ok in the generated program. I can send sample diagrams, screenshots etc. to illustrate the problem. Best regards, -Jari Lietzen From dastew at sympatico.ca Sun Nov 29 23:02:53 2009 From: dastew at sympatico.ca (dastew at sympatico.ca) Date: Sun, 29 Nov 2009 22:02:53 +0000 Subject: modelicac In-Reply-To: <4B12D15A.6010209@dnainternet.net> References: <4B12D15A.6010209@dnainternet.net> Message-ID: I have scilab and scicos working in a windows machine and now I want it to work in Ubuntu. when I try and use it in ubuntu it says that modelica compiler is missing and that I can get it from the scilab web page. But when I go there there is no down load for modelica. I have looked arround the google web and I think the file i need is modelicac. My question is where to put it in Ubuntu????? Doug Stewart -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Sun Nov 29 23:25:01 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Sun, 29 Nov 2009 23:25:01 +0100 Subject: [scilab-Users] modelicac In-Reply-To: References: <4B12D15A.6010209@dnainternet.net> Message-ID: <1259533501.20778.660.camel@zlarin> Le dimanche 29 novembre 2009 ? 22:02 +0000, dastew at sympatico.ca a ?crit : > I have scilab and scicos working in a windows machine and now I want > it to work in Ubuntu. when I try and use it in ubuntu it says that > modelica compiler is missing and that I can get it from the scilab web > page. But when I go there there is no down load for modelica. Did you install Scilab through the Ubuntu package system ? If yes, could you try dpkg -L scilab-bin|grep modelicac or did you download it from the Scilab website ? If yes, which version ? Sylvestre -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From iskandhar2000 at gmail.com Sun Nov 29 23:39:54 2009 From: iskandhar2000 at gmail.com (Alexandre Pereira) Date: Sun, 29 Nov 2009 22:39:54 +0000 Subject: Think I solved the Scilab compilation issue in Slackware,,,, :-) Message-ID: <39243d120911291439u15cb6756q10d38faf5babe22@mail.gmail.com> Hi Sylvestre I found what the problem was... There is an application called brl-cad, www.brlcad.org, which i packaged with src2pkg, and installed to /usr... This application, which creates some hundreds of libraries and executables, one of them is a thing called "cp"; an utility to copy objects between BRLCAD cad databases... Well, basically, BRLCAD being thrown directly into /usr borked my coreutils.... this is why Scilab would not compile, and why my error was not reproducible by anyome else in Slackware community... :-| BRLCAD install defaults to /usr/brlcad... not to /usr... Well, I reinstalled coreutils, and managed to compile Scilab --without-pvm, matio, --with-gfortran.... I guess that not having installed ocaml, precluded me to install scicos... so i reconfigured again without scicos... ( make would complain not finding clock_gettime ) and built a workable version.. although useless for me... ( --without-scicos )... I shall rebuild this tomorrow, after having installed ocaml, just to see if this solves the clock_gettime issue of scicos... But At least I solved the build problem... My insight was when I was checking the switches of cp, and typed "man cp"... and shell showed it was "a BRL CAD utility... "... :-| Anyway, thanks for your support.... :-) Will try to solve the scicos thing now.... BRGDS Alex -------------- next part -------------- An HTML attachment was scrubbed... URL: From dastew at sympatico.ca Mon Nov 30 00:12:01 2009 From: dastew at sympatico.ca (dastew at sympatico.ca) Date: Sun, 29 Nov 2009 23:12:01 +0000 Subject: [scilab-Users] modelicac In-Reply-To: <1259533501.20778.660.camel@zlarin> References: <4B12D15A.6010209@dnainternet.net>,,<1259533501.20778.660.camel@zlarin> Message-ID: > From: sylvestre.ledru at scilab.org > To: users at lists.scilab.org; dastew at sympatico.ca > Date: Sun, 29 Nov 2009 23:25:01 +0100 > Subject: Re: [scilab-Users] modelicac > > Le dimanche 29 novembre 2009 ? 22:02 +0000, dastew at sympatico.ca a > ?crit : > > I have scilab and scicos working in a windows machine and now I want > > it to work in Ubuntu. when I try and use it in ubuntu it says that > > modelica compiler is missing and that I can get it from the scilab web > > page. But when I go there there is no down load for modelica. > Did you install Scilab through the Ubuntu package system ? > If yes, could you try Yes I did, and I will do this when I get back to that machine. Thanks Doug > dpkg -L scilab-bin|grep modelicac > > or did you download it from the Scilab website ? If yes, which version ? > > Sylvestre > > -- > ------------------------- > Sylvestre Ledru > ------------------------- > The Scilab Consortium > Digiteo > Domaine de Voluceau > Rocquencourt - B.P. 105 > 78153 Le Chesnay Cedex > France > -------------- next part -------------- An HTML attachment was scrubbed... URL: From dastew at sympatico.ca Mon Nov 30 02:39:59 2009 From: dastew at sympatico.ca (dastew at sympatico.ca) Date: Mon, 30 Nov 2009 01:39:59 +0000 Subject: [scilab-Users] modelicac In-Reply-To: <1259533501.20778.660.camel@zlarin> References: <4B12D15A.6010209@dnainternet.net>,,<1259533501.20778.660.camel@zlarin> Message-ID: > From: sylvestre.ledru at scilab.org > To: users at lists.scilab.org; dastew at sympatico.ca > Date: Sun, 29 Nov 2009 23:25:01 +0100 > Subject: Re: [scilab-Users] modelicac > > Le dimanche 29 novembre 2009 ? 22:02 +0000, dastew at sympatico.ca a > ?crit : > > I have scilab and scicos working in a windows machine and now I want > > it to work in Ubuntu. when I try and use it in ubuntu it says that > > modelica compiler is missing and that I can get it from the scilab web > > page. But when I go there there is no down load for modelica. > Did you install Scilab through the Ubuntu package system ? > If yes, could you try > dpkg -L scilab-bin|grep modelicac > > or did you download it from the Scilab website ? If yes, which version ? > > Sylvestre > Here is the results doug at ubuntu32:~$ dpkg -L scilab-bin|grep modelicac /usr/share/man/man1/modelicac.1.gz /usr/bin/modelicac and yet it sends an error: "Please install the Modelica translator (available at www.scicos.org) in "SCI/bin" and try again" Any suggestions as to what to do?????????????????? Doug Stewart -------------- next part -------------- An HTML attachment was scrubbed... URL: From sumit.adhikari at gmail.com Mon Nov 30 06:04:25 2009 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Mon, 30 Nov 2009 10:34:25 +0530 Subject: [scilab-Users] Reg :: Termination of this script In-Reply-To: <4B0E77EC.7070708@scilab.org> References: <4B0E77EC.7070708@scilab.org> Message-ID: It is not just slow, it is too slow!. Multi rates are always being problem with scilab. So many features added but multi rates are still untouched in scilab. Without multi rates signal processing toolbox is simply incomplete. Is there any plan for multi rates in future. Regards, Sumit P.S: How do I configure my scilab for a particular run to access minimum resources possible and to provide fastest output ? Even when I use it from within a function, it doesn't give me speed advantage, like as follows : clear all ; funcprot(0); stacksize('max'); function cic_resp(M,Npoints,SBW) z = poly(0,'z'); Hn = syslin('c',(z^M - 1.0), (z^M)); Hcic_num = Hn*Hn*Hn; Hd = syslin('c',(z- 1.0), (z)); Hcic_den = Hd*Hd*Hd ; Hcic = (Hcic_num / Hcic_den) ; [hzm,fr]=frmag(Hcic,Npoints); frm = fr*SBW; xbasc(0);xset('window',0);plot(frm(1:Npoints),20.0*log10(hzm(1:Npoints)),"red"); mtlb_grid("on"); //xbasc(1);xset('window',1);plzr(Hcic); mtlb_grid("on"); endfunction // Calling cic_resp cic_resp(1024,1024*1024,1024*1024); On Thu, Nov 26, 2009 at 6:13 PM, Collette yann wrote: > Works fine for me. It's just long ... > Tested on scilab master. > > YC > > Sumit Adhikari a ?crit : > > Following script is not terminating. It is stuck at line : >> >> Hcic = Hcic_num / Hcic_den ; >> >> >> SCRIPT : >> ----------- >> >> >> clear all ; >> >> stacksize('max'); >> >> z = poly(0,'z'); >> >> N = 32 ; >> M = 3 ; >> >> >> M = 1024 ; >> Hn = syslin('c',(z^M - 1.0), (z^M)); >> Hcic_num = Hn*Hn*Hn; >> >> Hd = syslin('c',(z- 1.0), (z)); >> Hcic_den = Hd*Hd*Hd ; >> >> Hcic = Hcic_num / Hcic_den ; >> >> >> Npoints = 1024*1024; >> [hzm,fr]=frmag(Hcic,Npoints); >> SBW = 1024*1024; >> frm = fr*SBW; >> >> >> //xbasc(0);xset('window',0); >> plot(log10(frm(2:Npoints)),20*log10(hzm(2:Npoints)),"red"); >> mtlb_grid("on"); >> xbasc(0);xset('window',0);plot(frm(1:Npoints),hzm(1:Npoints),"red"); >> mtlb_grid("on"); >> xbasc(1);xset('window',1);plzr(H); mtlb_grid("on"); >> >> >> >> -- >> >> -------------------------------------------- >> Sumit Adhikari >> System Design Engineer >> austriamicrosystems AG >> Business Unit : Automotive >> Mob : 00-91-9885271710/00-91-9000161710 >> > > -- -------------------------------------------- Sumit Adhikari System Design Engineer austriamicrosystems AG Business Unit : Automotive Mob : 00-91-9885271710/00-91-9000161710 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Mon Nov 30 10:52:53 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 30 Nov 2009 10:52:53 +0100 Subject: [scilab-Users] modelicac In-Reply-To: References: <4B12D15A.6010209@dnainternet.net> , ,<1259533501.20778.660.camel@zlarin> Message-ID: <1259574773.7013.36.camel@korcula.inria.fr> Le lundi 30 novembre 2009 ? 01:39 +0000, dastew at sympatico.ca a ?crit : > > > > From: sylvestre.ledru at scilab.org > > To: users at lists.scilab.org; dastew at sympatico.ca > > Date: Sun, 29 Nov 2009 23:25:01 +0100 > > Subject: Re: [scilab-Users] modelicac > > > > Le dimanche 29 novembre 2009 ? 22:02 +0000, dastew at sympatico.ca a > > ?crit : > > > I have scilab and scicos working in a windows machine and now I > want > > > it to work in Ubuntu. when I try and use it in ubuntu it says that > > > modelica compiler is missing and that I can get it from the scilab > web > > > page. But when I go there there is no down load for modelica. > > Did you install Scilab through the Ubuntu package system ? > > If yes, could you try > > dpkg -L scilab-bin|grep modelicac > > > > or did you download it from the Scilab website ? If yes, which > version ? > > > > Sylvestre > > > > Here is the results > > doug at ubuntu32:~$ dpkg -L scilab-bin|grep modelicac > /usr/share/man/man1/modelicac.1.gz > /usr/bin/modelicac OK, that means it is correctly installed (with some archs supported by Debian, the modelica compiler is not compiled due to the non support of the ocaml compiler) > > and yet it sends an error: > "Please install the Modelica translator (available at www.scicos.org) > in "SCI/bin" and try again" When do you get this message ? (ie, what are the step to reproduce it) Sylvestre -- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From cecilia.zanni-merk at insa-strasbourg.fr Mon Nov 30 11:04:32 2009 From: cecilia.zanni-merk at insa-strasbourg.fr (Cecilia Zanni-Merk) Date: Mon, 30 Nov 2009 11:04:32 +0100 Subject: Error 241 In-Reply-To: <1259574773.7013.36.camel@korcula.inria.fr> References: <4B12D15A.6010209@dnainternet.net> , ,<1259533501.20778.660.camel@zlarin> <1259574773.7013.36.camel@korcula.inria.fr> Message-ID: <4B1398B0.6000401@insa-strasbourg.fr> Hello, One of my students has encountered Error 241. She is not able to execute a Scilab script file if she has saved it before. She needs to modified a saved file (even by just adding a blank space) to be able to execute it. Her hardware configuration is INTEL CORE 2 duo CPU P7350 2GHz , under Vista SP2. Any help is more than welcome. Thanks in advance Cecilia -- =============================================== Cecilia Zanni-Merk LGeCo - INSA de Strasbourg 24 Bd de la Victoire 67084 Strasbourg - France Phone: +33 3 88 14 47 00 (4864) From sylvestre.ledru at scilab.org Mon Nov 30 11:08:15 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 30 Nov 2009 11:08:15 +0100 Subject: [scilab-Users] modelicac In-Reply-To: <1259574773.7013.36.camel@korcula.inria.fr> References: <4B12D15A.6010209@dnainternet.net> , ,<1259533501.20778.660.camel@zlarin> <1259574773.7013.36.camel@korcula.inria.fr> Message-ID: <1259575695.7013.90.camel@korcula.inria.fr> Replying to myself, > > > > and yet it sends an error: > > "Please install the Modelica translator (available at www.scicos.org) > > in "SCI/bin" and try again" > When do you get this message ? > (ie, what are the step to reproduce it) I have been able to reproduce it. The error message is wrong. You have a real feedback in the Scilab console or the error box. For example, you could have something like: Fatal error: exception Failure("perform_hungarian_method: jacobian is structurally singular") Sylvestre -- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From sumit.adhikari at gmail.com Mon Nov 30 11:34:01 2009 From: sumit.adhikari at gmail.com (Sumit Adhikari) Date: Mon, 30 Nov 2009 16:04:01 +0530 Subject: Reg :: Combined Response of Two filters running at different rates Message-ID: Hello All, Following is a acript in which CIC block runs at a sampling rate of 1024*1024 and Hiir runs at a rate of 1024. I want to find out the combined effect of two filters (Hcic*Hiir) so that I can see the entire spectrum. Is there any way out for that ? Regards, Sumit // ====================================================================================================== // // Author : Sumit Adhikari // Contact : sumit.adhikari at gmail.com // Description : Script to find out the Frequency Response of the Droop Correction // : Filter for a 3rd Order CIC filter with M downsample ratio // ====================================================================================================== // // ------------------------------------ Initial setup --------------------------------------------------- // clear all ; funcprot(0); stacksize('max'); // ------------------------------------ Function Declarations ------------------------------------------- // function [hzm,frm] = cic_resp(M,Npoints,SBW,Fact) z = poly(0,'z'); Hn = syslin('c',(z^M - 1.0), (z^M)); Hcic_num = Hn*Hn*Hn; // Hcic_num = Hn^3 --> Is Wrong ! Hd = syslin('c',(z - 1.0), (z)); Hcic_den = Hd*Hd*Hd ; // Hcic_den = Hd^3 --> Is Wrong ! Hcic = (Hcic_num / Hcic_den) / Fact ; [hzm,fr] = frmag(Hcic,Npoints); frm = fr*SBW; endfunction // ------------------------------------- CIC Filter ------------------------------------------------------- // // Calling cic_resp : Npoints = 1024*1024 ; M = 1024 ; SBW = 1024*1024 ; Fact = 2^14*2^16 ; [hzm,frm] = cic_resp(M,Npoints,SBW,Fact); clf(0);xset('window',0);plot(frm(1:Npoints),20.0*log10(hzm(1:Npoints)),"red"); mtlb_grid("on"); // -------------------------------- CIC Compensation Response --------------------------------------------- // // CIC Compensation (IIR Response): DSR = 1024 ; Nd = SBW/DSR ; fdu = frm(1:Nd) ; fd = 2*fdu/Nd ; hzd = hzm(1:Nd) ; hzc = 1.0./hzd ; Fs = SBW/DSR ; f = Fs*fd/2 ; // Extra Edits : fd(1) = 0.0 ; fd(size(fd,"*")) = 1.0 ; Order = 5 ; Hcomp = yulewalk(Order,fd,hzc); clf(1);xset('window',1);plot(f(1:Nd),20.0*log10(hzc(1:Nd)),"red"); mtlb_grid("on"); // --------------------------------- Low Pass Filter -------------------------------------------------- // Hlpf = iir(5,'lp','ellip',[.3 .5],[.01 .0001]); [hlpf,fr] = frmag(Hlpf,1024); clf(2);xset('window',2);plot(Fs*fr',20*log10(hlpf'),"red"); mtlb_grid("on"); // --------------------------------- Combined Response of Two Filters --------------------------------- // Hiir = Hcomp*Hlpf ; [hiir,fr] = frmag(Hiir,1024); clf(3);xset('window',3);plot(Fs*fr',20*log10(hiir'),"red"); mtlb_grid("on"); // ---------------------------------------- Quantizing Hiir ------------------------------------------ // Qfact = 2^12 ; b_iir = coeff(numer(Hiir)) ; a_iir = coeff(denom(Hiir)) b_iir_quantized = int(Qfact*b_iir); a_iir_quantized = int(Qfact*a_iir); Hiir_quantized = poly(b_iir_quantized,'z','c')/poly(a_iir_quantized,'z','c'); [hiir_quantized,fr] = frmag(Hiir_quantized,1024); clf(4);xset('window',4);plot(Fs*fr',20*log10(hiir'),"red");plot(Fs*fr',20*log10(hiir_quantized'),"green"); mtlb_grid("on"); clf(5);xset('window',5);plzr(Hiir_quantized); mtlb_grid("on"); // ---------------------------------------- Transient Simulation ------------------------------------------ // Time = 1.0 ; Fin = 50.0 ; t = 0.0:1.0/Fs:Time ; x = sin(1.0*%pi*Fin*t); Xhiir = mtlb_filter(b_iir($:-1:1),a_iir($:-1:1),x); Xhiir_quantized = mtlb_filter(b_iir_quantized($:-1:1),a_iir_quantized($:-1:1),x); clf(6);xset('window',6);plot(t,x,"blue");plot(t,Xhiir,"red"); plot(t,Xhiir_quantized,"green") ;mtlb_grid("on"); -- -------------------------------------------- Sumit Adhikari System Design Engineer austriamicrosystems AG Business Unit : Automotive Mob : 00-91-9885271710/00-91-9000161710 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dastew at sympatico.ca Mon Nov 30 12:06:52 2009 From: dastew at sympatico.ca (dastew at sympatico.ca) Date: Mon, 30 Nov 2009 11:06:52 +0000 Subject: [scilab-Users] modelicac In-Reply-To: <1259575695.7013.90.camel@korcula.inria.fr> References: <4B12D15A.6010209@dnainternet.net>,,,,<1259533501.20778.660.camel@zlarin>,,<1259574773.7013.36.camel@korcula.inria.fr>,<1259575695.7013.90.camel@korcula.inria.fr> Message-ID: > From: sylvestre.ledru at scilab.org > To: users at lists.scilab.org > Date: Mon, 30 Nov 2009 11:08:15 +0100 > Subject: RE: [scilab-Users] modelicac > > Replying to myself, > > > > > > > and yet it sends an error: > > > "Please install the Modelica translator (available at www.scicos.org) > > > in "SCI/bin" and try again" > > When do you get this message ? > > (ie, what are the step to reproduce it) > I have been able to reproduce it. > > The error message is wrong. You have a real feedback in the Scilab > console or the error box. > For example, you could have something like: > Fatal error: exception Failure("perform_hungarian_method: jacobian is > structurally singular") > > Sylvestre > > Yes the error is: Modelica code generated at /tmp/SD_29145_/imppart_tran7sine.mo Fatal error: exception Failure("read_class_File: Class Pin not found") Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: From dastew at sympatico.ca Mon Nov 30 13:13:46 2009 From: dastew at sympatico.ca (dastew at sympatico.ca) Date: Mon, 30 Nov 2009 12:13:46 +0000 Subject: [scilab-Users] modelicac In-Reply-To: References: <4B12D15A.6010209@dnainternet.net>,,,,<1259533501.20778.660.camel@zlarin>,,<1259574773.7013.36.camel@korcula.inria.fr>,<1259575695.7013.90.camel@korcula.inria.fr>, Message-ID: From: dastew at sympatico.ca To: users at lists.scilab.org Date: Mon, 30 Nov 2009 11:06:52 +0000 Subject: RE: [scilab-Users] modelicac > From: sylvestre.ledru at scilab.org > To: users at lists.scilab.org > Date: Mon, 30 Nov 2009 11:08:15 +0100 > Subject: RE: [scilab-Users] modelicac > > Replying to myself, > > > > > > > and yet it sends an error: > > > "Please install the Modelica translator (available at www.scicos.org) > > > in "SCI/bin" and try again" > > When do you get this message ? > > (ie, what are the step to reproduce it) > I have been able to reproduce it. > > The error message is wrong. You have a real feedback in the Scilab > console or the error box. > For example, you could have something like: > Fatal error: exception Failure("perform_hungarian_method: jacobian is > structurally singular") > > Sylvestre > > Yes the error is: Modelica code generated at /tmp/SD_29145_/imppart_tran7sine.mo Fatal error: exception Failure("read_class_File: Class Pin not found") Doug OK Now it is clearer; Modelicac does work. I tried some other files. trans4 works but trans4a does not work????? Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: trans4.cos Type: application/octet-stream Size: 974760 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: trans4a.cos Type: application/octet-stream Size: 1853012 bytes Desc: not available URL: From fvogelnew1 at free.fr Mon Nov 30 13:31:57 2009 From: fvogelnew1 at free.fr (=?UTF-8?B?RnJhbsOnb2lzIFZvZ2Vs?=) Date: Mon, 30 Nov 2009 13:31:57 +0100 Subject: [scilab-Users] Error 241 In-Reply-To: <4B1398B0.6000401@insa-strasbourg.fr> References: <4B12D15A.6010209@dnainternet.net> , ,<1259533501.20778.660.camel@zlarin> <1259574773.7013.36.camel@korcula.inria.fr> <4B1398B0.6000401@insa-strasbourg.fr> Message-ID: <4B13BB3D.4020306@free.fr> Cecilia Zanni-Merk said on 30/11/2009 11:04: > One of my students has encountered Error 241. She is not able to > execute a Scilab script file if she has saved it before. She needs to > modified a saved file (even by just adding a blank space) to be able to > execute it. Your report is not precise enough. First of all please show the exact error message (copy/paste). What is your Scilab version? What is the underlying OS? How do you execute the file? Is it through exec() in command line, or through Scipad, through the Scilab window File menu, or what? Where is the file saved? Are you sure the required permissions are set for the file in question? And so on. Francois From pomchip at free.fr Mon Nov 30 13:55:02 2009 From: pomchip at free.fr (=?ISO-8859-1?Q?S=E9bastien_Bihorel?=) Date: Mon, 30 Nov 2009 07:55:02 -0500 Subject: [scilab-Users] Delayed differential equation solver In-Reply-To: References: Message-ID: I believe this has been posted by mistake as a reply to my post. I am still intersted in knowing more about solving delayed differential equations in Scilab. Thanks for any input On Thu, Nov 26, 2009 at 5:54 AM, Sumit Adhikari wrote: > Following script is not terminating. It is stuck at line : > > Hcic = Hcic_num / Hcic_den ; > > > SCRIPT : > ----------- > > > clear all ; > > stacksize('max'); > > z = poly(0,'z'); > > N = 32 ; > M = 3 ; > > > M = 1024 ; > Hn = syslin('c',(z^M - 1.0), (z^M)); > Hcic_num = Hn*Hn*Hn; > > Hd = syslin('c',(z- 1.0), (z)); > Hcic_den = Hd*Hd*Hd ; > > Hcic = Hcic_num / Hcic_den ; > > > Npoints = 1024*1024; > [hzm,fr]=frmag(Hcic,Npoints); > SBW = 1024*1024; > frm = fr*SBW; > > > //xbasc(0);xset('window',0);plot(log10(frm(2:Npoints)),20*log10(hzm(2:Npoints)),"red"); > mtlb_grid("on"); > xbasc(0);xset('window',0);plot(frm(1:Npoints),hzm(1:Npoints),"red"); > mtlb_grid("on"); > xbasc(1);xset('window',1);plzr(H); mtlb_grid("on"); > > > > -------------------------------------------- > Sumit Adhikari > System Design Engineer > austriamicrosystems AG > Business Unit : Automotive > Mob : 00-91-9885271710/00-91-9000161710 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From vincent.couvert at scilab.org Mon Nov 30 14:11:05 2009 From: vincent.couvert at scilab.org (Vincent COUVERT) Date: Mon, 30 Nov 2009 14:11:05 +0100 Subject: =?ISO-8859-1?Q?Re=3A_=5Bscilab-Users=5D_Exemple_TCL/TK_n?= =?ISO-8859-1?Q?=27est_as_install=E9_sur_Mac_=3F?= In-Reply-To: <642421.22027.qm@web24101.mail.ird.yahoo.com> References: <642421.22027.qm@web24101.mail.ird.yahoo.com> Message-ID: <4B13C469.1060605@scilab.org> Hi, Which version of Scilab do you use? I could not reproduce your problem. Best regards. charles marchetti a ?crit : > Bonjour > > Sur Scilab sur un Mac Book Pro ,j'ai tap?: > > --->function [H] = Heavyside(x) > -->H = bool2s(x>=0) > -->endfunction; > > > -->x=-1:0.2:1; xbasc(); plot2d2(x,Heavyside(x),rect=[-1,-0.1,1,1.2]); > WARNING: TCL/TK interface not installed. > > > > Comment installer TCL/TK sur Mac quelle version ... Sous tout syst?me unix, j'avais cru comprendre que cela ?tait install?... > > j'ai tap? with_tk() > ; > la reponse fut F... > > Pzeut on avoir quelque precision? > > > > > From dastew at sympatico.ca Mon Nov 30 22:50:18 2009 From: dastew at sympatico.ca (dastew at sympatico.ca) Date: Mon, 30 Nov 2009 21:50:18 +0000 Subject: [scilab-Users] modelicac In-Reply-To: References: <4B12D15A.6010209@dnainternet.net>,,,,<1259533501.20778.660.camel@zlarin>,,<1259574773.7013.36.camel@korcula.inria.fr>,<1259575695.7013.90.camel@korcula.inria.fr>, Message-ID: From: dastew at sympatico.ca To: users at lists.scilab.org Date: Mon, 30 Nov 2009 11:06:52 +0000 Subject: RE: [scilab-Users] modelicac > From: sylvestre.ledru at scilab.org > To: users at lists.scilab.org > Date: Mon, 30 Nov 2009 11:08:15 +0100 > Subject: RE: [scilab-Users] modelicac > > Replying to myself, > > > > > > > and yet it sends an error: > > > "Please install the Modelica translator (available at www.scicos.org) > > > in "SCI/bin" and try again" > > When do you get this message ? > > (ie, what are the step to reproduce it) > I have been able to reproduce it. > > The error message is wrong. You have a real feedback in the Scilab > console or the error box. > For example, you could have something like: > Fatal error: exception Failure("perform_hungarian_method: jacobian is > structurally singular") > > Sylvestre > > Yes the error is: Modelica code generated at /tmp/SD_29145_/imppart_tran7sine.mo Fatal error: exception Failure("read_class_File: Class Pin not found") Doug Ok ---- Now that I know that it is not a missing modelicac file, I looked into the problem some more. 1. My circuit file works in XP but not in Ubuntu. 2. The smaller file works in Ubuntu So I took my larger file and deleted some of the repeated blocks out of the middle of the circuit and now it works. It seems to be a problem that scicos can't handle this many blocks in Ubuntu but can in XP!!!!! Any thoughts. Doug PS It would be nice if the error message would tell the truth. -------------- next part -------------- An HTML attachment was scrubbed... URL: From sylvestre.ledru at scilab.org Mon Nov 30 22:53:44 2009 From: sylvestre.ledru at scilab.org (Sylvestre Ledru) Date: Mon, 30 Nov 2009 22:53:44 +0100 Subject: [scilab-Users] modelicac In-Reply-To: References: <4B12D15A.6010209@dnainternet.net> ,, ,,<1259533501.20778.660.camel@zlarin> , ,<1259574773.7013.36.camel@korcula.inria.fr> ,<1259575695.7013.90.camel@korcula.inria.fr> , Message-ID: <1259618024.20778.2048.camel@zlarin> > > > > Yes the error is: > Modelica code generated at /tmp/SD_29145_/imppart_tran7sine.mo > Fatal error: exception Failure("read_class_File: Class Pin not found") > > Doug > > > Ok ---- Now that I know that it is not a missing modelicac file, I > looked into the problem some more. > > 1. My circuit file works in XP but not in Ubuntu. > 2. The smaller file works in Ubuntu > > So I took my larger file and deleted some of the repeated blocks out > of the middle of the circuit and now it works. It seems to be a > problem that scicos can't handle this many blocks in Ubuntu but can in > XP!!!!! > > Any thoughts. > Doug > PS It would be nice if the error message would tell the truth. Thanks for the feedback. In Scilab 5.3, we will introduce a new Modelica compiler. It should fix this kind of issues. Sylvestre > > > > > > > > > > > -- ------------------------- Sylvestre Ledru ------------------------- The Scilab Consortium Digiteo Domaine de Voluceau Rocquencourt - B.P. 105 78153 Le Chesnay Cedex France From dastew at sympatico.ca Mon Nov 30 23:12:41 2009 From: dastew at sympatico.ca (dastew at sympatico.ca) Date: Mon, 30 Nov 2009 22:12:41 +0000 Subject: [scilab-Users] modelicac In-Reply-To: <1259618024.20778.2048.camel@zlarin> References: <4B12D15A.6010209@dnainternet.net>,,,,,,<1259533501.20778.660.camel@zlarin>,,,,<1259574773.7013.36.camel@korcula.inria.fr>,,<1259575695.7013.90.camel@korcula.inria.fr>,,,,<1259618024.20778.2048.camel@zlarin> Message-ID: > From: sylvestre.ledru at scilab.org > To: users at lists.scilab.org > Date: Mon, 30 Nov 2009 22:53:44 +0100 > Subject: RE: [scilab-Users] modelicac > > > > > > > Yes the error is: > > Modelica code generated at /tmp/SD_29145_/imppart_tran7sine.mo > > Fatal error: exception Failure("read_class_File: Class Pin not found") > > > > Doug > > > > > > Ok ---- Now that I know that it is not a missing modelicac file, I > > looked into the problem some more. > > > > 1. My circuit file works in XP but not in Ubuntu. > > 2. The smaller file works in Ubuntu > > > > So I took my larger file and deleted some of the repeated blocks out > > of the middle of the circuit and now it works. It seems to be a > > problem that scicos can't handle this many blocks in Ubuntu but can in > > XP!!!!! > > > > Any thoughts. > > Doug > > PS It would be nice if the error message would tell the truth. > Thanks for the feedback. > In Scilab 5.3, we will introduce a new Modelica compiler. It should fix > this kind of issues. > > Sylvestre > > > > First I want to thank the you and the teem for for such great software. Pleas don't take anything I say in a negative way because I truly am delighted with Scilab and Sicos. In your answer did you mean the error message will be fixed in 5.3 or the memory allocation size or both. And when will 5.3 come out. PS I am using these circuits to teach transmision line theory and to demonstrate the reflections that happen with mismatched impedances at the ends of the line. Doug -------------- next part -------------- An HTML attachment was scrubbed... URL: