04-04-2017 10:50 AM
I was hoping someone could help me implement a timer inside my for loop. The for loop executes the same number of times as the size of an array given by the user. I need to have a countdown timer that takes in the number of seconds calculated from another subVI I have. I have a picture attached, hopefully it helps
Solved! Go to Solution.
04-04-2017 11:45 AM
Can you use the elapsed time express VI?
04-04-2017 12:25 PM
How would I do that? I would like the timer to countdown at least every two seconds, preferably every second
04-04-2017 12:36 PM
The express VI will give you how much time has elapsed. So to countdown, just subtract that from how much time you want to start from.
04-04-2017 12:59 PM
Would an implementation like this work?
04-04-2017 01:07 PM - edited 04-04-2017 01:08 PM
That looks like it would work.
Actually, there is an error in you upper shift register. You don't want to subtract your value from the shift register. You want to subtract it from the target. Get rid of the upper shift register.
Note, the lower shift register serves no purpose.
Keep an eye how the express VI is configured with respect to Reset and Auto-Reset.