LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Exit from the application using event structures

Solved!
Go to solution

Hi

 

In my project i used event structure it working fine.

Now i want to exit(close) the application when i press EXIT button on the front panel.

 

Here i attached my project give an idea.

 

Regards

hari

0 Kudos
Message 1 of 11
(3,636 Views)

you can use the Exit or Stop functions available in the application palette... Exit will close the LabVEIW window and Stop will stop you code.. Create an event and place the function inside that...

 

24358i841BFF08690AB10D

-----

The best solution is the one you find it by yourself
Message 2 of 11
(3,621 Views)

Hi,

I have seen your code. It's Ok

You can stop the program in the same manner...

But if you want to completly close Labview, you can use.

Application Control --> quit Labview.

but it is not recommended. Otherwise you can use stop in the same menu...(to stop the VI).

 

0 Kudos
Message 3 of 11
(3,615 Views)

Hi SAM

 

U saw my ok.i have one more problem when i run the program(main vi) all the remain sub vi's also opened.

i want open sub vi when i press a button on front panel.

 

i have made small changes to it.

 

Regards

hari 

 

0 Kudos
Message 4 of 11
(3,605 Views)
Solution
Accepted by topic author thinnker

Hi thinnker,

 

    You have to change the Sub VI node setup to do that... Do that then it will open whenever you call it..

 

24368iEF81720536A2430F

Smiley Wink

-----

The best solution is the one you find it by yourself
Message 5 of 11
(3,584 Views)

Br.anand has the right idea. The same effect can be achieved by using the VI Properties dialog and setting the Window Appearance settings. Br.anand shows how to change the window behavior for one call to your subVI. Use the VI Properties to set the behavior for all calls to that subVI.

0 Kudos
Message 6 of 11
(3,558 Views)

Also review this nugget by Darren

 

Felix

0 Kudos
Message 7 of 11
(3,505 Views)

Hi

 

I want to assign a character(key board keys) to buttons in an event structure.

I don't want mouse for the participation u tell me an idea.

 

 

 

Regards

hari

 

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

Select the control which you want to control by using keyboard. right click >> properties>>Key navigation then assign the key you want ot use.

 

Smiley Wink

-----

The best solution is the one you find it by yourself
0 Kudos
Message 9 of 11
(3,441 Views)

hi anand

 

it working with special function keys.

i want it alphabets,is it possiable.

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