LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

If the "error in" input to a CLOSE reference/file/whatever node is true, does the CLOSE still occur?

Something I've always wondered about, but have never seen in the LV documentation...

Most VI's do not perform their intended function if they are called with their error-in input indicating that an error has previously occurred.

Do the CLOSE reference/file/whatever VI's that ship with LV behave this way as well (leaving the reference/file/whatever open) or do they go ahead and at least try to close it anyway?
0 Kudos
Message 1 of 4
(2,988 Views)
A quick test with LabVIEW 7.1 shows the reference is closed even with an error passed into to 'Close Reference' function. The 'Close File' function seems to do the same.

Ed


Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
Message 2 of 4
(2,979 Views)
There is a little blurb (at least there was in LV6.x) in the online help for 'Close File' that mentions this behavior. As Ed pointed out, the other 'Close xxx' seem to do the same thing (so "uniquely in this function" might not be the best wording).
=====================================================
Fading out. " ... J. Arthur Rank on gong."
Message 3 of 4
(2,966 Views)
Look at the LabVIEW Help reference that's available when you right-click on
the function. The description for error in will tell you if the function
operates regardless of the error status. I don't recall any close functions
that are conditional on error in.


Message 4 of 4
(2,957 Views)