LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Modify the value of a boolean control in a cluster

Solved!
Go to solution

I have a cluster that contains several controls. I would like to set one of the controls to false in a step. How do I make it? I could not find a way.

0 Kudos
Message 1 of 10
(547 Views)
Solution
Accepted by topic author SJPAN

If it is a control, just click it in one step!

 

(You can also aways create a value property for the cluster element and write to that). We can typically give much more specific advice once we have more information on what you are trying to do. Maybe even attach a simplified version of your VI. Also explain all vague terms, such as what you mean by "step")

0 Kudos
Message 2 of 10
(522 Views)

Thank you for answering my question. However, I have to define a set of functions to modify it in the cluster.. Luckily I've made it now.

0 Kudos
Message 3 of 10
(494 Views)

@SJPAN wrote:

Thank you for answering my question. However, I have to define a set of functions to modify it in the cluster.. Luckily I've made it now.


What are "functions"? I am not sure why you "have to", but if you found a brilliant solution, why not share it?

 

Programming is typically not by luck, but by thinking. 😄

0 Kudos
Message 4 of 10
(467 Views)

Bundle to cluster is how you usually change such stuff.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 5 of 10
(412 Views)
Solution
Accepted by topic author SJPAN

@Yamaeda wrote:

Bundle to cluster is how you usually change such stuff.


... not if the cluster is a control (instead of an indicator).

 

Of course we can always write the entire cluster back via a local variable, but we can actually have direct value properties for cluster elements. For example, the following code will light the LED if the numeric is negative. Note that the LED should be disabled so it cannot be operated, except by the code.

 

altenbach_0-1717433404938.png

 

Of course there are better ways.

 

0 Kudos
Message 6 of 10
(392 Views)

Hi dear friend, it was just in the document that use array index and property node to made it. Nothing special.

0 Kudos
Message 7 of 10
(328 Views)

Brilliant! Thank you very much.

0 Kudos
Message 8 of 10
(326 Views)

@SJPAN wrote:

Hi dear friend, it was just in the document that use array index and property node to made it. Nothing special.


Thant makes absolutely no sense. 😄 What document?

0 Kudos
Message 9 of 10
(312 Views)

@SJPAN wrote:

Hi dear friend, it was just in the document that use array index and property node to made it. Nothing special.


Are you talking about using the Control[]-property of the cluster? Yeah, that's just making it hard for yourself for no reason.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 10 of 10
(294 Views)