LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How i can measure time and save the result

Thank you, i am interested is it possible to measure other times? like time between start and when slide goes up to "n" ?
0 Kudos
Message 11 of 15
(729 Views)
Hello Jani,

yes, it's possible. You just have to program it that way 🙂

Put the timing sequence in a parallel loop or in a parallel running vi. Make a global start and stop flag. Then you can set these flags at certain points in your main vi and get the according time.

(I always tell my students: It's all possible with LabView, you just have to program it.)

Best regards,
GerdW
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 12 of 15
(729 Views)
Sorry, but i dont understand.. what means parallel loop? or global flag?
0 Kudos
Message 13 of 15
(729 Views)
Hello Jani,

parallel loop: just two (or more) loops running in parallel. In Labview everything runs parallel (at the same time) as long there is no data dependency (Labview: wire) between it.

flag: a way to communicate between program structures. One structure sets the flag, the other is reading (and perhaps erasing) it. A flag may be a boolean or any other type of data. Just what you think will fulfill this job.

In your case: put the timing sequence in it's own while loop. Replace the start/stop button by their local variables and put the terminals in the main loop (you have to select switch instead of latch as mechanical action). Now you may switch the start/s
top at any time in your main loop and the timing loop will take the time in between.

Best regards,
GerdW
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 14 of 15
(729 Views)
Ok, now i get it, thank you very much,
Jani
0 Kudos
Message 15 of 15
(729 Views)