07-19-2018 05:16 AM
I am building a VI where the user can import a csv file (waveform) which is then displayed on to an xy graph.
I've used a VI from here to import the csv and bundled output the array for a XY graph plot. so far so good.
What I want to achieve now is keeping the previous plot loaded on the graph when/if another csv file is imported. At the moment whenever I do that it overwrites the current plot (ie I do not get plots 0, 1..., only plot 0).
the final part is that if the added plot is bigger/smaller than the current plot x range, then the value of that plot is set to its last y value for the undefined range
any pointers as how I may achieve these objectives?
Solved! Go to Solution.
07-19-2018 05:46 AM
Use multiplot XY with array with 1 or more elements.
you can add/remove array elements any time
07-19-2018 05:47 AM
Look at the shipped example on how to display plots in an XY-graph.
Store the 'old' plots as array(s) in a shift register
from your last plot x values, lookup the max and min value (min/max array) and use the x-scale-range-min/max properties to change the scale shown.
07-19-2018 06:31 AM - edited 07-19-2018 06:31 AM
ok.... I cannot seem to make my XY graph become a multi plot... just getting a broken wire when I try to connect wire to plot... sorry for the dumb question but do I get a multi plot XY graph
07-19-2018 06:40 AM
no bother... realised I had to delete the old xy graph and add a next one for it to accept the change!!! why can't labview just update that automatically.... I ask myself!
07-19-2018 06:58 AM
Labview can.
Maybe you tried connect local variable or terminal to array when another copy was connected to scalar?