01-17-2015 08:50 AM
Using an array cluster for a control to program an instrument. For adding additional elements I Click on cluster. Right click and choose data operations. Then choose insert element before.
WHY WHEN REOPENING AFTER CLOSING THE ELEMENT IS GREYED OUT AND DISABLED.
Please use the following vi for reference.
Thanks,
dg_dog
Solved! Go to Solution.
01-17-2015 08:57 AM
Hi dog,
WHY WHEN REOPENING AFTER CLOSING THE ELEMENT IS GREYED OUT AND DISABLED.
No need to cry!
Question: why do you expect it to be NOT greyed out?
As long as you don't save the new data within the control (by making the value default) it will not remember your changes…
01-17-2015 02:25 PM
Yep, you either need to save your changes by setting them as the default. Or if this is something that gets changed programatically then you might need to save the cluster data into a file then when the program re-opens you can load that data back into the control using a property node.
I haven't been able to find another way to programatically update my control default values.
01-17-2015 02:31 PM
Fbaird,
There should be a method to make current values default.
http://zone.ni.com/reference/en-XX/help/371361L-01/lvprop/vi_make_current_vlus_dflt/
It is a little tricky to use but I think this example might make it a bit more clear.
http://www.ni.com/example/26173/en/
01-17-2015 02:36 PM
Please correct me if I am wrong but that won't for the program while it is running. It only works when the program is in edit mode and does not work on the run-time engine so not applicable if you want it to work in an exe. For me that is where I need it.
Might be what the OP is looking for though.
01-17-2015 03:38 PM
Correct, I would use a config file for an executable. I thought you were speaking more generally.