LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Selecting items from clusters

I have a cluster of several XY plots.  Is there a way I can choose which of the plots is viewed (not on the XY plot in a tableor similar format) the number of plots on the graph depends on how many times the code is run.  To do this I need to programatically remove the items from the cluster.  Is there a way in which this can be done????

 

Thanks,

Matt.

0 Kudos
Message 1 of 5
(2,886 Views)

Hi Matt,

 

in a cluster you have a fixed number of elements. You can't change that number on runtime...

 

Maybe you attach an example vi to demonstrate what your after and to show your datatype exactly!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 5
(2,872 Views)

Hello Matt,

 

thank you so much for your post on our webforum. I made a small example containing a cluster with two arrays. I made a rerence from my cluster control / indicator and put that on a propertyu node. Now we can select the controls property from the cluster; we get an array with all control refrences from the controls within the cluster. Just select the right element(s) from the array (or refrences) and you can feed this control refrence to another property node, get the values (variant). Maybe my example will make things more clear.

 

Have a great weekend!

 

Best regards,

Martijn S
Applications Engineer
NI Netherlands
Message 3 of 5
(2,861 Views)

The program I'm putting up shows how teh data is stored but it isn't the program I'm writing which  requires an HP4061 PSU to work.  It should allow you to see how I create the data for each plot and how it is stored with in the clusters and arrays.

 

Thanks,

Matt

0 Kudos
Message 4 of 5
(2,855 Views)

Hi Matt,

 

you have an "array of plots" (well, I prefer to use build array in favor of InsertIntoArray). That's completely different to "I have a cluster of ... plots"!

 

You can always use IndexArray to select only the plots needed...

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 5 of 5
(2,848 Views)