03-07-2016 02:47 AM
Hi,
is there an easy way to tell which built in labview VIs / nodes runs as expected even if their "error in" terminal has an error? There are certain VIs do and certain VIs dont execute on error, but I have not found an easy way to understand which one does this or that without experimenting which is kinda time consuming.
thanks.
03-07-2016 02:56 AM - edited 03-07-2016 02:56 AM
Hi 1984,
which built in labview VIs / nodes runs as expected even if their "error in" terminal has an error?
All functions run as expected!
Maybe your "expectation" is wrong? 😄
Generic answer: all "Close"-type functions (FileClose, CloseReference, …) will execute even with an error at their input.
Specific answer: read the LabVIEW help for each function…
03-07-2016 05:09 AM
@GerdW wrote:Generic answer: all "Close"-type functions (FileClose, CloseReference, …) will execute even with an error at their input.
Not quite. MOST "Close"-type functions will. I know I ran into one that did not. Just can't remember which one. But when in doubt, read the LabVIEW Help on the function and it will clearly state if it behaves differently from normal (not run) when there is an error.
03-07-2016 08:37 AM
I probably miss something here... I have checked the help of the Daqmx close, clear and reset VIs, each one of them say:
"This input provides standard error in functionality."
Clicking to the link of the "standard error in" says: "This node runs normally only if no error occurred before this node runs. If an error occurs while this node runs, it runs normally and sets its own error status in error out."
But this is not true... eg the reset VI resets the hardware no matter of the contents of it's error in terminal. If I misunderstand then we must define "normally" as for me the sentence above means that if the error in terminal has an error then it wont execute.
For the Daqmx read and write VI the helps says: "error in describes error conditions that occur before this VI or function runs. The default is no error. If an error occurred before this VI or function runs, the VI or function passes the error in value to error out. If an error occurs while this VI or function runs, the VI or function runs normally and sets its own error status in error out."
I know that daqmx read and write wont get executed if an error occured before.
For me the two looks the same and I really have no clue which one runs no matter whats on the error in terminal.
Pls enlight me.
03-07-2016 10:06 AM
Sounds like you found a bug in the documentation. You would not be the first. If you really want to know for VIs, just open them up and check to see what happens when there is an error.