while-loop?

H

huub

Hi,

Being a newbie with Python, I'm trying a short program with this:
> <..>
t = RoboInterface()
> <..>
while not t.Digital(1): # while endpoint is not reached
15 pass

However, it always hangs on the 'while', which I can't find in the
tutorial at http://www.python.org/doc/. Assuming 'while' should work,
what's wrong with the code?

Thanks.
 
M

Marc 'BlackJack' Rintsch

Being a newbie with Python, I'm trying a short program with this:


However, it always hangs on the 'while', which I can't find in the
tutorial at http://www.python.org/doc/. Assuming 'while' should work,
what's wrong with the code?

Obviously the condition is alway true. Maybe you have to do something
within the loop so it eventually will be false at some point!?

Ciao,
Marc 'BlackJack' Rintsch
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top