LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Timed loop: Is it possible to determine the loop time "on the fly"?

Hello everyone,

 

is it possible, to determine the current loop-time of a "timed loop" after the loop has already started? On the right property note, there can be only determined the value for the NEXT iteration. But is this with any kind of trick also for the actual iteration possible? (Maybe tell the loop to stop at start time + X ms? But how to tell the loop a stop time, as I understand, the "deadline" parameter is only a maximum time which can be beaten...

 

And by the way: the property notes in my labview are all graphically cut off, its hard to read them. Does someone know how to improve that?
Thanks al lot!

0 Kudos
Message 1 of 3
(3,005 Views)

Hi Tooly,

 

the property notes in my labview are all graphically cut off, its hard to read them. Does someone know how to improve that?

Use a smaller font and/or decrease windows font scaling settings…

 

What's the point of using a TWL when you want to change the loop iteration time that often?

Why not use a statemachine instead?

Best regards,
GerdW


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

You don't tell the loop a stop time.  You tell it a start time, and then it executes until it's finished.

 

You can theoretically change the loop time of each and every iteration of a timed loop, we utilise that in one of our RT systems where FPGA oversampling (and thus the rate of incoming data) can change.

 

If you need to really know the stop time, you will need to do some math on the timing of the last iteration and the period of the loop.  You cannot do anything with the timing of the current loop, because that would actually mean it's not finished yet.... catch 22.

 

If you wire something to the timing of the next loop it will always have a wire connected.  Either pass through the same value again (from the appropriate terminal ont he left hand side) or choose a new timing.  simples.

0 Kudos
Message 3 of 3
(2,972 Views)