<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.3">
</HEAD>
<BODY>
Hi,<BR>
<BR>
In Xcos, we have changed the diagram format thus it's not a scilab structure anymore (it's an xml file).<BR>
<BR>
If you want to use the lincos function please first load the Xcos diagram file with the right function and then apply lincos(...) on the scs_m structure.<BR>
<BR>
For example to load the Controller demo :
<PRE>
// load the scs_m object
importXcosDiagram(SCI + "/modules/xcos/demos/Controller.xcos")
// use it
xcos_compile
--
davidcl
</PRE>
<BR>
Le jeudi 04 février 2010 à 19:43 -0600, Dan Cole a écrit :<BR>
<BLOCKQUOTE TYPE=CITE>
I'm using Scilab 5.2.0 under Fedora 12 Linux.<BR>
<BR>
When I do: load('test.xcos');, I get error 246: Function not defined for given argument type.<BR>
When I do the command again however, I get the warning: file 'text.xcos' already opened in Scilab, along with the previous error, 246.<BR>
<BR>
When I try to use the function lincos() on this file, I get error 10000: Can't convert old diagram (problem in version) at line 69 of function lincos. However, the diagram was created in xcos from Scilab 5.2.0, not in an older version.<BR>
<BR>
How can I over come these problems? I wouldn't think I'd be the first to encounter these problems, but I haven't been able to find anything online relating to this. <BR>
<BR>
If this is not a problem with the software, can you give me a test case with instruction on how to properly create a diagram in xocs, then load and run it in Scilab. I've gotten this same concept to work in Scilab 4, however I would like to start doing this in Scilab 5. <BR>
<BR>
Thanks,<BR>
Dan
</BLOCKQUOTE>
</BODY>
</HTML>