LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Elasped Time Progress BAR

I am trying to incorporate a progress bar into my DAQ loop to show how much time is remaining in the recording.  It works whenever I launch the VI but whenever I try and create another recording the Elapsed Time Express VI uses the initial start time and not the time when the DAQ loop is retriggered.  

 

Am I missing a shortcut or option in the Elapsed Time VI or might there be a better approach to creating a progress bar. 

 

I want this to work both for a continuous non-triggered recording and a triggered recording where Elapsed time is started at the start of the DAQmx READ.

0 Kudos
Message 1 of 2
(198 Views)

Hi DePeppers,

 


@DePeppers wrote:

I am trying to incorporate a progress bar into my DAQ loop to show how much time is remaining in the recording.  It works whenever I launch the VI but whenever I try and create another recording the Elapsed Time Express VI uses the initial start time and not the time when the DAQ loop is retriggered.  

 

Am I missing a shortcut or option in the Elapsed Time VI or might there be a better approach to creating a progress bar


The "creation of the progress bar" surely isn't the problem, but it is "how do I count the time"…

 

ExpressVIs are made for certain use cases, and your use case is different.

So the solution is simple: make your own "Elapsed time" routine that can account for "wait and pause"!

 

This specific question/topic comes up frequently so you can find several solutions in the LabVIEW board…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 2
(134 Views)