05-04-2020 12:43 AM
I have a cluster containing
1) 1 waveform chart
2) Another cluster containing a 5 Booleans.
I want to get out point 2 as an array of Boolean.
Later on, I want to use to array to set which of the 5 plots in the chart there is visible
How do I get out the Booleans array?
05-04-2020 01:05 AM - edited 05-04-2020 01:07 AM
Hi mkoppelgaard,
@mkoppelgaard wrote:
2) Another cluster containing a 5 Booleans.
I want to get out point 2 as an array of Boolean.
Later on, I want to use to array to set which of the 5 plots in the chart there is visible
How do I get out the Booleans array?
As the cluster in your image only contains 4 booleans:
To "get out elements" from your array you use basic array functions like IndexArray…
(Or use an autoindexing FOR loop to set the corresponding plot property.)
05-04-2020 01:22 AM
Hi GerdW
I already tried that :
05-04-2020 01:33 AM - edited 05-04-2020 01:35 AM
Hi mkoppelgaard,
@mkoppelgaard wrote:
I already tried that :
You already attached this image to your first message…
Why don't you use AutoCleanup, atleast to show straight wires?
Why do you read the references of the controls inside the cluster? (Which should be references to those boolean controls!?)
Edit: Now I see: you placed the chart with this other cluster inside another bigger cluster… What's the point of this step?
And why don't you use the visibility option in the plot legend???
To read the content of the referenced cluster you either need to convert the reference to a specific (strict) typed cluster reference (you used a generic one) - or convert the variant data to a boolean array…
05-04-2020 03:06 AM
Hi GerdW
I tried to follow some of you advices. I don't know what you think? Now at least it’s working as I intended it to do 🙂
05-04-2020 03:39 AM
Seems to be 4 Booleans in that cluster (not 5)?
05-04-2020 04:50 AM
Year 4 not 5. My mistake