DC switching times
Archiver
Posts: 46,084
Let's say I would like to monitor an input pin, #2 and determine if it's on or
off. If it's off, I would like to count the number of microseconds it's off and
store that value to an array variable. If it's on, I would like to do the same
thing but store the result to the next variable in the array. Next time it's
state changes, I need to do the same thing but select the next variable in the
array to store it's time. I would like to continue this process for about 1
second. It the BS2 stamp capable of doing this or do I need a faster one?
Thanks for your help.
Leroy
off. If it's off, I would like to count the number of microseconds it's off and
store that value to an array variable. If it's on, I would like to do the same
thing but store the result to the next variable in the array. Next time it's
state changes, I need to do the same thing but select the next variable in the
array to store it's time. I would like to continue this process for about 1
second. It the BS2 stamp capable of doing this or do I need a faster one?
Thanks for your help.
Leroy