[Scilab-users] Problem with GUI / SERIAL / REALTIME.

Jonas jonas.vieira.de.souza at gmail.com
Wed Aug 16 05:00:19 CEST 2017


That's what it looks like, single-threaded occupied by the looping of
the open_serial () function.
Do not manipulate the button.

Do you have any workarounds for this?
What option do I have in this case?


<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Livre
de vírus. www.avast.com
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>.
<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>

On Tue, Aug 15, 2017 at 10:33 AM, Robin Farine <robin.farine at gmail.com>
wrote:

> On Tue, Aug 15, 2017 at 2:38 PM, Jonas <jonas.vieira.de.souza at gmail.com>
> wrote:
> >
> >
> > Hi, I'm having a problem with GUI / SERIAL / REALTIME. . After the
> serial is open, I can not close the serial by pressing the graphic button I
> created for this.
>
> [...]
>
> > function open_serial()
> >     global serial;
> >     global is_connected;
> >     global is_disconnected;
> >
> >     if is_connected == %F then
> >         is_connected = %T;
> >         is_disconnected = %F;
> >         serial = openserial( 2, "9600,n,8,1" );
> >
> >         set( _connect_button, 'relief','sunken' );
> >         set( _disconnect_button, 'relief', 'raised');
> >         set( _label_status, 'string', 'connected' );
> >
> >         while is_connected == %T & is_disconnected == %F then
> >             read_serial();
> >         end
>
> Just guessing but isn't Scilab single-threaded, busy looping in
> "open_serial()" and therefore no longer handling your UI button
> events?
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
>



-- 


Jonas Vieira de Souza ** **Graduating in electronic engineering*

jonas.vieira.de.souza at gmail.com <jonas.souza at tecnnova.com.br>

+55(48)9.9944-3117
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20170816/1408fd37/attachment.htm>


More information about the users mailing list