キャンセル
次の結果を表示 
次の代わりに検索 
もしかして: 

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 件の賞賛
メッセージ1/6
3,751件の閲覧回数

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 件の賞賛
メッセージ2/6
3,742件の閲覧回数

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
メッセージ3/6
3,741件の閲覧回数
0 件の賞賛
メッセージ4/6
3,727件の閲覧回数

@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 件の賞賛
メッセージ5/6
3,704件の閲覧回数

@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
メッセージ6/6
3,693件の閲覧回数