LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

modal dialog problem

I have a.vi(logo dialog should be disappeared after 3 sec) and b.vi(main program).
In this case where should I insert a.vi or how to settting up?
 
0 Kudos
Message 1 of 11
(3,740 Views)
The main body should be appeared after disappearing logo dialog.
0 Kudos
Message 2 of 11
(3,738 Views)
set b.vi as a subvi of a.vi
set properties of b.vi as
- "open front panel when called"
- "do not wait until finished"
- stop a.vi
 
 
 
-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
0 Kudos
Message 3 of 11
(3,727 Views)
Gabi1,

do you not mean:

set b.vi as a subvi of a.vi
set properties of a.vi as
- "open front panel when called"
- "do not wait until finished"
- stop a.vi

?

0 Kudos
Message 4 of 11
(3,712 Views)
no i did ment to set the properties of b inside of a:
a.vi will be a small dialog like FP, which will stay on for few seconds and will open the main application b.vi, while terminating
 

 
-----------------------------------------------------------------------------------------------------
... And here's where I keep assorted lengths of wires...
0 Kudos
Message 5 of 11
(3,707 Views)
Thanks all.
 
I will try.
0 Kudos
Message 6 of 11
(3,704 Views)
Actually, although I studied, I am a beginner in using some advanced option for SubVI or in LV.
 
What do you mean "b.vi as a subvi of a.vi"?
Just placing b.vi to a.vi?
 
>set properties of b.vi as
>- "open front panel when called"
>- "do not wait until finished"
How to realize this in LV code?
You mean invoke node? (or see my attachment)
Please give me some best example for what you intended.
 
In my attachment, however, how to close a.vi after loading b.vi?
 

메시지가 10-14-2007 06:25 PM에 labmaster에 의해 편집되었음

Download All
0 Kudos
Message 7 of 11
(3,693 Views)

Here's one possibility.

If you know the loop time and the desired time target, it does not make sense to constantly check the timer in a while loop. You can use a FOR loop and just count iterations.

(Notes: NI recommends the FP: Open method instead of the property with the same name. Also setting the tranparency only works if the panel is set to run transparently so set this via option or property node. Check the online help!)

Message Edited by altenbach on 10-14-2007 06:28 PM

0 Kudos
Message 8 of 11
(3,685 Views)

Dear altenbach,

Excellent answer~!.

I have an one more curious question in using VI server in the diagram.

How do I transfer a variable from a.vi (logo dialog) to b.vi (main program), which could be realized by connector pane?

0 Kudos
Message 9 of 11
(3,671 Views)


@labmaster wrote:
How do I transfer a variable from a.vi (logo dialog) to b.vi (main program), which could be realized by connector pane?

Just create another invoke node and select method "Control Value: set (variant)" for example.

For example if your b.vi had a DBL control labeled zzz, you could set its value to 1234 using the following code:


 

Message Edited by altenbach on 10-14-2007 09:58 PM

0 Kudos
Message 10 of 11
(3,667 Views)