LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Message resets after closing labview

Dear Sir

 

In the attached subvi, I wrote a message for the user but I found that the string I wrote resets after closing the labview. How Can I let the string not changed after closing the labview?

0 Kudos
Message 1 of 3
(2,474 Views)

If you want to save the value in your string control, right click on it and select Data Operations>Make Current Value default. You have the option to make all or selected values default from the Edit menu. Save the VI.

 

Also, don't ever create a while without a Wait (msec) inside. Yours just spins much too fast and starves the cpu. The invert function between the stop and while loop's conditional terminal is just silly. Set the loop to Stop if True.

 

This is basic.  You might want to avail youself of some of the LabVIEW tutorials.

 

p.s. You might also want to make your requests for help less gender specific.Smiley Wink

Message Edited by Dennis Knutson on 06-20-2009 05:40 PM
0 Kudos
Message 2 of 3
(2,468 Views)

Even easier, just right-click the string control terminal and select "change to constant". Now you have a diagram constant which will not lose it's value when saving the VI.

 

Using a hidden control to hold a string constant seem silly. 😉

0 Kudos
Message 3 of 3
(2,458 Views)