LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Making current value as default and saving..

Hi all,
I am using LabVIEW 8.0.
I have an application where it is required to make the current values in controls as default and save the same while running(from program) .
So next time the programs runs, it will display the previous run time values as default.
Is there any built in feature available in labview for this?
All suggestions highly appreciated.
SajK
0 Kudos
Message 1 of 4
(3,325 Views)
Hello,

There is no built in function to porgramatically perform a "make current value default" on a control in LabVIEW 7.1.
I don't know/think it has been added in LabVIEW 8.

But I'm pretty sure there is a trick, I saw a few threads about the same subject a couple of week ago...

Check these threads :

http://forums.ni.com/ni/board/message?board.id=170&message.id=34262&view=by_threading&page=1

http://forums.ni.com/ni/board/message?board.id=170&message.id=147467&requireLogin=False



We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

Message 2 of 4
(3,316 Views)
There is Default Values:Make Current Default Method available in LV8, but it only works in Edit mode. You cannot use it in Run mode.
0 Kudos
Message 3 of 4
(3,308 Views)

Hi Saj,

Since you can't run the "Make Current Values Default" method while the VI is running, I've done the following trick before.  At the end of my main VI, I have a subVI that dynamically calls another VI with the Run VI method (with "Wait Until Done" set to False).  This other VI gets a path to my main VI and opens a reference to it.  I poll the state of the main VI in a loop and wait until it is idle.  Then I run "Make Current Values Default" on it, and save it.

Hope this helps...check out the LabVIEW Help for the Run VI and Make Current Values Default methods if you need more guidance.

Good luck,

-D

0 Kudos
Message 4 of 4
(3,290 Views)