LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
cy...

Fix Timed Loop termination terminal

Status: Completed

Available in LabVIEW NXG. See the idea discussion thread for more information about Timed Loop behavior in LabVIEW NXG.

Good day forum

 

Upon wiring an error wire to the termination terminal for timed loop, deletion of the error wire will not necessitate the connection of the terminal. 

TL bug.jpg

 

A fix will be appreciated. Thanks in advanced.

 

Regards

CY

CY (expired CLAD)
19 Comments
Intaris
Proven Zealot

I dont understand what exactly you would like changed..... Timed loops never require the stop terminal to be wired if I remember correctly.

cy...
Active Participant

 

I didn't noticed it until you pointed it out (stop terminal not required). I would suggest making it a required terminal. Or are there any reasons why it is now not?

CY (expired CLAD)
Intaris
Proven Zealot

Timed loops tend to run indefinitely.  They are a bit different from normal while loops in that regard.  It's just a comfort aspect of never having to wire up the terminal.

 

On FPGA, depending on the clocks used to time them, stopping the loop is sometimes not even supported.

wiebe@CARYA
Knight of NI

>Or are there any reasons why it is now not?

 

I think the reasoning behind it is that a TL is typically used as an infinite loop. That's why wiring the stop condition is not required. For a normal while loop, an unwired stop condition is likely a bug, so there it is required.

 

So it's deliberate, and I think most people actually like it.

 

EDIT: That crossed Intaris' reply.

cy...
Active Participant

thanks for the feedback

 

Intuitively, the current unwired stop terminal look will give users a feeling of "required" in wiring the BD.

 

How about standardizing with the case structure's "use default if unwired" boldness to indicate that it is actually optional? 

fromto.png

CY (expired CLAD)
Intaris
Proven Zealot

Hmm. Instead, I would suggest adding a third option when right-clicking the stop Terminal.

"Stop if True"

"Continue if True"

"Execute Indefinitely"

 

And then display an infinite loop glyph on the terminal.... This should be the default when unwired.

wiebe@CARYA
Knight of NI

>This should be the default when unwired.

 

I don't think so. At least not for normal loops. For TLs, inf could be default (as it is now), but for normal loops, setting it to run infinitely should be a very conscious action (if allowed at all).

 

Anyway, sounds like a different idea to me.

Intaris
Proven Zealot

I meant for timed loops only. Didn't explicitly state that, my bad.

 

I agree it's a completely different idea than the OP.

cy...
Active Participant

adding options to the stop terminal may be feasible, but...

 

I would prefer the timed loop to have no stop terminal by default, and stop terminal can only be added through user selection, like the conditional terminal for conditional For loop; that would be more intuitive.

 

alternatively, should an infinite symbol be used, I would consider putting it in place of the boxed "N" in For loop structure to be more intuitive; again, together with the conditional terminal, should the user required it. 

CY (expired CLAD)
AristosQueue (NI)
NI Employee (retired)

The Timed Loop has been redesigned in LabVIEW NXG. There are three modes of operation, and if the "Run infinitely" mode is chosen, it does indeed display the infinity symbol on the stop terminal. Also in this configuration, the stop terminal cannot be wired.

NGTimedLoop.png