04-27-2015 07:37 AM
Hello.
After two days tray to solve problem, I need your help.
I have problem with presentation some data. Data growning aproxx. linear. I read this data from device. Sometime my .vi not successful read data and in this case my chart have sags to zero (see on picture)
How I can make chart : if not succesfull read data use previous value to show on the graph? In this case I not have big sags to zero.
Pls help.
Solved! Go to Solution.
04-27-2015 08:13 AM - edited 04-27-2015 08:14 AM
Hi Qooler,
easy solution: when you don't want those zeros in your chart you shouldn't put them into the chart plot!
if not succesfull read data use previous value to show on the graph?
Some pseudocode:
new value := readDAQ() IF error on reading new data THEN new value := old value ENDIF plot(new value) old value := new value
Please attach images/VIs/files directly in the forum using the attachment button right below the message edit box. Using 3rd party websites will just lead to problems when accessing this website from behind (company) firewalls!
04-27-2015 06:00 PM
04-28-2015 01:27 AM
Mike,
How I can use NaN for this simple graph. Thee random numeric plot to graph. If random number 0 use NaN? (this is same case like my problem when read data from device)
04-28-2015 01:38 AM
04-28-2015 04:38 AM