[scilab-Users] printing a message in the scilab console from a C external function
Adrien Vogt-Schilb
vogt at centre-cired.fr
Wed Apr 6 14:19:07 CEST 2011
more infos about my case:
my external is in C
for some reason, fprint, which prints to the default output, won't print
to scilab console.
maybe i have to specify somewhere that scilab's console is the standard
output?
i am using windows XP, sci 5.3.1 and mingw
Le 06/04/2011 14:04, Adrien Vogt-Schilb a écrit :
> Hi
>
> Does anyone know how to print a message in the scilab console from a C
> external function.
>
> I am using a dirty workaround :
>
> voir myfunction(..)
>
> [...]
> FILE *fp;
> fp = fopen("myfile.txt","a");
> for x...
> fprintf(fp,"x[%i]=%g \n",k,x[k]);
>
> fclose(fp)
>
>
> this succesfully writes messages in myfile.txt, i would like to print
> to the scilab console instead
>
>
> thank you all
>
> --
>
> *Adrien Vogt-Schilb*
>
> Research Fellow
>
> vogt at centre-cired.fr <mailto:vogt at centre-cired.fr>
>
> Tel: (+33) 1 43 94 73 96
>
> Fax: (+33) 1 43 94 73 70
>
> CIRED
>
>
>
> 45 bis, Av de la Belle Gabrielle
>
> F-94736 Nogent-sur-Marne
>
> http://www.centre-cired.fr/
>
--
*Adrien Vogt-Schilb*
Research Fellow
vogt at centre-cired.fr <mailto:vogt at centre-cired.fr>
Tel: (+33) 1 43 94 73 96
Fax: (+33) 1 43 94 73 70
CIRED
45 bis, Av de la Belle Gabrielle
F-94736 Nogent-sur-Marne
http://www.centre-cired.fr/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20110406/76d6d133/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 4092 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20110406/76d6d133/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logocired.png
Type: image/png
Size: 4092 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20110406/76d6d133/attachment-0001.png>
More information about the users
mailing list