04-21-2005 11:01 PM
04-22-2005
03:57 PM
- last edited on
03-25-2024
10:19 PM
by
Content Cleaner
It doesn't seem too surprising that you are getting rather slow rates.
By adding all of these you see that each loop could easily take 3 + 1 + 3 + 1 + 2 = 10ms. So if you get a rate of only 100 Hz or 1/4 of a revolution per second then I would not be surprised.
The best thing you could do would be to get a DIO board that can handle pattern generation so that you aren't limiting yourself to simply make one call then another. You could also set up a counter to do pattern generation and then you know your output would be precise. You may want to check this device out: Low Cost USB Digital I/O Device.
04-25-2005 06:58 AM