hello people,
i am having small problem with plotting measurements in real time
i have a program which takes some measurements from an instrument and want to have graphical live preview
there is main loop which goes on and on until user stops the program
within the loop, i have several frames to set and change settings
one frame is dedicated to reading from the device and plotting
my reading function (X-ed icon in the picture) returns not only data but also measurement conditions like start and stop wavelength, which i want to use to format the graph
so, i have auxiliary cluster (same as conditions) set initially to some value and each time i read data, check if conditions changed
if not, no need to refresh axes and labels (this causes flickering in my case, also dont know why),
then data is written to the graph (graph is in the same frame)
in the case structure i set axis labels (constants) and min/max values (these are from the conditions)
in the graph, labels are displayed as they should be, but instead of proper values on the x-axis i have only number of points
anyone could explain this to me pls?
regards