From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From 11:00 PM CDT Friday, Nov 8 - 2:30 PM CDT Saturday, Nov 9, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
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.
01-17-2015 08:38 PM
@Fbaird wrote:
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.
Be careful with your wording. A VI is a program. "Edit mode" should probably have a better name. You won't be editing your VI when the invoke node does its magic. You'll be at runtime. You just can't use this in a runtime engine as it would require modifying the exe. You can't use it while the executable is running. You can certainly use it when a program is running, given the correct environment.
If you're looking to modify those values in an executable, there are plenty of examples to help create either a basic ini file or a simple csv that will allow you to read in whatever data you'd please and fill the values. You can easily save data between different runs of the executable this way as others have mentioned.
01-18-2015 09:38 AM
Thanks for making me realize I am human........
01-18-2015 10:58 AM
Gerd answered the original question exactly and right away, so I am not sure about the purpose of the subsequent circuituous side discussion that only seems to confuse the original issue. 😄
01-18-2015 03:46 PM