<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:#954F72;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";
mso-fareast-language:EN-GB;}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-GB;}
span.EmailStyle19
{mso-style-type:personal;
font-family:"Calibri",sans-serif;
color:windowtext;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Consolas",serif;
mso-fareast-language:EN-US;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-GB" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal">Hi Antoine,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Yes, I sent the mail without attachments, then realised my mistake and sent it again with.<o:p></o:p></p>
<p class="MsoNormal">If you can’t find the second mail please let me know and I’ll send it again.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Thank you.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="600" style="width:450.0pt">
<tbody>
<tr>
<td width="600" style="width:450.0pt;padding:1.5pt 1.5pt 1.5pt 1.5pt">
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="mso-fareast-language:EN-GB">Adrian Weeks
<br>
Development Engineer, Hardware Engineering EMEA<br>
Office: +44 (0)2920 528500 | Desk: +44 (0)2920 528523 | Fax: +44 (0)2920 520178<br>
<a href="mailto:aweeks@hidglobal.com"><span style="color:blue">aweeks@hidglobal.com</span></a><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="600" style="width:450.0pt;padding:1.5pt 1.5pt 1.5pt 1.5pt">
<p class="MsoNormal"><a href="http://www.hidglobal.com/"><span style="color:blue;mso-fareast-language:EN-GB;text-decoration:none"><img border="0" width="234" height="36" style="width:2.4375in;height:.375in" id="_x0000_i1026" src="cid:image001.gif@01D5D787.715A2E70" alt="HID Global Logo"></span></a><span style="mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td width="600" style="width:450.0pt;padding:1.5pt 1.5pt 1.5pt 1.5pt">
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">Unit 3, Cae Gwyrdd,<br>
Green meadow Springs,<br>
Cardiff, UK,<br>
CF15 7AB.<br>
<a href="http://www.hidglobal.com"><span style="color:blue">www.hidglobal.com</span></a><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="mso-fareast-language:EN-GB">From:</span></b><span lang="EN-US" style="mso-fareast-language:EN-GB"> users <users-bounces@lists.scilab.org>
<b>On Behalf Of </b>Antoine Monmayrant<br>
<b>Sent:</b> 30 January 2020 14:21<br>
<b>To:</b> users@lists.scilab.org<br>
<b>Subject:</b> [EXT] Re: [Scilab-users] Problem with event handler.<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal" align="center" style="text-align:center;text-indent:12.0pt;background:#FFB3B3">
<b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:black">*** Please use caution this is an externally originating email. ***
</span></b><b><span style="font-size:10.0pt;font-family:"Arial",sans-serif;mso-fareast-language:EN-GB"><o:p></o:p></span></b></p>
</div>
<div>
<p>Hello Adrian,<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>I don't see any piece of scilab code attached to your message.<br>
Did you forget it?<o:p></o:p></p>
<p><o:p> </o:p></p>
<p>Antoine<o:p></o:p></p>
<div>
<p class="MsoNormal">Le 30/01/2020 à 10:38, Adrian Weeks a écrit :<o:p></o:p></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<p class="MsoNormal">Hello,<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Could someone try running this piece of code to see what’s going wrong, please?<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">The purpose is to set up a display window with an associated event handler.<o:p></o:p></p>
<p class="MsoNormal">Function ‘Task’ contains an endless loop in which some measurements would be made and the results displayed in the window.<o:p></o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">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):<o:p></o:p></p>
<p class="MsoNormal">If you place the caret at ‘// Point 1’ and execute with <CTRL>E the code should work correctly as shown in Capture 1.<o:p></o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Using Scilab 6.0.1<o:p></o:p></p>
<p class="MsoNormal">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.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Using a Dell Optiplex 3060, i3-8100 CPU, Win10 Enterprise.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Am I missing something or is this a genuine bug?<o:p></o:p></p>
<p class="MsoNormal">Many thanks.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="600" style="width:450.0pt">
<tbody>
<tr>
<td width="600" style="width:450.0pt;padding:1.5pt 1.5pt 1.5pt 1.5pt">
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="mso-fareast-language:EN-GB">Adrian Weeks
<br>
Development Engineer, Hardware Engineering EMEA<br>
Office: +44 (0)2920 528500 | Desk: +44 (0)2920 528523 | Fax: +44 (0)2920 520178<br>
<a href="mailto:aweeks@hidglobal.com"><span style="color:blue">aweeks@hidglobal.com</span></a></span><o:p></o:p></p>
</td>
</tr>
<tr>
<td width="600" style="width:450.0pt;padding:1.5pt 1.5pt 1.5pt 1.5pt">
<p class="MsoNormal"><a href="https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.hidglobal.com%2F&data=02%7C01%7Caweeks%40hidglobal.com%7Cbbc5ab26fff94d3e885108d7a5946d92%7Cf0bdc1c951484f86ac40edd976e1814c%7C0%7C0%7C637159929236512556&sdata=RFCAgA6qGdkHCjsLO0rgoxXeuITe6vly9%2FhTHWGNINQ%3D&reserved=0"><span style="color:blue;mso-fareast-language:EN-GB;text-decoration:none"><img border="0" width="234" height="36" style="width:2.4375in;height:.375in" id="Picture_x0020_1" src="cid:image001.gif@01D5D787.715A2E70" alt="HID Global Logo"></span></a><o:p></o:p></p>
</td>
</tr>
<tr>
<td width="600" style="width:450.0pt;padding:1.5pt 1.5pt 1.5pt 1.5pt">
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB">Unit 3, Cae Gwyrdd,<br>
Green meadow Springs,<br>
Cardiff, UK,<br>
CF15 7AB.<br>
<a href="https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.hidglobal.com%2F&data=02%7C01%7Caweeks%40hidglobal.com%7Cbbc5ab26fff94d3e885108d7a5946d92%7Cf0bdc1c951484f86ac40edd976e1814c%7C0%7C0%7C637159929236512556&sdata=RFCAgA6qGdkHCjsLO0rgoxXeuITe6vly9%2FhTHWGNINQ%3D&reserved=0"><span style="color:blue">www.hidglobal.com</span></a></span><o:p></o:p></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB"> </span><o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB"><br>
<br>
<o:p></o:p></span></p>
<pre>_______________________________________________<o:p></o:p></pre>
<pre>users mailing list<o:p></o:p></pre>
<pre><a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><o:p></o:p></pre>
<pre><a href="https://nam02.safelinks.protection.outlook.com/?url=http%3A%2F%2Flists.scilab.org%2Fmailman%2Flistinfo%2Fusers&data=02%7C01%7Caweeks%40hidglobal.com%7Cbbc5ab26fff94d3e885108d7a5946d92%7Cf0bdc1c951484f86ac40edd976e1814c%7C0%7C0%7C637159929236522553&sdata=m%2BP2x5pC5rmZ2xQKGsWif8FLLSoJ50JEh%2F0gZd5HZgk%3D&reserved=0">http://lists.scilab.org/mailman/listinfo/users</a><o:p></o:p></pre>
</blockquote>
</div>
</div>
</body>
</html>