02-07-2006 06:24 AM
02-07-2006 07:02 AM
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
02-07-2006 09:00 AM
02-07-2006 10:46 AM
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