LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving the selected plot data in XY graph

Solved!
Go to solution

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.

0 Kudos
Message 1 of 7
(4,257 Views)

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…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(4,245 Views)
Solution
Accepted by topic author Rajesh_10

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.

 

 

 

0 Kudos
Message 3 of 7
(4,227 Views)

Hi Rajesh,

 

there is no property that just outputs the visible plots.

You can read the properties of each plot and you can determine the number of plots in general. You have to do the filtering as you show in your image!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 7
(4,207 Views)

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.

0 Kudos
Message 5 of 7
(4,187 Views)

Hi,

 

Thanks for the reply. 

 

I have a have considered your suggestions and modified accordingly.

0 Kudos
Message 6 of 7
(4,150 Views)

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.

0 Kudos
Message 7 of 7
(3,483 Views)