CuriousMind Posted August 13, 2020 Share Posted August 13, 2020 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 and pressure is greater then 0.5. So, data acquisition should be stopped. But, in my case, it did not stop. What did I do wrong? read(pressure) motion.AddValue(motionRaw) if ((motionRaw > 0.2) && (motionRaw < 1.2)) && (pressure- pressure <0.5)&& (pressure- pressure >-0.5) beginexport(OneLine) endif Please help Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.