I have a measurement setup where I measure two pressures and flow in realtime. The data is captured about once per second and I have this wired directly to indicators and charts so they update as data is coming in to be able to tune the parameters (tweak some nobs and stuff). What I want to do is show the latest sample from one of the pressure channels and the flow in realtime on an XY graph, and when I press a button, that sample/datapoint is stored and I can adjust my setup to store the next, thus building up a XY graph point by point, with the latest point updating in realtime.
I have played around with shift registers, "insert into array" and "build array" but I simply can not get it right. I'm a beginner...
In the attached VI i havetried to simplify and played around (two approaches in parallell) to try and make a counter increasing at buttonpress. I have moved the initial constant and chart in and out of the boxes and so on. In this break down test I wanted the XY graph to increase by 1 step both on the X and the Y-axis at each buttonpress but no luck. Please help.