08-28-2008 07:18 AM
I have a large cluster of controls that are available to the user. I am trying to develop a Labview program that can know what controls within the cluster were modified. I have test configurations saved on the hard drive that I want to modify using this cluster. The problem is that the control is a template of the saved data that I am trying to modify. So opening the file and writing the control values overwrites values that I do not want changed. So in short I want to change certain controls within a cluster. The next step is to open the file and change ONLY the control values that I had the user change on the front panel. I have been spinning my wheels trying to come up with a way to do this. I would appreciate any insight to this problem.
Thanks,
Troy
08-28-2008 07:37 AM
Hi Troy,
you can use a property node to get all references of the controls in your cluster. You will get an array of references. You can go through the array and read all the values you need.
Mike
08-28-2008 07:43 AM
08-28-2008 08:40 AM
Mike - I have been trying to do what you have explained here. I am not getting the idea. Could you give me an example of what you are talking about? I want to find out which control in the cluster has changed and output that control to update the test configuration files.
Thanks,
Troy
08-28-2008 08:42 AM
Paul - I have implemented the technique you have explained. Now I have to determine what value in the boolean cluster is false then output that control name to update my files with that control value only. Thanks in advance for any help.
Troy
08-28-2008 08:53 AM - edited 08-28-2008 08:54 AM
This code will reveal which value changed.
You can then use the property node to read the value.
Put the search in a loop to find more than one value that has changed.
Ben
08-28-2008 10:01 AM
08-28-2008 10:14 AM
Please read through this Nugget on exploiting control references.
Don't worry if you get lost before you finish it. Just read far enought to get some idea on how to access the elements of the cluster you are after. You can always go back and read more after you are more comfortable with LabVIEW.
Ben
08-28-2008 11:51 AM
08-28-2008 02:23 PM
Ben - Ok I thought I could work through this but there is something I am just not getting. I have attached an example of what I am trying to do with explanations both on the front panel and the block diagram. If you could take a look and comment that would be great. I appreciate your time.
Thanks,
Troy