LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create and add data to cluster

You either create a control or a constant to write to the indicator, or you create a local variable of the control.

Just have a look at the attachment - hope this clarifies it a little for you.

 

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 11 of 16
(849 Views)
Forgive me, I hope this won't irritate you but I just have problems with clusters. There are 4 elements on my block diagram. Cluster to indicator, Cluster indicator, and two labelled cluster with variable. Would you please explain the purpose of each and how exactly I am supposed to write the elements into the cluster. I really have not worked with clusters before. Please fully specify every step for me.
0 Kudos
Message 12 of 16
(838 Views)

I addes some more comments.

Do you know how to use bundle / unbundle?

If there are more questions - don't hesitate to ask.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 13 of 16
(824 Views)

Thanks Thomas, I put a while loop around the vi you gave me yesterday and was able to see how the other clusters change when the cluster to indicator's values change. From this I played around with the local variable and it gave me some light (solution) to some of the problems I was having regards storing values. You have no idea how this simple vi helped me.

There's still a lot I have to learn about LabVIEW to fully realise its potential. Thanks for your patience.

Ntombi

 

0 Kudos
Message 14 of 16
(822 Views)

You're welcome.

By the way - this is what we are here for. Either to learn or to help Smiley Wink.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
0 Kudos
Message 15 of 16
(817 Views)
Hello,
 
A control will take values from a user on the front panel.  You can also assign values programmatically to controls using a local variable (right click on your cluster and choose Create -> Local Variable) as well as a property node via the Value property (created similarly as Create -> Property Node).  However you should really only use the property node to do this if you will have to use it to change another property as well, because property nodes execute in the user interface thread, and thus potentially cause a thread swap; if you're modifying properties anyway, then there's no harm in using it to assign the value as well.
 
I think this is what you were asking about.
 
Best Regards,
 
JLS
Best,
JLS
Sixclear
0 Kudos
Message 16 of 16
(807 Views)