Hi,
I've just purchased the original USB-IO interface adapter GPIO-24 produced by Diolan http://www.diolan.com (perfect choice, I know) and I want to create an interface using about 6-8 pressure sensors.
I need each sensor to notify me when it is on/off.
I implemented the following algorithm: I periodically send commands to check the state of each sensor (on or off). If a sensor is on, another piece of code is executed.
However, this algorithm proved to be not so efficient. And I'll tell you why. I intend to use 6-8 pressure sensors. I need to check state of every sensor no more rarely than once per second. So, every second my application has to send 6-8 commands just to check the state of the sensors!!! Such conditions are unacceptable, as it overloads the USB.
Are there any tips or cheats to avoid such overload? Any help is appreciated!
Thank you.
P.S. Note, that I have a small experience in C
I've just purchased the original USB-IO interface adapter GPIO-24 produced by Diolan http://www.diolan.com (perfect choice, I know) and I want to create an interface using about 6-8 pressure sensors.
I need each sensor to notify me when it is on/off.
I implemented the following algorithm: I periodically send commands to check the state of each sensor (on or off). If a sensor is on, another piece of code is executed.
However, this algorithm proved to be not so efficient. And I'll tell you why. I intend to use 6-8 pressure sensors. I need to check state of every sensor no more rarely than once per second. So, every second my application has to send 6-8 commands just to check the state of the sensors!!! Such conditions are unacceptable, as it overloads the USB.
Are there any tips or cheats to avoid such overload? Any help is appreciated!
Thank you.
P.S. Note, that I have a small experience in C