LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Adding multiple graphs in front panel

Hi Guys,

              We are developing a program that displays the acquired waveform data in Graphs. Selection of  number of graphs in front panel has to be in user control. Can you guys help me in doing this.

 

 

0 Kudos
Message 1 of 4
(2,105 Views)

You can make this as easy or difficult as you'd like, depending on how you want the UX to be.

The easiest is to simply show the Plot Visibility Checkbox in the legend of the graph. This way, the user can shows/hide any graph.

Basjong53_0-1665994005034.png

 

If you want to show each graph in an individual control, you can add like 10 graphs to the FP. Then hide/show the entire graph control based on the user selection. You'd need to manually resize and position the graph controls though.

0 Kudos
Message 2 of 4
(2,043 Views)

Thanks for your Reply.

 

We have try  to approach the issue with 2d array of graph enclosed inside cluster.

 

Note:

        Memory Management while going for high sampling rate. when we are about to handle 80 channels memory management play a major role.

 

0 Kudos
Message 3 of 4
(1,988 Views)

@Anbarasan.10 wrote:

Thanks for your Reply.

 

We have try  to approach the issue with 2d array of graph enclosed inside cluster.

 

Note:

        Memory Management while going for high sampling rate. when we are about to handle 80 channels memory management play a major role.

 


2 options to reduce memory usage:

1) If the graphs have the same x-values you can use a waveform graph. Determine the spacing of the x-values and set the x-scale multiplier of the waveform graph accordingly. This way you only need to wire the y-values as a 2D array (no cluster).

2) The graph has a limited amount of pixels on the screen. It's not necessary to plot >10000 points, since you won't see them anyway. You can keep the full data in memory and decimate/average/smooth/etc. your array once it reaches a certain number of points to display a reduced number of points. 

Message 4 of 4
(1,970 Views)