06-30-2011 06:18 AM
Hi
I am trying to develop a VI that contains many inputs and it could be quite time consuming for the user to input all the data every time he runs the program . is it possible for the user to save the inputs he makes on the front panel to a file such that he can easily load the same file every time he opens the vi .. and also allow for new users to create their own personal input files such that every time he\she runs the program he can save the file to a particular location ..
thanks in advance
Avinash
NIT
Mechanical Engg.
( i have uploaded a sample prog. that contains only 4 inputs. it would be highly appreciated if u could show me how to implement ur ideas based on this sample vi )
06-30-2011 06:45 AM
Hi,
One solution can be setting your inputs values as default values ("edit"--> "make current value default") in this way, when you close your application, the front panel values will be saved for the next session.
another way is to write your inputs values in a .ini file.
see: http://forums.ni.com/t5/LabVIEW/Labview-configuration-file/td-p/1615540
06-30-2011 06:45 AM
Are you familiar with OpenG?
There are two very nice functions Read Panel from INI and Write Panel to INI that do exactly what you are looking for.
All the parameters that are entered into the front panel controls will be saved to an .ini file that can be loaded the next time the file is opened.
06-30-2011 07:39 AM
You could use Front Panel Data Logging.
http://zone.ni.com/reference/en-XX/help/371361G-01/lvconcepts/logging_front_panel_data/
06-30-2011 10:38 PM
@cory k - i am not quite familiar with open g what what exactly is that ? and how do i access those vi's can u explain ?
07-01-2011 06:50 AM
@avinash123 wrote:
@cory k - i am not quite familiar with open g what what exactly is that ? and how do i access those vi's can u explain ?
OpenG is a source code sharing community.
There is a great utility called VIPM (VI Package Manager) that you can use to browse and install OpenG VI's.
This utility will download and install the VI's straight to your palette.
Once it installs, the GUI is very intuitive, just look for the oglib_variantconfig (OpenG Variant Configuration File VI's) package for the above mentioned two VI's.
Give it a shot and feel free to ask questions along the way.