FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Question:How to disable a Controller/Indicator in a cluster?

In some condition, I want a part of the Controllers or Indicatiors in a  cluster are disabled and in gray.

Is it possible in labview? If yes, how can I do to get it?

0 Kudos
Message 1 of 13
(6,526 Views)

Search the LabVIEW forum and you'll find several ways to do it.

Is there a way to disable a single control within a  cluster?

how to disable numeric controls in a cluster one  by one.

If you're not specifically looking for help with the FIRST Robotics Competition, the LabVIEW forum is a better place to post.

0 Kudos
Message 2 of 13
(3,877 Views)

On the FP, rightclick the desired control in the cluster and select create>> property node>>Disabled

Afterwards place it on you block diagram and wire it.

Hope it helped

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
0 Kudos
Message 3 of 13
(3,877 Views)

Thanks!!!

0 Kudos
Message 4 of 13
(3,877 Views)

One more question after the first one, can we disable a Controller/Indicator in a cluster by a sub vi?

The clusters are the inputs or outputs of the sub vi. (I just don't want to put a lot of references in the main vi) Thanks

0 Kudos
Message 5 of 13
(3,877 Views)

1)What you could do is not to input the cluster itselve into the subvi, but an array of references of the controls in the cluster.

     In the subvi you can use a property node in a FOR LOOP.  Wire the array of references to the property node (auto-indexing).

2) A second way to do it (a little bit more difficult, but more flexible), is to create a reference of the cluster and use that as an input of the subVI.

     In the subVI, fetch with the property node all refences to the controls inside that cluster (property controls).  Wire this array to a FOR LOOP with inside of it the property node disabled.

     The only thing you have to do is to identify the control which you want to enable/disable.

If you want, I can make an example VI for both cases.  Just let me know which version of LV you're using.  And I will post an example this evening

Have fun...

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
0 Kudos
Message 6 of 13
(3,877 Views)

Thanks for your notes.  The exemples should be quite helpful for me.

If there is a way to change the link of reference which is the input of sub vi, I can disable all the clusters the same type in the main vi. Could I?

0 Kudos
Message 7 of 13
(3,877 Views)

OK, if you tell me what LabVIEW version you're using, I will upload an example by

tomorrow to this feed.

If you use a reference to a cluster (standard and not specific), it does not matter which clusterreference you attach.  It works for all of them.  The only thing you have to keep in mind is the determination of which control in a certain cluster you want to disable.

The easiest way to do a determination is by the label of a certain control inside the cluster.  The only downside with this is that the names of the labels should be unique.

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
0 Kudos
Message 8 of 13
(3,877 Views)

I thought to use a FOR LOOP and one reference who could link to all the clusters as input of sub vi. So that i could control all the clusters.

I am a little lost about the determination... In all my cluster, I can the uniform labels.

I use the version 8.6. Just the second way you said will be enough for me. Thanks very much.

0 Kudos
Message 9 of 13
(3,877 Views)

Hi,

OK, i'll post an example here by tomorrow.

If you want to apply it for several clusters, the I think the easiest way is to call the subVI's several times

Have fun

Kind regards,

- Bjorn -

Have fun using LabVIEW... and if you like my answer, please pay me back in Kudo's 😉
LabVIEW 5.1 - LabVIEW 2012
0 Kudos
Message 10 of 13
(3,877 Views)