06-11-2009 11:54 PM
Solved! Go to Solution.
06-11-2009 11:57 PM
06-12-2009 12:09 AM
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.
09-15-2010 06:40 PM
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?
09-15-2010 06:50 PM
Post your code so we can look at it.
09-15-2010 06:57 PM
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.
09-15-2010 07:08 PM
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?
09-15-2010 07:18 PM
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.
09-15-2010 07:29 PM
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.
09-15-2010 07:42 PM
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