[Tutor] Continuous input at sample rate
alan.gauld@bt.com
alan.gauld@bt.com
Mon Feb 3 12:50:02 2003
> I want to take information into my program continuously at 20
> samples per second,
>
I didn't understand the rest but to loop 20 times a second
- provided your machine is fast enough! - do this:
while 1:
sleep(0.05) # 1/20s delay
# do something here
if someCondition: break
> The command to send to the device is *99c\r.
> What do i need to change in regard to just polling the device?
Are you sending or polling(reading)?
Or both? Do you send to get a result back?
I don't understand sorry.
Alan g