Norm Kirchner Posted April 2, 2013 Report Share Posted April 2, 2013 Like this?http://screencast.com/t/jGDycjpVm Go herehttps://decibel.ni.com/content/groups/labview-apis/blog/2013/04/01/for-loop-pass-through-utility 1 Quote Link to comment
Aristos Queue Posted April 2, 2013 Report Share Posted April 2, 2013 A) There's a minor bug in your existing implementation... you need to close your VI reference. I've fixed this in my version (moved the open of the VI Ref inside the "BD" case and then closed that ref at the end of that frame). B) The new version that I've put up here detects whether any of the wires are Error Clusters and, if so, turns on the Conditional Stop terminal for the For Loop and wires it. If there are multiple Error Cluster wires, it adds a Merge Error node before the Conditional Stop. My version is incomplete in one way... if you use this on a For Loop that already has a Conditional Stop terminal wired, it does not add the Or node to blend the existing stop conditions with the error cluster. I started to write that code but got bored. It wasn't the main use case for this VI -- it is intended for new For Loops, predominantly -- but I've left my start on that code inside a diagram disable structure in case someone wants to finish it. BEFORE: AFTER: This new version still needs the other subVI from the original post. Scripting - For Loop Pass Through_With Conditional Term.vi Quote Link to comment
MikaelH Posted April 2, 2013 Report Share Posted April 2, 2013 I'll definitley put this is a Q-Drop shutcut-VI, just have to find an avaiable Ctrl-<key> combination. First version Ctrl-F Norms version (slightly modified) Ctrl-Shift-F AQ's Version For Loop pass Through-SwapTerminals.zip Quote Link to comment
Norm Kirchner Posted April 5, 2013 Author Report Share Posted April 5, 2013 Yeah, isn't finding available hot keys a real PITA?! Wouldn't it be easier if there was a more natural way to have a deep set of commands w/out needing to divine a magically unused hot key pairing? ~,~ 1 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.