LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
dthor

Timed FOR Loop

Status: Declined

Any idea that has received less than 7 kudos within 7 years after posting will be automatically declined.

Simple Idea:

There should be a timed FOR loop.

 

All the same awesomeness of the Timed (While) Loop, but stops when the auto-indexed array finishs or after N executions.

 

A picture because Ideas with pictures get more Kudos:

Timed FOR Loop 2.PNG

 

3 Comments
Manzolli
Active Participant

I was wondering the necessity of that. After a while I agree with you. It's easy to implement an exit in a While Loop that is based on the "i" counter. But your idea make it simpler. I imagine a scenario where some channels should be scanned waiting a while between then. This structure would help the code be simpler. Kudos!

André Manzolli

Mechanical Engineer
Certified LabVIEW Developer - CLD
LabVIEW Champion
Curitiba - PR - Brazil
dthor
Active Participant

Yeah, the Idea isn't anything ground-breaking. It's purely a matter of convenience.

 

Heck, convenience is the reason we have the standard FOR loop anyway. You can accomplish the same thing with a WHILE loop and clever stop conditions! Smiley Very Happy

 

The only issue I have with my prototype image is that the N terminal ends up getting blocked. Perhaps it could move to the resizable inputs on the right.

Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 7 kudos within 7 years after posting will be automatically declined.