03-07-2023 10:31 AM
I have on the front panel this below
If I change it to C1 as shown below, save it. Then when I reopen it, It still shows Label. What is going on? (See attached VI)
Solved! Go to Solution.
03-07-2023 10:43 AM
Are you sure you're not updating the text? Your label isn't visible.
03-07-2023 10:48 AM
Hi grck,
@GRCK5000 wrote:
I have on the front panel this below
If I change it to C1 as shown below, save it. Then when I reopen it, It still shows Label. What is going on? (See attached VI)
Why do you expect LabVIEW to save the actual value of a control within the VI without explicitly setting that value as default???
03-07-2023 10:51 AM - edited 03-07-2023 10:54 AM
looks like a string control with different values. The control label is not shown.
If you change the value and want it to be the new default, you need to set it as default before saving
Select control...menu...edit...make selected value default
or
right-click...data operations...make current value default
It would be really, really bad if Vis would save all current control and indicator data.
03-07-2023 11:13 AM - edited 03-07-2023 11:14 AM
Thank you, Mr. Altenbach! My problem is solved. I just did what you showed on the picture. Also, thanks to everyone.
03-07-2023 11:19 AM - edited 03-07-2023 11:27 AM
If you think about it, it would be really bad if every time you save a VI it would save with all the data in all controls and indicators. That could amount to gigabytes of data, making the VI potentially gigantic. It might even contain proprietary data that the next user is not supposed to see.
Typically, controls (not indicators!) of most subVIs should have defined controls values (typical values, sentinel values to detect if terminal is connected, etc.), so please vote for this idea. Except for very rare cases, indicators should not have defined default values.
03-07-2023 11:51 AM
So you problem was you were trying to update a label but were actually updating the text and somehow saving the text as a default value was the solution?
03-07-2023 12:14 PM
I completely agree. This is an idea that NI should definitely take into consideration.
03-07-2023 12:17 PM
I was trying to update the text. So I was failing to make my update (text) as default value.
03-07-2023 01:11 PM
@GRCK5000 wrote:
I completely agree. This is an idea that NI should definitely take into consideration.
Sorry, I am lost, what was the idea again?
Because, you have been able to edit Label for as long as I can remember.