<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#330000">
more infos about my case:<br>
<br>
my external is in C<br>
<br>
for some reason, fprint, which prints to the default output, won't
print to scilab console.<br>
<br>
maybe i have to specify somewhere that scilab's console is the
standard output?<br>
<br>
i am using windows XP, sci 5.3.1 and mingw<br>
<br>
Le 06/04/2011 14:04, Adrien Vogt-Schilb a écrit :
<blockquote cite="mid:4D9C56C8.8080006@centre-cired.fr" type="cite">
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-1">
Hi<br>
<br>
Does anyone know how to print a message in the scilab console from
a C external function.<br>
<br>
I am using a dirty workaround : <br>
<br>
voir myfunction(..)<br>
<br>
[...]<br>
FILE *fp;<br>
fp = fopen("myfile.txt","a");<br>
for x...<br>
fprintf(fp,"x[%i]=%g \n",k,x[k]);<br>
<br>
fclose(fp)<br>
<br>
<br>
this succesfully writes messages in myfile.txt, i would like to
print to the scilab console instead<br>
<br>
<br>
thank you all<br>
<br>
<div class="moz-signature">-- <br>
<style>
<!--
p
{margin:0pt;
color:teal;
font-family:"Cambria Math"
font-size:12.0pt;
}
-->
</style>
<p><b>Adrien Vogt-Schilb</b></p>
<p>Research Fellow</p>
<p><a moz-do-not-send="true" a=""
href="mailto:vogt@centre-cired.fr" style="text-decoration:
none; color: teal;">vogt@centre-cired.fr</a></p>
<p>Tel: (+33) 1 43 94 73 96</p>
<p>Fax: (+33) 1 43 94 73 70</p>
<table style="border: medium none; margin-left: 1pt; margin-top:
4pt;" cellspacing="0">
<tbody>
<tr>
<td style="padding: 0pt;">
<p><img
src="cid:part1.01090007.00090003@centre-cired.fr"
alt="CIRED" width="54"></p>
</td>
<td style="padding: 0pt 7pt;" valign="middle">
<p style="font-size: 10pt;">45 bis, Av de la Belle
Gabrielle</p>
<p style="font-size: 10pt;">F-94736 Nogent-sur-Marne</p>
<p style="font-size: 10pt;"><a moz-do-not-send="true"
href="http://www.centre-cired.fr/" style="color:
teal;">http://www.centre-cired.fr/</a></p>
</td>
</tr>
</tbody>
</table>
<p> </p>
</div>
</blockquote>
<br>
<br>
<div class="moz-signature">-- <br>
<style>
<!--
p
{margin:0pt;
color:teal;
font-family:"Cambria Math"
font-size:12.0pt;
}
-->
</style>
<p><b>Adrien Vogt-Schilb</b></p>
<p>Research Fellow</p>
<p><a a="" href="mailto:vogt@centre-cired.fr"
style="text-decoration: none; color: teal;">vogt@centre-cired.fr</a></p>
<p>Tel: (+33) 1 43 94 73 96</p>
<p>Fax: (+33) 1 43 94 73 70</p>
<table style="border: medium none; margin-left: 1pt; margin-top:
4pt;" cellspacing="0">
<tbody>
<tr>
<td style="padding: 0pt;">
<p><img src="cid:part2.03010006.01080408@centre-cired.fr"
alt="CIRED" width="54"></p>
</td>
<td style="padding: 0pt 7pt;" valign="middle">
<p style="font-size: 10pt;">45 bis, Av de la Belle
Gabrielle</p>
<p style="font-size: 10pt;">F-94736 Nogent-sur-Marne</p>
<p style="font-size: 10pt;"><a
href="http://www.centre-cired.fr/" style="color:
teal;">http://www.centre-cired.fr/</a></p>
</td>
</tr>
</tbody>
</table>
<p> </p>
</div>
</body>
</html>