01-18-2016 09:00 AM
Hi,
I have a XY graph with 40 plots. The visibility of each plot can be modified by the user using the plot visibility check box.
The user should have a option for saving data any point of the execution and the channels which are selectecd to display needs to be saved to a excel file.
When I use the option of export to excel, all the 40 channels names getting saved in the file. instead, I want only the selected channelswhich are selected to be saved into the file.
Kindly let me know a way to do this.
Solved! Go to Solution.
01-18-2016 09:49 AM
Hi Rajesh,
you need to do something called "programming"…
You (as the creator of the VI) know, which plots are set to visible. So it should be easy to filter your data to only include data of visible plots and save those data to a file…
01-18-2016 10:14 AM
Hi,
Thanks for the reply.
I have already made a logic as in the attachment which will find the visible plots and using the plot number i am indexing the data. And it is working fine.
I wanted know is there any property node or invoke node which will give all the visible plots in a XY graph.
01-18-2016 11:06 AM
01-18-2016 02:37 PM
Generally it is correct, but a few improvements would be nice.
It is better to read value data once - before loop, not every iteration.
Then you immediately know how many graphs you have and can replace while loop with for loop - autoindex will run through all graphs.
Advanced improvements:
If all your data have the same size, may be it is better to use Waveform Graph instead - it will require half data
It is usually not very nice to store data in a control. You keep data in a shift register preallocated array of specific size), update it while collecting new data and display when needed.
Otherwise with large number of graphs and fast display you will run into troubles with display performance.
To fight them you will need to decimate data, display graph less often than you update data points, and these approaches are not very convenient to implement with you structure.
01-19-2016 09:49 AM
Hi,
Thanks for the reply.
I have a have considered your suggestions and modified accordingly.
01-11-2018 06:33 AM
Rude much? I have the same question. I think the person who initially asked the question knew as well as I do that this task would require some development effort.