05-22-2026 02:28 AM
Hey, so I have a data assistant and write to measurement file in two separate loops. The daq is connected to a pressure sensor. Now I need to monitor the pressure levels before, during and after the experiment. But I don't want the data to be logged before and after. The experiment would run for 10 seconds. So how do I create a timer and buttons such that, I use one button to start the code and see the pressure values, and one button to start the data logging along with the timer. And it to stop logging the data after the time. Please help.
05-22-2026 10:22 AM - edited 05-22-2026 10:24 AM
Look into a simple state machine architecture and things will fall in place.
(When reposting a reddit question, you should always provide a link to avoid duplication of efforts.)