05-29-2013 02:28 PM
Hi, I am using Force Pressure Sensors and to develop a code which stops measurement automatically as soon as a data has been acquired. This will be let me know the force of impact I am trying to read of these force-pressure sensors. Has anyone got any ideas? Thanks
Solved! Go to Solution.
05-29-2013 02:31 PM - edited 05-29-2013 02:33 PM
have you looked at the many different functions on the "comparison" pallette wired to the stop?
05-29-2013 03:03 PM
No, do you care to tell me more?
05-29-2013 03:18 PM
@HEAPO8 wrote:
I am using Force Pressure Sensors and to develop a code which stops measurement automatically as soon as a data has been acquired.
05-29-2013 03:52 PM
@apok wrote:
- .......wire a true bool to the stop within your while loop
... unless he has no loop and is using "continuous run" mode. 😄
We probably need to see some code to give a definite answer. A finished program should never "Stop". Use a proper state machine architecture and go from the measurement state to the idle state (or analysis state, or whatever). The code should only stop if the user closes the program.
05-29-2013 03:57 PM - edited 05-29-2013 04:06 PM
@altenbach wrote:
... unless he has no loop and is using "continuous run" mode. 😄
I've seen this before, and then use the abort to stop....
05-31-2013 02:39 PM
I have my programme attached to this message. What I want to do is stop the data acquisition as soon as a data has been acquired. I am using force-pressure sensors on a footmat and I the data is going into an intensity graph. As I want to jump on this footmat and then see the instant results on the intensity graph (altenbach you have seen this code before) I am sure I already have a true bool on the stop button- i may be wrong though! Any suggestions? (and again thanks for your help guys!)
05-31-2013 03:33 PM
How do you know when the data has been acquired? How many iterations does it take?
05-31-2013 03:37 PM
well, when i apply a force on the pressure sensors, the voltage will increase (from 0 to a maximum of 5V). My aim is to stop data acquisition as soon as the force sensors detect a change in voltage. That way the intensity graph can take a snap shot at the exact instance of contact of the pressure sensor
05-31-2013 03:46 PM
So measure the condition and wire the result to the stop terminal. I don't see the problem you are having.