[scilab-Users] scilab and c program communication
    Onil Goubier 
    goubier at hpc-project.com
       
    Wed Oct  6 11:08:32 CEST 2010
    
    
  
> > 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 ?
I can send a matrix [20,20], but when I increase the size to [30,30],
it's 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);
> }
OK, I'll try it ... Thanks
Onil
> 
> Sylvestre
> 
> 
-- 
Onil Goubier
HPC Project
9 Route du Colonel Marcel Moraine
92360 Meudon La Forêt, FRANCE
ph: (+33|0) 1 46 01 03 27 | fax:(+33|0) 1 46 01 05 46 | goubier at hpc-project.com
    
    
More information about the users
mailing list