ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

menu selection didnt respond

Solved!
Go to solution

Hello all..

 

I got a problems when i select the menu (acquire data), the program like being stuck.  What my mistake? Can anyone help me?

 

thanz all

0 Kudos
Message 1 of 10
(3,786 Views)

It's not a menu, it's abutton and you did not attach the subVI. You don't happen to have a while loop in the subVI, do you?

0 Kudos
Message 2 of 10
(3,784 Views)

Your subVI 'Copy of Test' was not included with your vi. So I replaced it with a random number generator and added an indicator. See the attached VI.

 

Now once you presse the Acquire' button, you can see that the data is displayed and the button is working.

 

If your vi is getting stuck on execution, there is some problem with your subVI, probably a 'while loop' in it where the program gets stuck.

 

Hope this helps

 

Cheers!!!

Mani's World

Message 3 of 10
(3,776 Views)

thanx for  the comment..

 

as u all can c.. i already attach the wire from the subVI to shift register.. y the sub vi cant be read? i dont understand 

0 Kudos
Message 4 of 10
(3,771 Views)

Clicking on 'Kudos' is the best way for saying thanks!!!

 

Wiring the sub VI doesn't mean that the value will be available at the output. If you wired the output/indicator outside a while loop, then that value will not be available till the time the while loop is running.

 

It would be best if you post the subvi' Copy of test' here.

 

Cheers!!!

0 Kudos
Message 5 of 10
(3,767 Views)

here the sub vi (copy of test)

 

thank you bro

0 Kudos
Message 6 of 10
(3,765 Views)
Solution
Accepted by topic author ikha

Now that you've posted your subVI, go back and reread Dennis's message #2 and the third line of Mani's message #3.

 

If you want this subVI to behave like a dialog box, you are going to need to go to the VI properties Window Appearance of the subVI and set it to show front panel when called.

Also, put a wait statement in that while loop so it doesn't run at the full speed of the CPU waiting for you to enter data.

And in the event case of the Main VI, you will probably want to uncheck the box that says lock front panel until event case completes.

Message 7 of 10
(3,758 Views)

I removed the while loop from the subvi and now you'll see that the acquire button gets the value from the sub VI.

 

On another note, all your controls 'No of TU' etc are in the sub VI. How do you intend to change/input values in them?

 

Can you click on the 'Kudos' button beside a reply if you want to say thanks.

 

Cheers

 

 

Download All
Message 8 of 10
(3,757 Views)

yes,i intend to change the value.. thanx for all.. already click 🙂

0 Kudos
Message 9 of 10
(3,751 Views)

Thanks. and which ever reply gives you the solution to your problem, can you mark it as the 'accepted solution' as well.

 

Cheers!

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