LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Create an "apply-button" / stand-alone-application?

Hi!
I have two problems. The first one is the following:
I would like to put an "apply-button" (like Windows has it) on the front
panel. If I press it, it should run a sub-vi to update some values. Is there
a possible solution for it? Or is there any other way, perhaps a loop or
something like that?
And the second one:
If I build a stand-alone-application (*.exe-file), will it run the vi once
or continuously? Or can I specify this when building the *.exe-file?
Thanx a lot,
Oliver.
0 Kudos
Message 1 of 4
(2,753 Views)
1) Easy. Wire the button to a case statement. Put the subVI inside the true case. Go through the example programs. You also need to understand the mechanical actions of Boolean controls. A basic LabVIEW class will also teach you the fundamentals.

2) An executable will run the same way as the development mode. If your VI runs and then stops after the Run arrow is pressed, that's the way the exectuable will be. The only difference is that by default, the executable will run automatically when opened. You can get the same effect of an executable by setting VI Properties>Execution>Run When Opened. You program the VI itself for continous running and it is not something specified in building the application.
0 Kudos
Message 2 of 4
(2,753 Views)
Oliver Meike wrote:
> Hi!
> I have two problems. The first one is the following:
> I would like to put an "apply-button" (like Windows has it) on the front
> panel. If I press it, it should run a sub-vi to update some values. Is there
> a possible solution for it? Or is there any other way, perhaps a loop or
> something like that?


Hm... this should be possible by just Addying a while-loop with the
"Button" in it. The items in the while-loop should only be processed, if
the argument is "true".

I hope i could help a little bit

bye

Marco Tedaldi
0 Kudos
Message 3 of 4
(2,753 Views)
The best way I've seen is to do a cancel/apply box is with Labview 6.1's
event structure.

Unlike a queued-statemachine (well documented at ni.com) I use a simpler
approach for dialog boxes. Generally I'm dealing with GOOP objects, but for
matters of discussion let's assume we have a simple cluster involved.

I attached a zipfile as an example, realizing this is kind of complicated to
explain. I created a while-loop with an event-structure inside. Every
control updates the cluster, and the two buttons (ok, cancel) are flow
control for the cluster. OK outputs the modified cluster, and cancel outputs
the original unchanged cluster.

If this isn't quite what you were desribing, post to the group again and
I'll try to help.

-joey

"Oliver Meike" post.rwth-aachen.de> wrote in message
news:b0p0ia$4si$1@nets3.rz.RWTH-Aachen.DE...
> Hi!
> I have two problems. The first one is the following:
> I would like to put an "apply-button" (like Windows has it) on the front
> panel. If I press it, it should run a sub-vi to update some values. Is
there
> a possible solution for it? Or is there any other way, perhaps a loop or
> something like that?
> And the second one:
> If I build a stand-alone-application (*.exe-file), will it run the vi once
> or continuously? Or can I specify this when building the *.exe-file?
> Thanx a lot,
> Oliver.
>
>



[Attachment apply.zip, see below]
0 Kudos
Message 4 of 4
(2,753 Views)