On 17/10/2020 21:00, Stefan Du Rietz wrote:
Hello Stephane and Antoine,

I tried to explain why I cannot. After I have pressed the button with the callback, I can see that it takes a long time until the toc() message from the start of myfunction arrives. I don't know how to get the time from my button-press. Any idea?
No, I'm afraid it goes beyond my field of expertise.
It seems to me that the issue is that java is taking for ever to tell scilab to call the callback function after you pressed the button. I don't see how you can catch it using "callback","tic();myfunction()"as for me I think the time-line is like:

[Java] ButtonHasBeenReleased ... wait forever for unknown reason ... oh, by the way, I'm supposed to register that the ButtonHasBeenReleased [Java] > [Scilab] ButtonHasBeenReleased, I call  "tic();myfunction()" [Scilab].

I think you need a way to measure this delay for within Java. I am not sure you can do it from within Scilab.

Sorry I cannot help more,

Antoine


Stefan



On 2020-10-17 17:10, Stéphane Mottelet wrote:
Hello Stefan,

Do you have a complete example using e.g. an uicontrol or else ?

S.

Le 17 oct. 2020 à 16:49, Stefan Du Rietz <[email protected]> a écrit :

Hello,

in the latest version Scilab 6.1.0, I have noticed that sometimes there is a long delay before the execution of a callback, If I try to measure it, e.g. by using tic()

  "callback","tic();myfunction()"

and then, in the beginning of myfunction(), having

  disp(toc())

the time is very short despite a delay of half a minute! Can anybody explain this and tell me how to find out what is going on?

Thanks i advance
Stefan
_______________________________________________
users mailing list
[email protected]
https://antispam.utc.fr/proxy/1/c3RlcGhhbmUubW90dGVsZXRAdXRjLmZy/lists.scilab.org/mailman/listinfo/users

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

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

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

Reply via email to