LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

In the NI Library VI: Extract Numbers, the string control is automatically loaded each time the VI is opened with "Counting to five: one 2 three 4.0 five. Where is this string data coming from?

Solved!
Go to solution

Even after deleting the string "Counting to five: one 2 three 4. five." from the string control and replacing it with another string the original string returns after the VI is saved then reopened. Where is this string data coming from? I've attached a copy of the library function. I've been able in my application to get around the problem by replacing the string control with a string constant. But I'm still curious as to what's going on.

 

Thanks,
Chuck

 

 

0 Kudos
Message 1 of 5
(2,911 Views)
Solution
Accepted by topic author chuck72352

Chuck,

 

String control has been set to default with the string you are seeing.  To change this, enter the new string, right click the control and select

 

Data Operations>>Make Current Value Default

 

Now save your vi.

Message 2 of 5
(2,900 Views)
Thanks, your suggestion works great. Just curious though, where is the default data stored when the VI is closed?
0 Kudos
Message 3 of 5
(2,887 Views)
Pretty sure it is stored in the vi as part of the string control.  You could also use an .INI file to store defaults and then init your front panel controls on startup.
0 Kudos
Message 4 of 5
(2,883 Views)

Thanks, yes my plan is to use an .ini file for the final version of the software.

0 Kudos
Message 5 of 5
(2,879 Views)