10-06-2014 07:52 PM - edited 10-06-2014 08:02 PM
Hello all,
I'm currently using LV2012. My application has an array of waveform graphs, each displaying a plot of a couple of signals (on a pair of channels each). No problems there.
As a nice-to-have feature, I'd like to update the caption and/or label (and/or any other text property) of an individual waveform graph within that array. I've found code to access the properties of a particular graph (https://decibel.ni.com/content/docs/DOC-31607), but updating any of those causes updates to the entire array.
As a workaround, I'm thinking of putting an array of text boxes (with transparent backgrounds) over the top of the waveform charts to display the individual channel information instead. Not my preferred solution, but it will get the implementation done quickly - I hope. It will take some work to make it as extensible and flexible as the waveform plots, though.
If anybody has any thoughts about how to change just one plot's caption/label/text properties, please let me know. Working code to show how to do it would be nice, too.
Regards,
Geoff
10-06-2014 08:38 PM
You can't. When you have an array, each element of the array can have different values, but the properties are shared among all elements of the array.
10-06-2014 08:52 PM
Thanks for that Sir Orioles...
I rather thought that was the case from the reading I've done to date. Pity. It would be a nice feature to have.
10-06-2014 08:58 PM
Is it possible to make an array of clusters instead of an array of graphs to perform this task?
Each cluster contains a graph. The graph can be changed. If you change the properties of the cluster's element, would it change every cluster in the array?
10-06-2014 09:04 PM
Each waveform chart is already a cluster.
Possibly, if I add a string element to the cluster and display that, it would be a solution to my problem.