LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW won't let me update name (label).

Solved!
Go to solution

I have on the front panel this below

GRCK5000_0-1678206304965.png

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)

GRCK5000_1-1678206364219.png

 

 

 

0 Kudos
Message 1 of 12
(1,273 Views)

Are you sure you're not updating the text?  Your label isn't visible.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 12
(1,266 Views)

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???

 

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 12
(1,257 Views)
Solution
Accepted by topic author GRCK5000

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

 

altenbach_0-1678208003100.png

 

It would be really, really bad if Vis would save all current control and indicator data.

Message 4 of 12
(1,255 Views)

Thank you, Mr. Altenbach! My problem is solved. I just did what you showed on the picture.  Also, thanks to everyone. 

0 Kudos
Message 5 of 12
(1,244 Views)

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.

0 Kudos
Message 6 of 12
(1,239 Views)

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?

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
Message 7 of 12
(1,225 Views)

I completely agree. This is an idea that NI should definitely take into consideration. 

0 Kudos
Message 8 of 12
(1,218 Views)

I was trying to update the text. So I was failing to make my update (text) as default value. 

0 Kudos
Message 9 of 12
(1,216 Views)

@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.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 10 of 12
(1,195 Views)