LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event structure inside event structure?

Hello
 
I have buid the program using the event structure, inside the event structure there are so many case structures and in one of the case structure i have a subvi which is also build using the event structure(to this subvi i passed the file path and control value in the main vi).
 
When i execute the program i can see the control is passing the value to subvi, but that subvi is not opening.Pls give me suggestions
 
Thanks
0 Kudos
Message 1 of 10
(3,843 Views)
 
Typically, a subVI does NOT open it's front panel when called. You need to configure this. Did you?
 
 
Message 2 of 10
(3,837 Views)

Thanks altenbach

No i didnt,i dont know how to do.Pls give me ideas

Thanks

Message 3 of 10
(3,835 Views)
You can do that in at least two places:
 
If the VI should always show its front panel (e.g. a dialog window), you can configure this in the "VI properties...Window appearance...customize".
 
Select "open when called" and "close afterwards".
 
 
If you only want to show the FP in some instances, right-click on the desired instance of the subVI icon on the main diagram and select "subVI node setup". Pick the same options as above.
 
See if this works for you. 🙂
Message 4 of 10
(3,830 Views)

Thanks altenbach.

Its working, but in my subvi i got some control buttons,at the moment these buttons are opening in the new front panel(FP of subvi),but i want these control buttons in the main Vi FP.

Another question pls, for all my control buttons i am using the OK button and assining to latch when pressed.These  buttons, for sometime its works as per i assigned and some times it doesnt.

Thanks

0 Kudos
Message 5 of 10
(3,825 Views)
Can you post your latest code?
0 Kudos
Message 6 of 10
(3,807 Views)


Veeru wrote:

Another question pls, for all my control buttons i am using the OK button and assining to latch when pressed.These  buttons, for sometime its works as per i assigned and some times it doesnt.


Hi Veeru,
 
I think you have not placed the respective OK buttons in their respective ES, thats why they are a bit problematic. Because, latching action of the boolean will be valid only till the point of time the code reads the boolean.
 
Moreover, it is better to use the Latch when released (default) action for the boolean.
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 7 of 10
(3,796 Views)
I too have similar question.
I am using event structure in main vi. for one of the event i am opening new vi which again handles events. New vi is from template(Top level aplication using events).
Here i have a problem. After opening new window, i am not able to handle events on parent window. but i am able to perform non event based actions. Any help would be great!!..
Ranjith
0 Kudos
Message 8 of 10
(3,787 Views)

Hi Ranjith,

if you call a subvi in your main vi inside the event structure, this event is first execute completly if your subvi call is ready. If you show the front panel of the subvi, the event in the main vi is not finished and that´s the reason why you can´t execute another event. To solve this you can uncheck the "lock FP ..." in the specified event or you call your vi dynamically and set the function "wait til ready" to false.

Hope it helps.
Mike



Message Edited by MikeS81 on 07-08-2008 08:18 AM
0 Kudos
Message 9 of 10
(3,770 Views)

Thanks Everyone,

Joe i will post the code

0 Kudos
Message 10 of 10
(3,759 Views)