LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timer for a button or loop.

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.

0 Kudos
Message 1 of 4
(568 Views)

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.)

0 Kudos
Message 2 of 4
(532 Views)

@altenbach wrote:

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.)


Plus a FGV Timer SubVI 

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
-------------------------------------------------------
https://github.com/ZhiYang-Ong
0 Kudos
Message 3 of 4
(471 Views)

@ZYOng wrote:

@altenbach wrote:

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.)


Plus a FGV Timer SubVI 


No need for a FGV if a proper state machine is programmed. I would have a "Timer" state would keep track of the elapsed time, trigger a data collection interval, and stop after the programmed test duration.

========================
=== Engineer Ambiguously ===
========================
Message 4 of 4
(433 Views)