05-04-2012 07:24 PM
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.
05-04-2012 08:15 PM
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.
05-05-2012 12:47 AM
Use the "Bundle by Name" function to update the values you want to change.
Note that you have modified the Frequency control such that the actual values are not visible.
steve
05-05-2012 07:30 AM
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.
05-05-2012 09:18 AM
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.
05-05-2012 09:40 AM
Sorry!