Jump to content
News about the LabVIEW Wiki! Read more... ×
Norm Kirchner

For Loop Pass Through Utility *Cross Post Link*

Recommended Posts

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: post-5877-0-25214900-1364893366.png

AFTER: post-5877-0-97485200-1364893384.png

 

This new version still needs the other subVI from the original post.

Scripting - For Loop Pass Through_With Conditional Term.vi

Share this post


Link to post
Share on other sites

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?

;)

 

~,~

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

By using this site, you agree to our Terms of Use.