Question on using plot in call_scilab module

Norman Beamish norman.beamish at m4s.be
Thu Jun 3 12:12:57 CEST 2010


Hi,

I'm using the call_scilab module to access scilab functions from within 
a C program.  I'm using MS Visual C++ 2008 on MS Vista.

Everything that just writes its output to the console works ok.  However 
when I use the scilab plot command
      SendScilabJob("plot(x,y, style);")
I find that the plot window freezes and the plot menu options are 
unavailable unless I run the following loop: -
    while( ScilabHaveAGraph() )
    {
        ScilabDoOneEvent();
    }
Of course this loop stops my program from doing anything else. 

My question:
I believe this problem arises because everything is operating in a 
single thread.  Is there a way to make the plot command start out in a 
separate thread so that it can still monitor for user events such as 
mouse clicks while the rest of my program continues.

thanks,
Norm



More information about the users mailing list