LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Date/Time in Seconds Tunnel Structure

Hi all,

 

Quick question regarding passing inputs into a while loop. Maybe I am missing something but after reading this tutorial it seems as though you can only pass an input into the loop during the first iteration. I am confused because if you wire a Get Date/Time in Seconds timestamp block from outside the loop, it passes in the timestamp every iteration.

 

Wondering if I am missing something here?

 

Thank you.

0 Kudos
Message 1 of 4
(2,213 Views)
The value at a tunnel entering a loop stays the same for every iteration of the loop. The value is valid for every iteration but constant. If you wire in get date/time from outside the loop, the timestamp will be the same on every loop iteration.
Message 2 of 4
(2,203 Views)

Hi pj,

 

maybe you are missing the DATAFLOW as is explained tín the first chapter of the LabVIEW help?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 3 of 4
(2,185 Views)

Yep, I didn't realize the value was staying the same. That makes a lot of sense now.

 

Thank you both!

0 Kudos
Message 4 of 4
(2,155 Views)