Hi all. I use Lua5.3 (TDM-GCC_64) on Windows10 together with iup,cd,im (precompiled DLLs from sourceforge). So far it works great.
I want to plot new measured values every second into a iup.plot inside my dialog. (see attached screenshot). During program initialization i create the plot: plot = iup.plot{ marginbottom = 20, }; plot:Begin(0); plot:End(); plotX =1; later comes the dialog.show(). 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; But it does not work like expected: The plot window stays empty. I can see the plot context menu by right clicking the plot area. I can drag and resize the main dialog without effecting the plot content. Any help? Ulrich.
_______________________________________________ Iup-users mailing list Iup-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/iup-users