@aputman wrote:
No biggie man. I agreed with your comment that it was a little overcomplicated but it would work just fine. I am by no means a LabVIEW expert. Sometimes I get in a rush to type out my answer without thinking things thru fully.
So is the reason for your concern becaus there is no coupling between the control update and the local variable read that enforces data flow?
Yes, that is one of my concerns. I think execution may get stuck in the center while loop depending on the mechanical action of the button in the main VI. If it latches, I could see that the subVI never gets the updated value. But if it is set to switch, I don't see why the OPs code doesn't work.
Thanks! Sometimes reading dataflow is so complicated that I need to see if I am seeing the same thing. 🙂
Bill
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the
CLAD Nugget.