ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
03-08-2011 09:11 PM
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
Solved! Go to Solution.
03-08-2011 09:20 PM
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?
03-08-2011 09:35 PM - edited 03-08-2011 09:36 PM
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
03-08-2011 10:16 PM
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
03-08-2011 10:29 PM
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!!!
03-08-2011 10:33 PM
here the sub vi (copy of test)
thank you bro
03-08-2011 10:48 PM - edited 03-08-2011 10:54 PM
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.
03-08-2011 10:49 PM
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
03-08-2011 10:53 PM
yes,i intend to change the value.. thanx for all.. already click 🙂
03-08-2011 10:56 PM
Thanks. and which ever reply gives you the solution to your problem, can you mark it as the 'accepted solution' as well.
Cheers!