LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how set currently values to default for the next start?

Hello!

Can anybody help me?
I use LapView 6i. and my proplem is:
I´ve an VI, and there I´ve set some values.
And the next time, when I start the VI, these values
should be automaticly set to default values?
How must I do it?

Thanks
Jürgen
0 Kudos
Message 1 of 5
(2,768 Views)
Not a problem Jürgen,
you have two ways.
The first way is:
1 select your control element
2 click on Operate item in the menu
3 choose " Make Current values Default "
The second way programmatically
1 right click on the control element at the diagram
2 choose "create" and then "property node"
3 right click on node and choose "properties"
4 select item "value"
now you can write to this item your default value or
any value after you program will finished..

Cheers
Mike Manzheliy




"J. Hackmann" wrote:

> Hello!
>
> Can anybody help me?
> I use LapView 6i. and my proplem is:
> I´ve an VI, and there I´ve set some values.
> And the next time, when I start the VI, these values
> should be automaticly set to default values?
> How must I do it?
>
> Thanks
> Jürgen
0 Kudos
Message 2 of 5
(2,768 Views)
Hi Jurgen,
excuse me I forgot about newest metod,
right click on a control element in the diagram
1 choose "Create" and then "Reference"
2 right click on the control element again
and choose "Create" then "Invoke Node"
3 right click on Invoke and choose method "Reinit to dif"
4 connect created reference to Invoke
Mike

"J. Hackmann" wrote:

> Hello!
>
> Can anybody help me?
> I use LapView 6i. and my proplem is:
> I´ve an VI, and there I´ve set some values.
> And the next time, when I start the VI, these values
> should be automaticly set to default values?
> How must I do it?
>
> Thanks
> Jürgen
0 Kudos
Message 3 of 5
(2,768 Views)
I think what you are trying to do is set default values in controls during
the app design stage. That is what these instructions are for.

Enter the default value you want in the control. Right click the control,
select Data Operations>>Make current value default. Remember to save the
vi. Next time you open that VI, the controls will reflect your default values.

If you want to save values the user enters at time of program close, this
is another subject entirely.

Jared

"J. Hackmann" wrote:
>Hello!>>Can anybody help me?>I use LapView 6i. and my proplem is:>I´ve an
VI, and there I´ve set some values.>And the next time, when I start the VI,
these values>should be automaticly set to default values?>How must I do it?>>Thanks>Jürge
n>>
0 Kudos
Message 4 of 5
(2,768 Views)
You can use a configuration file, which is handy, and that's what I'm
using for my application. There are some other ways to do it, but
you'll want to check on the NI developer zone (zone.ni.com), or find
copies of Labview Technical Resource.


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 5 of 5
(2,767 Views)