[Scilab-users] Problem with event handler.

classic Classic list List threaded Threaded
4 messages Options
aweeks aweeks
Reply | Threaded
Open this post in threaded view
|

[Scilab-users] Problem with event handler.

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
[hidden email]

HID Global Logo

Unit 3, Cae Gwyrdd,
Green meadow Springs,
Cardiff, UK,
CF15 7AB.
www.hidglobal.com

 

 


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
RolandB RolandB
Reply | Threaded
Open this post in threaded view
|

Re: Problem with event handler.

Hi,

your problem could be realted to this bug:

http://bugzilla.scilab.org/show_bug.cgi?id=15374

And/or this bug:

http://bugzilla.scilab.org/show_bug.cgi?id=15996

Regards,
Roland





--
Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
Antoine Monmayrant Antoine Monmayrant
Reply | Threaded
Open this post in threaded view
|

Re: Problem with event handler.

In reply to this post by aweeks

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
[hidden email]

HID Global Logo

Unit 3, Cae Gwyrdd,
Green meadow Springs,
Cardiff, UK,
CF15 7AB.
www.hidglobal.com

 

 


_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users
aweeks aweeks
Reply | Threaded
Open this post in threaded view
|

Re: [EXT] Re: Problem with event handler.

Hi Antoine,

 

Yes, I sent the mail without attachments, then realised my mistake and sent it again with.

If you can’t find the second mail please let me know and I’ll send it again.

 

Thank you.

 

Adrian Weeks
Development Engineer, Hardware Engineering EMEA
Office: +44 (0)2920 528500 | Desk: +44 (0)2920 528523 | Fax: +44 (0)2920 520178
[hidden email]

HID Global Logo

Unit 3, Cae Gwyrdd,
Green meadow Springs,
Cardiff, UK,
CF15 7AB.
www.hidglobal.com

 

 

From: users <[hidden email]> On Behalf Of Antoine Monmayrant
Sent: 30 January 2020 14:21
To: [hidden email]
Subject: [EXT] Re: [Scilab-users] Problem with event handler.

 

*** Please use caution this is an externally originating email. ***

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
[hidden email]

HID Global Logo

Unit 3, Cae Gwyrdd,
Green meadow Springs,
Cardiff, UK,
CF15 7AB.
www.hidglobal.com

 

 



_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users

_______________________________________________
users mailing list
[hidden email]
http://lists.scilab.org/mailman/listinfo/users