10-24-2010 03:22 AM
I'm getting started in learning LABVIEW . I come across a problem recently and can not resolve it.I put en event structure in a while loop ,but I don't know how to connect them.I found that there is an output point on the border of event structure .I tried to resolve it but failed.Could you help tell me how to creat an output for event structure?Thanks so much.
10-24-2010 05:01 AM
Hello,
it may help if you post your code
what do you call output ? the terminal condition ?
if that you have to create a quit button, create a event on this button that branch a true boolean from
inside this case to terminal condition , for other cases branch a false
Regards
tinnitus
10-24-2010 03:11 PM
A small step-by-step guide. I suppose you just want a simple event structure that stops when you press a button.
So you already have the event structure inside the while loop.
Create a button on the front panel. Place the terminal of the button inside the event structure.
Change the Event to the 'Value Change' Event for the button.
Wire the terminal to the stop condition of the while loop.
As an altrnative to the button/terminal, you can also use a boolean constant (T). This is usefull for other events such as Panel Close.
Felix
10-25-2010 12:58 AM
I still don't know how to do it.
10-25-2010 02:59 AM
Hi Cherry,
Here is a simple example on how to use the Event structure.
10-25-2010 03:01 AM
hello,
see in attachement a way to
Regards
Tinnitus
10-25-2010 03:55 AM
hi tinitus,
Thanks.This vi can run properly now.But there are still some issues needing your help.
I am a beginner in learning LAbVIEW. So I learned by imitating the examples from a book,including this vi.In my book,the example showed that the event structure connect with the red stop botton directly,no "true constant".Could you help tell me how to make it?
Besides ,how to creat the "enter "botton,I can not find it.Thanks.
Regards,
Cherry
10-25-2010 04:01 AM
hello,
there was no interest connecting directly regarding different mode of button action
with this way you now exactly what it does for this event
to create a button
1) right click on the terminal button then create command
or
2) go to front panel right click go to button palette then choose wich you want
regards
Tinnitus