LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Store User Input Data

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 )

0 Kudos
Message 1 of 6
(3,316 Views)

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

0 Kudos
Message 2 of 6
(3,307 Views)

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.

Cory K
Message 3 of 6
(3,306 Views)

You could use Front Panel Data Logging.

 

http://zone.ni.com/reference/en-XX/help/371361G-01/lvconcepts/logging_front_panel_data/


Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
If you don't hate time zones, you're not a real programmer.

"You are what you don't automate"
Inplaceness is synonymous with insidiousness

0 Kudos
Message 4 of 6
(3,292 Views)

@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 ?

0 Kudos
Message 5 of 6
(3,269 Views)

@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.

Cory K
Message 6 of 6
(3,258 Views)