Am 13.10.2020 um 10:35 schrieb Ulrich Schmidt:

i use a iup.timer interrupt to read new values every second and try to
display them:

     local s = comPort:read(64, 600);
     if s ~= "" then
       messages.append = s;
       plot:Add(plotX, tonumber(s:match("%d+")));
       plotX = plotX + 1;
       plot.redraw = "CURRENT";
     end;

As i figured out meanwhile the "plot:Add(..)" statement crashes silently.
The next statement "plotX = plotX + 1;" does not become executed, hence
the plot.redraw statement will not be executed too.

Ulrich.


_______________________________________________
Iup-users mailing list
Iup-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iup-users

Reply via email to