06-02-2024 12:45 AM
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.
Solved! Go to Solution.
06-02-2024 01:50 AM - edited 06-02-2024 01:51 AM
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")
06-02-2024 04:05 AM
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.
06-02-2024 09:28 AM
@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. 😄
06-03-2024 06:39 AM
Bundle to cluster is how you usually change such stuff.
06-03-2024 11:52 AM
@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.
Of course there are better ways.
06-04-2024 09:32 PM
Hi dear friend, it was just in the document that use array index and property node to made it. Nothing special.
06-04-2024 09:33 PM
Brilliant! Thank you very much.
06-04-2024 10:15 PM
@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?
06-05-2024 07:26 AM
@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.