I am reading three channel: motion(Test), motionRaw(Labjack), pressure(LabJack). I want to acquire "pressure" when "motionRaw" falls between 0.2 and 1.2v.
I want to stop acquisition as soon as pressure value starts to drop rapidly. The following code I used for this purpose.
When x axis is 100 points, the difference of pressure[0] and pressure[1] is greater then 0.5. So, data acquisition should be stopped. But, in my case, it did not stop. What did I do wrong?
Stop data acquisition when data falls quickly/sharply from peak
in Channels, Conversions and general data acquisition
Posted
Hi,
I am reading three channel: motion(Test), motionRaw(Labjack), pressure(LabJack). I want to acquire "pressure" when "motionRaw" falls between 0.2 and 1.2v.
I want to stop acquisition as soon as pressure value starts to drop rapidly. The following code I used for this purpose.
When x axis is 100 points, the difference of pressure[0] and pressure[1] is greater then 0.5. So, data acquisition should be stopped. But, in my case, it did not stop. What did I do wrong?
motion.AddValue(motionRaw[0])
beginexport(OneLine)
endif
Please help