LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

pausing to wait for user input

Does anybody know how I could semi-automate a test by asking the user to
make a measurement half way thorough the program and then continue when
they have entered it?

Thanks
Jenni

Please reply to jbuglar@cadence.com


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
0 Kudos
Message 1 of 4
(9,209 Views)
Just have the program run into a WHILE loop, and inside the loop just have
the digital control. Just keep the loop going until the digital control is
not equal to zero. (or whatever value you want).

In the case the measurment might be zero, you could have it as a string
control, and as long as it is not a 'space', (a function in the compare
menu) keep the loop going. Then immediatly change the string to a number.
(found in the strings menu).

Another way is to have a digital control and only have it register when an
"enter" button his hit (boolean).

Rick
Message 2 of 4
(9,209 Views)
Rick Nelson wrote:

> Just have the program run into a WHILE loop, and inside the loop just have
> the digital control. Just keep the loop going until the digital control is
> not equal to zero. (or whatever value you want).
>

Aside: Don't forget to put a pause timmer of say 100ms in the loop or the
performance of your computer for other tasks will plumit as Labview will hog
the processor - doing the loop as many times as it can per second....

Peter
0 Kudos
Message 3 of 4
(9,209 Views)
>
>
> Aside: Don't forget to put a pause timmer of say 100ms in the loop or the
> performance of your computer for other tasks will plumit as Labview will hog
> the processor - doing the loop as many times as it can per second....
>
> Peter

Oh yeah, good point. I forgot about that. I hope in the next versions you can
set a default timer value for while loops, cause I always have timers like that
it my loop -- gets kinda redundant.

Rick

--
Chesapeake Sciences Corp.
1127B Benfield Blvd.
Millersville, MD 21108

Tel: (410) 923-1300 x3430
Fax: (410) 923-2669
0 Kudos
Message 4 of 4
(9,208 Views)