muganga wrote:
I have two sensors, temperature and pressure. After press a button in a specific VI, both sensores start working and start registering the temperature and pressure. Independent of time. I mean, just if pressure or temperature change I will have another point plotted in the graph.
Well, you would use my last code, but place the built array nodes and the graph terminal inside a case structure. In the other case, you just wire the arrays across.
Use two more shift registers where you keep the last data point and, at each interation, you check if the current value is "significantly different" from the previous value. Only if this is true, you would append the history and update the graph. This defeinitely needs to be tuned, because DBL values are often slightly different due to noise, so you want to ignore small differences.
See how far you get. 🙂