LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

modify cluster

Hello,

 

In the attached VI, I would like to be able to dynamically change the Frequency values from the original cluster by going through the start/end sequence (in the attached VI) and then have those new frequency values output to a modified cluster (as shown in the image files). 

 

Any help will be greatly appreciated.

 

Thanks,

hiNi.

Download All
0 Kudos
Message 1 of 6
(3,319 Views)

You can right click on the listbox inside the cluster and choose create property node and pick the property node "Item Names".  There you can change the list.

 

Remember this only changes the appearance of items in the list.  The actual data doesn't change which is an array of which items are selected.  That is just an array of indices, is has no direct correlation to the item names unless you maintain the array of item names as data as well as the numeric array as data.

0 Kudos
Message 2 of 6
(3,314 Views)

Use the "Bundle by Name" function to update the values you want to change.

bundle by name.png

Note that you have modified the Frequency control such that the actual values are not visible.

 

steve

----------------------------------------------------------------------------------------------------------------
Founding (and only) member of AUITA - the Anti UI Thread Association.
----------------------------------------------------------------------------------------------------------------
0 Kudos
Message 3 of 6
(3,299 Views)

Hello,

 

Can you please give me an example.  I would like the new cluster to be update with the new values and then be able to use those new values to run a nested 'For Loop'.  I am still have a problem generating the new values for the frequency to show up in the updated cluster and then using those updated values for the 'For Loop'.

 

Please help.

 

Thanks,

hiNi. 

0 Kudos
Message 4 of 6
(3,289 Views)

An example of what? Changing an element of the cluster. That was shown to you in the second response. An example of changing a listbox? That's done via a property node, and examples ship with LabVIEW.

 

What possessed you to use a local variable of "Resolution" when you have the terminal right there? Use a wire!

 

Also, why are you performing such a trivial calculation using a Formula Node? Use LabVIEW primitives!

 

Stop coding like a text-based programmer.

0 Kudos
Message 5 of 6
(3,285 Views)

Sorry!

0 Kudos
Message 6 of 6
(3,282 Views)