LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting default values from a configuration file...how_to

Hi,

When we place controls in the front panel VI, there are default values
that we can set during design time. Is it possible to load up a VI and
read those default values from a file? I guess the point is that I want
to be able to store different control settings for different users with
one VI. Maybe possibly use the File I/O VI's to load up default control
values that way. Is it possible?

Thanks,
Steven
0 Kudos
Message 1 of 5
(3,515 Views)
This only a little hint

1)In "File I/O" use "configuration files vis" to produce a main file that
contains setting for all your user. You can store different user on different
keys name in the configuration file.
2)Bundle all your control on your front panel and use "flatten to string"
in advance, data manipulation and pass this string to your configuration
file. To read the setting use "unflatten from string".

If you have problem to understand this contact me directly and I will send
you a example
0 Kudos
Message 2 of 5
(3,515 Views)
_Steven Chang wrote:
>Hi,>>When we place controls in the front panel VI, there are default values>that
we can set during design time. Is it possible to load up a VI and>read those
default values from a file? I guess the point is that I want>to be able
to store different control settings for different users with>one VI. Maybe
possibly use the File I/O VI's to load up default control>values that way.
Is it possible?>>Thanks,>Steven>

After trying many various ways of storing configuration data, the way I use
the most is to set up a "configuration global", a global that consists of
basically a single cluster into which I place anything about the application
that I want to configure and store. I usually include the application's path,
DASQ settings, a
nd user preferences. You can then read/write this cluster
anytime during your test session. You can provide user access to specific
portions of the global through a tabbed dialog box and allow multiple records
in your config file which can be accessed at any time.
0 Kudos
Message 3 of 5
(3,515 Views)
HI Martin!

I'm lookin for a example file which is doing exactly what you are talking about! Maybe can you provide me with an example file? Are the configuration settings changeable and readable at runtime?
0 Kudos
Message 4 of 5
(3,515 Views)
HI!

Can you provide an example of how this would look like in an easy VI?
Thanks
ANDY
0 Kudos
Message 5 of 5
(3,515 Views)