09-21-2017 11:47 AM
@altenbach wrote:
Yes, parsing the format at run time is probably expensive, but if the error is actually used to make a decision based on the validity of the format string, it cannot be tossed out. I am all for performance, but this primitive can only be eliminated if none of the outputs go anywhere.
Exactly the issue.
But this seems to be different from those other examples shared above or I described.
Before I drift off to find an more general solution, is there a fundamental difference between a property/invoke node and operators that use the Error Cluster?
One difference that comes to mind is the property/invoke nodes have a right click option "Ignore Error inside node".
Why do I think this will develop into a "if a tree falls in the forest and there is no measurement device there to detect it, did it make noise?" question.
If a function does not run, can it return an error?
Still making up my mind...
Ben
09-21-2017 11:55 AM
Ben wrote:
SpoilerIf a function does not run, can it return an error?
Is the argument that the LabVIEW compiler is removing the function as dead code or that the function will no-op if the output is not wired and that is expected? I'm not taking a stance either way I just think that they are different enough to be discussed separately.
10-02-2017 11:33 AM
@Ben wrote:
@altenbach wrote:
Yes, parsing the format at run time is probably expensive, but if the error is actually used to make a decision based on the validity of the format string, it cannot be tossed out. I am all for performance, but this primitive can only be eliminated if none of the outputs go anywhere.
Exactly the issue.
But this seems to be different from those other examples shared above or I described.
Before I drift off to find an more general solution, is there a fundamental difference between a property/invoke node and operators that use the Error Cluster?
One difference that comes to mind is the property/invoke nodes have a right click option "Ignore Error inside node".
SpoilerWhy do I think this will develop into a "if a tree falls in the forest and there is no measurement device there to detect it, did it make noise?" question.
If a function does not run, can it return an error?
Still making up my mind...
Ben
Ben,
Read the help on "Ignore Error inside Node". That option still outputs the First Error on the error chain! It allows the P-node to try to set/get properties below the property that errored in the node. NOT analogous