LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Time when loop ist started?

Hello

Is it possible to get the time value when e.g. a for-loop is started for the first time?


THX
0 Kudos
Message 1 of 5
(2,980 Views)
This should get you what you're looking for...
0 Kudos
Message 2 of 5
(2,974 Views)
You can use any of the time VIs to get the value (Time & Dialog palette). You can either place a case structure in the first frame or (only when you know the loop will start running immediately), place it outside the loop.
For example:

___________________
Try to take over the world!
0 Kudos
Message 3 of 5
(2,972 Views)
OK thank you so far.

But what can i do when the loop is in an other loop which doesn't stop and i alway want to get the times when the inner loop is started, e.g because i want to write the time-values into an array.
0 Kudos
Message 4 of 5
(2,948 Views)
In that case, you just wire it out of the outer loop. The auto indexing will build it into an array.
Shown here is the other frame of the case structure. Frame 0 (first iteration) takes the time and passes it into the shift register and all other frames just pass it through.


It sound like you don't know much about LV. To learn more, I suggest you try searching this site and google for LabVIEW tutorials. Here and here are a couple you can start with. You can also contact your local NI office and join one of their courses.
In addition, I suggest you read the LabVIEW style guide.

___________________
Try to take over the world!
Message 5 of 5
(2,942 Views)