[scilab-Users] scilab and c program communication

Sylvestre Ledru sylvestre.ledru at scilab.org
Wed Oct 6 10:47:16 CEST 2010


Hello,

Le mercredi 06 octobre 2010 à 10:37 +0200, Onil Goubier a écrit :
> Hi,
> 
> I am trying to run scilab from a program written in C. I am using
> SendScilabJob. My problems are;
> 1. When I send a small matrix from my C program to scilab, it does
> works, scilab receives it correctly. But when I send a larger matrix it
> does not work anymore. 
>From which size is failing ?

> 2. With a small matrix I try to display with Matplot, but the handle
> does not stay long enough, it has been killed too early.
Well, for now, it is pretty painful from call_scilab to handle graphic
window.

A workaround is to do the following:
SendScilabJob("plot3d();");

printf("\nClose Graphical Windows to close this example.\n");
while( ScilabHaveAGraph() )
{
	ScilabDoOneEvent();
        sleep(1);
}

Sylvestre





More information about the users mailing list