LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Michael.Proctor

Option to have While Loop Auto - Stop if a wired input array has indexing enabled.

Status: Declined
Functionality already in LabVIEW

 

Perhaps this could be handled by having an "exit" out of a For Loop

but I think it make more sense to have the

option to have While Loop Auto - Stop if a wired array input has indexing enabled.

This would save diagram space to catch an infinite loop.

 

Either a right-click on the "Enable indexing" icon of the array input or a right click on the Stop if True or Stop if False icon to

change it to Purple or Orange to indicate the while loop is also enabled to stop when input array has reached its array size.

 

 

8 Comments
tst
Knight of NI Knight of NI
Knight of NI

The for loop has had the option of an early stop since LV 8.5, just like you suggested in your first sentence  - just right click the loop and check Conditional Terminal in the context menu. Is that not good enough?


___________________
Try to take over the world!
SteveChandler
Trusted Enthusiast

I must be missing something. How would this idea be different from using a for loop?

=====================
LabVIEW 2012


Michael.Proctor
Member

 

Nice, I don't have to wait for NI to implement.

The difference from a for loop is that for a very large array, once you have found what you are looking for

you can break out of the loop and no need to cycle through the next 10,000 points.

RavensFan
Knight of NI

So do you agree that this idea can be closed as Already Implemented as a For Loop with the conditional stop terminal enabled?

AristosQueue (NI)
NI Employee (retired)

The previous posts note that LV already has this feature (a loop that stops either on condition or on the end of indexing an array). Just in case you don't know how to turn it on, I've included the picture below. I am going to have this idea closed as Complete.

 

ConditionalForLoop.png

Michael.Proctor
Member

 

oh agree very much it can be closed as complete.

Sorry not to have stated that so clearly previously

G-Money
NI Employee (retired)

I am going to close this idea as Declined because Completed is reserved for ideas posted here that R&D implements specifically because of the customer idea.

G-Money
NI Employee (retired)
Status changed to: Declined
Functionality already in LabVIEW