[Scilab-users] Problem with event handler.

Antoine Monmayrant antoine.monmayrant at laas.fr
Thu Jan 30 15:21:14 CET 2020


Hello Adrian,


I don't see any piece of scilab code attached to your message.
Did you forget it?


Antoine

Le 30/01/2020 à 10:38, Adrian Weeks a écrit :
>
> Hello,
>
> Could someone try running this piece of code to see what’s going 
> wrong, please?
>
> The purpose is to set up a display window with an associated event 
> handler.
>
> Function ‘Task’ contains an endless loop in which some measurements 
> would be made and the results displayed in the window.
>
> A mouse left click in the window should stop the endless loop allowing 
> an exit from function ‘Task’ and moving on to the following lines of code.
>
> Using Scilab 5.4.1  (I know it’s an older version but I’ve been using 
> it for a long time and it works for me):
>
> If you place the caret at  ‘// Point 1’ and execute with <CTRL>E the 
> code should work correctly as shown in Capture 1.
>
> If you place the caret at ‘//Point 2’ and do the same the loop will 
> work but Scilab will run past  the call to ‘Task’ and execute the 
> following lines x3, x4, x5 (Capture 2).  I would expect it to stop in 
> function ‘Task’ until the function is exited in the intended way by 
> the mouse left click.
>
> Using Scilab 6.0.1
>
> Scilab is almost totally unresponsive to the mouse click.  Something 
> goes on in the background and when it does eventually stop the results 
> are like Capture 3, 4 & 5.  The same over-run of function ‘Task’ occurs.
>
> Using a Dell Optiplex 3060, i3-8100 CPU, Win10 Enterprise.
>
> Am I missing something or is this a genuine bug?
>
> Many thanks.
>
> Adrian Weeks
> Development Engineer, Hardware Engineering EMEA
> Office: +44 (0)2920 528500 | Desk: +44 (0)2920 528523 | Fax: +44 
> (0)2920 520178
> aweeks at hidglobal.com <mailto:aweeks at hidglobal.com>
>
> HID Global Logo <http://www.hidglobal.com/>
>
> Unit 3, Cae Gwyrdd,
> Green meadow Springs,
> Cardiff, UK,
> CF15 7AB.
> www.hidglobal.com <http://www.hidglobal.com>
>
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20200130/0d5993af/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 1751 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20200130/0d5993af/attachment.gif>


More information about the users mailing list