LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Values in Controls and Indicators

Solved!
Go to solution
I am entering a value in a string control as 1. As per our requirement, this value is fixed. I have entered the value and I have closed the application and I have opened the same application, the next day. But there is no value which I have entered in the string control. The value should be seen by the user. How can i do this in LabView? Thanks in Advance Regards Malleswari
0 Kudos
Message 1 of 15
(3,495 Views)
Solution
Accepted by malli
After entering the desired value, right-click the control and select "data operation...make current value default". Save the VI.
Message 2 of 15
(3,493 Views)

Simple Solution - Altenbach's.

 

Complex Solution - Write the User Entry to a text file before closing the VI. Read & put it back inthe required field once opened & run next time.

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 3 of 15
(3,488 Views)

I know this is wacky but I cannot get the default value to "stick".

I make sure the program is stopped.

I click on the field in the front panel.

I type in the desired default value.

I right-click on Data Operations - Make Current Value Default.

I save the file.

 

 

I soon as I run it, the value defaults back to zero.

I have checked that there are no local variables or other program elements that might change this value.  "Find" finds only the terminal where the value is read into the program.

 

This is a simple numeric control.

I have set the defaults for several other fields in the same program.  The control is on a Tab Page but so were the others that worked.

 

Could someone suggest why this might be happening and what I can do it about it?  

0 Kudos
Message 4 of 15
(3,344 Views)

Post your code so we can look at it.

- tbob

Inventor of the WORM Global
0 Kudos
Message 5 of 15
(3,332 Views)

I am not at liberty to post my employer's proprietary code.

I did try rebooting the system.

The new default values appear in the fields...right up to the point where I run the program.

 

If you have not experienced or solved this problem, I don't think you are going to be able to help me.

0 Kudos
Message 6 of 15
(3,326 Views)

Some part of your code must be writing to the controls/indicators to cause the values to change.  They just don't change on their own.

Do you have a Reinit to Default method at the start of your code?

- tbob

Inventor of the WORM Global
0 Kudos
Message 7 of 15
(3,322 Views)

I do not have a Reinit to default values in my code.  (Never heard of it before.)  Isn't it supposed to initialize them automatically?  Isn't that the point?

As I mentioned, I did a "Find" command and the ONLY result is the terminal on the Block Diagram where the value is read into the program.

 

0 Kudos
Message 8 of 15
(3,318 Views)

Sorry, I posted my question mistercat (someone else's account used for other purposes) and was replying as wildcatherder. I think I'm going to have to file a request with tech support on this one.

 

0 Kudos
Message 9 of 15
(3,313 Views)

Hi Tbob, would you be willing to help me out with a few ideas of how to go about creating event structures for my program? I have a sweep frequency generator which I have been trying to make a frequency counter for to show the frequencies elapsing as the sweep signal progresses i.e like a stop watch. I want to be able to create a user interface where each time a button is pressed, the freqeuncy at that point along the sweep is saved. I have been having alot of trouble figuring out how to do this as I have not found any examples for my particular program.

Cheers
Anthony

0 Kudos
Message 10 of 15
(3,309 Views)