02-11-2011 06:21 PM
It seems to be looking for a global variable, and is password protected.
02-11-2011 08:43 PM
Remove the password protection from the VI and see if it works for you then. If you insist on a password, add a control to the Get/Set VIs to pass the password to the Open VI Reference function in order for it to work.
02-13-2011 11:39 AM
By using this INI file, I need to write every value by using Write Key.Vi and read every value by using Read Key.Vi. Is that right? Like write and read one by one?
Yes your understanding is correct.
So as you have a lot of controls/indicators (as guruthilak suggests) use the FP method to access the labels and then write to the file. Similarly read the file when launching the VI and that will set the FP control/indicators with required value.
03-06-2013 08:20 AM
03-06-2013 09:19 AM - edited 03-06-2013 09:21 AM
I assume you mean the tag methods. These methods are scripting methods, so you need to enable scripting in the LV options dialog to see them (I think it's in the VI server page). There are also VIs in vi.lib which allow access to these and protect you from some issues, such as namespacing. I believe they're in vi.lib\utility\UserTags.
Personally, I'm not a fan of this method, mainly because it saves the values in the VI and you can't do that in an EXE. You could do something like this instead - https://decibel.ni.com/content/docs/DOC-15349