10-24-2008 11:00 AM
Hello, I am fairly new to LabView. For the VI I am writing, I would like it to pause at a certain point, wait for the user to click a button (which is wired to a case structure), and then continue execution based on the case that was selected. I'm not sure how to do this. Does anyone have any advice?
Thanks!
Solved! Go to Solution.
10-24-2008 11:51 AM
You could use an Event Structure to implement the solution.
Actually there are many approaches...
To better understand what you want to do, I need to ask the following questions:
1. No matter what, until that button is pressed, you want the sw to pause. Is that correct?
2. What happens if the button does not provide the selection or option that the operator wants? does the sw wait forever?
3. Are you implementing an interface where the operator must make some sort of selection, entry or "something" and then must click a button to accept the settings? If so, you could even have a sub vi that loops until the button is pressed, and it passes all the collected values to the calling VI.
4. Can you provide some additional information on what you want to do?
R
10-24-2008 12:49 PM
Thanks for getting back to me!
Basically, I have 2 text strings in the front panel of the VI- one is patient-specific and the other is a backup. Labview opens another program, which uses the patient-specific string to create a model. I would like the VI to pause at this point to allow the user to check the model in the other program. If the model looks good, then they will click "model ok" in labview, and labview will continue, using the patient-specific string. If the model doesn't look good, then the user will click "model NOT ok", and labview will continue, using the backup string.
So in other words, there is no data entry at all- all the user has to do is click a boolean to TRUE or FALSE to continue execution of the VI. It would be fine to set it to wait a maximum amount of time, say 5 minutes, before continuing on it's own. Ideally, I'd like it to go as soon as the button is checked.
10-25-2008 12:47 AM
Hi,
Can you tell me which case should execute after 5 mins like your are telling that " It would be fine to set it to wait a maximum amount of time, say 5 minutes, before continuing on it's own " is it that you want to set an default case to execute or 5mins delay for every button click. What that on its own, Can you explain still clear.
10-28-2008 11:54 AM
10-28-2008 12:10 PM
Everything is do-able... 😉
Have a look at the attached example for a sample solution using radio buttons.
There are many ways of creating a solution. You need to define more what you want.
R
10-28-2008 12:10 PM
10-28-2008 12:12 PM
10-28-2008 04:37 PM
LOL! Not at all..
We were all at that level at some point in our career. Just having fun helping others..
R
10-28-2008 09:25 PM
JoeLabView,
Are you usually the Dilbert icon? I like your psycho pumpkin avatar - a kind of nintendo spasm inducing freak-out deal!
Cheers,
cb