<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-15">
<style type="text/css">
/* Quote Levels Colors */
blockquote.cite { color: navy !important; background-color: RGB(245,245,245) !important;
}
blockquote.cite blockquote.cite { color: maroon !important; background-color: RGB(235,235,235) !important;
}
blockquote.cite blockquote.cite blockquote.cite { color: green !important; background-color: RGB(225,225,225) !important;
}
blockquote.cite blockquote.cite blockquote.cite blockquote.cite { color: purple !important; background-color: RGB(215,215,215) !important;
}
blockquote.cite blockquote.cite blockquote.cite blockquote.cite blockquote.cite { color: teal !important; background-color: RGB(205,205,205) !important;
}
</style>
</head>
<body>
Dear Sylvestre, <br>
<br>
Thank you again for your reply. In the 5.4 alpha, the documentation
for CheckInputArgument/CheckOutputArgument is not (yet) there. As
intersci still works quite ok in 5.4 alpha (and actually works ok
for x64 for this version, did not manage to resolve linking issues
in previous versions) I will stick with intersci until API Scilab
and perhaps an alternative to intersci in combination with dynamic
linking crystallizes out. Would much like to hear about SWIG once
available (if developments indeed will head in that direction). I
may switch to call_scilab in the mean time for getting scilab to
start, as that appears to go a lot faster than starting it in a
separate process, which is what I do now.<br>
<br>
Best wishes, <br>
<br>
Jasper.<br>
<br>
On 4/10/2012 20:44, Sylvestre Ledru wrote:
<blockquote class=" cite"
id="mid_1334083452_12830_42_camel_pomegues_inria_fr"
cite="mid:1334083452.12830.42.camel@pomegues.inria.fr" type="cite">
<pre wrap="">Sorry for the my rude tone in my previous email.
If you believe that there is some conflicting statements in the
documentation, please report bugs:
<a class="moz-txt-link-freetext" href="http://bugzilla.scilab.org/">http://bugzilla.scilab.org/</a>
About CheckRhs & CheckLhs, the version 5.4.0 will introduced the
replacements called CheckInputArgument & CheckOutputArgument.
The two will remain supported in the 5.X family
Sylvestre
Le mardi 10 avril 2012 à 20:29 +0200, jasper van baten a écrit :
</pre>
<blockquote class=" cite" id="Cite_0" type="cite">
<pre wrap="">Dear Sylvestre,
Already read the documentation; don't need support (certainly not
commercial support); just wonder what is deprecated and what is not.
Trust the documentation that states it is deprecated, or will be? Then
I will stay away from it. Too many re-calls with intersci which is now
deprecated (yet still works fine as long as the binary dependencies
are updated properly occasionally). Trust this documentation perhaps:
<a class="moz-txt-link-freetext" href="http://help.scilab.org/docs/5.3.3/en_US/intersci.html">http://help.scilab.org/docs/5.3.3/en_US/intersci.html</a>? Maybe. Intersci
at least provided me with the means to add functionality on the fly...
I think at this point I will sit it out and stay away from coding
something that will be deprecated in the next version.
To quote <a class="moz-txt-link-freetext" href="http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html">http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html</a>:
It (api_scilab) provides a new consistent, documented and easy way
API.
...
And it will be maintained over future versions of Scilab
Not sure now about any of these two claims...
Thanks for the help,
Best wishes,
Jasper.
On 4/10/2012 19:44, Sylvestre Ledru wrote:
</pre>
<blockquote class=" cite" id="Cite_1" type="cite">
<pre wrap="">Please read again the documentation and/or try with the one from the
alpha or the nightly builds. Everything is documented and widely used.
If you need support, I advice you to contact:
<a class="moz-txt-link-freetext" href="http://www.scilab-enterprises.com/">http://www.scilab-enterprises.com/</a>
Sylvestre
Le mardi 10 avril 2012 à 19:36 +0200, jasper van baten a écrit :
</pre>
<blockquote class=" cite" id="Cite_2" type="cite">
<pre wrap="">Hi Sylvestre,
Now I am confused even further; this uses scilab gateway routines,
such as CheckRhs, CheckLhs. Looking at its documentation
<a class="moz-txt-link-freetext" href="http://help.scilab.org/docs/5.3.3/en_US/CheckLhs.html">http://help.scilab.org/docs/5.3.3/en_US/CheckLhs.html</a>
<a class="moz-txt-link-freetext" href="http://help.scilab.org/docs/5.3.3/en_US/CheckRhs.html">http://help.scilab.org/docs/5.3.3/en_US/CheckRhs.html</a>
these functions say:
WARNING: This API is deprecated from Scilab 5.2.0 and is going to be
removed with Scilab 6.0. Please use API Scilab (the new Scilab API).
So I was actually looking for an example that was not deprecated....
I hope you can clear up my confusion...
- Is this (Scilab Gateway API) the interface to use or not?
- Will or will it not be deprecated (or it is already)?
Also, the link that I am missing is telling Scilab that these
functions exist and where to find them....
Thank you again,
Jasper
On 4/10/2012 19:12, Sylvestre Ledru wrote:
</pre>
<blockquote class=" cite" id="Cite_3" type="cite">
<pre wrap=""><a class="moz-txt-link-freetext" href="http://help.scilab.org/docs/5.3.3/en_US/Double_management_reading_API.html">http://help.scilab.org/docs/5.3.3/en_US/Double_management_reading_API.html</a>
your call should be here:
//Do something with data
C++ or C is pretty much the same thing ... Just don't forget the
extern...
Sylvestre
Le mardi 10 avril 2012 à 19:10 +0200, jasper van baten a écrit :
</pre>
<blockquote class=" cite" id="Cite_4" type="cite">
<pre wrap="">Hello Sylvestre,
I see the call_scilab example, which works fine.
I would like an example of scilab calling a function implemented in C
++.
I have read the documentation, but I am apparently missing the
example. Would you be so kind to post the URL of the example itself?
Thank you again,
Best wishes,
Jasper.
On 4/10/2012 18:07, Sylvestre Ledru wrote:
</pre>
<blockquote class=" cite" id="Cite_5" type="cite">
<pre wrap="">Hello,
You will find all the information and example in the api_scilab
documentation.
cf:
<a class="moz-txt-link-freetext" href="http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html">http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html</a>
Sylvestre
Le mardi 10 avril 2012 à 14:58 +0200, jasper van baten a écrit :
</pre>
<blockquote class=" cite" id="Cite_6" type="cite">
<pre wrap="">Hello Sylvestre,
Can you outline how to call a C (or C++) function from Scilab? (what
intersci used to do...)
That is, suppose I have a C++ function Plus2:
double Plus2(double arg) {return arg+2.0;}
How can I use that from the Scilab command line?
Thanks,
Jasper.
On 4/10/2012 08:28, Sylvestre Ledru wrote:
</pre>
<blockquote class=" cite" id="Cite_7" type="cite">
<pre wrap="">Hello,
On 10/04/2012 00:53, Mikhail Matusov wrote:
</pre>
<blockquote class=" cite" id="Cite_8" type="cite">
<pre wrap="">Hi all,
Can someone please point me to a simple example of how to use the
API_Scilab? I am looking for ability to call SciLab functions from
C, not the other way around.
</pre>
</blockquote>
<pre wrap="">api_scilab should be used when you want to add new features into
Scilab based on C/C++ libraries.
The documentation is here:
<a class="moz-txt-link-freetext" href="http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html">http://help.scilab.org/docs/5.3.3/en_US/api_scilab.html</a>
If you want to use Scilab as a computing enigne with C/C++, it is
here:
<a class="moz-txt-link-freetext" href="http://help.scilab.org/docs/5.3.3/en_US/call_scilab.html">http://help.scilab.org/docs/5.3.3/en_US/call_scilab.html</a>
And from Java:
<a class="moz-txt-link-freetext" href="http://help.scilab.org/docs/5.3.3/en_US/javasci.html">http://help.scilab.org/docs/5.3.3/en_US/javasci.html</a>
Sylvestre
</pre>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<pre wrap=""></pre>
</blockquote>
</body>
</html>