LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

To more specific class works on IDE but not on EXE, on target machine


@JÞB wrote:

@UliB wrote:

@JÞB wrote:

@UliB wrote:

I re-read Jays suggestion and now I would go with something like that

 

find ctrl from label.png

 

Edit: No need for the error wire in the loop and if no label matches return 'not a reference'.


Excellent!  Extra kudos in tag. Although, I would rearrange the diagram so that the terminals match the connector pane.  That's just a style practice.


My snipped does not have a connector pane 😉 , but when I look at the VI connector pane from OP I think the terminals match the connector pane perfectly.

Find Ctrl FromLabel Connector Pane.PNG

 

 


Fair enough,  those wires should have been uncrossed by rearranging the cluster order!  

 

As long as the subvi above has error in, USE IT so not a refnum is returned on error OR no match.


Error handling:  in general we, devepers, should strive to:

  • maintain every upstream error
  • Do nothing time consuming with error in

We WANT everything to fail downstream until the dam breaks! This post is a beautiful example of how a developer can wrap themselve around an axil!  The OP got distracted by the 1057 error when the real problem was "stuck in the muck" from behind a dam.


"Should be" isn't "Is" -Jay
0 Kudos
Message 21 of 21
(45 Views)