LabVIEW Idea Exchange

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

Resetting "First call?

Status: Declined

There are already ways to achieve the desired functionality, as described in the comments.

It would be useful to add a Boolean for resetting "First call?". Sometimes it might be required to reset a first call during a run.   
It could be as following:

KhalilEslami_0-1684738034968.png

 

3 Comments
wiebe@CARYA
Knight of NI

IMHO, This would make the node more confusing, while there are some pretty simple (and clear) alternatives:

wiebeCARYA_0-1684752063436.png

The feedback node is shown because it has an added benefit: you can choose Initialize On First Call or Initialize On Compile Or Load.

 

Although it's hardly worth making a VI for it, if you put this code in a reentrant VI, you have what you're asking for.

srlm
Member

Sounds like you should add an "Initialize?" terminal to your subVI and move the decision up to the caller, removing First Call from your block diagram entirely. Or change that to "First Call or X", where X is that reset wire. 

 

I would definitely oppose this change -- First Call should mean First Call. Especially when there are trivial workarounds like "Or" primitive. 

Christina_R
Active Participant
Status changed to: Declined

There are already ways to achieve the desired functionality, as described in the comments.


Christina Rogers
Principal Product Owner, LabVIEW R&D