LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

VI to make current values default

Hi, I've used this website: http://www.originalcode.com/SavDef.htm  to create a method that will call the "Make current values default" at the end of my program.
Here are my Save defaults.vi and Save defaults core.vi
The latter works but the former gives me a bad input error... I admit I am not advanced enough in Labview to fully understand these two programs so I just built them both visually from the website, as I need my larger program to save the current defaults when it's done running.

Thanks for any help!

Download All
0 Kudos
Message 1 of 4
(2,533 Views)
It's difficult to explain (and unfortunately I don't have much time)..  but the 'Set Control Value' methods in the Save Defaults.VI  are actually setting the values for the controls in the Save Defaults Core VI.  You instead had constants.  I changed these to Controls and named them accordingly (i.e., "occurrence" and "VI to save").  See attachments.
 
I am guessing "Relative position.vi" is your VI where you wants the defaults to be saved.  So, you will add the Save Defaults VI as a sub VI in this VI.  You do not have to explicitly give its path anywhere as that is obtained from the call chain. 
 
I have not tested this.. but it should work now.  You will have to rename these to the original names, including spaces, etc.  (or change the names on the diagrams).
 
Hope this helps.
 
-Khalid

Message Edited by Khalid on 11-15-2005 01:51 AM

Download All
0 Kudos
Message 2 of 4
(2,506 Views)

Why i cant find the files ?

I need it !

0 Kudos
Message 3 of 4
(2,120 Views)

http://forums.ni.com/t5/Feedback-on-NI-Discussion-Forums/Problem-with-attachments/td-p/1915999

 

If you're looking to use this to save the values in a built application, don't bother. It won't work. In order to do this for a built application you have to save the values to disk, and then read the values from disk when the application next starts. See https://decibel.ni.com/content/docs/DOC-15349

0 Kudos
Message 4 of 4
(2,102 Views)