10-15-2022 08:37 PM
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.
10-17-2022 03:08 AM
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.
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.
10-26-2022 01:23 AM
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.
10-26-2022 03:35 AM
@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.