取消
显示结果 
搜索替代 
您的意思是: 

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 项奖励
1 条消息(共 4 条)
2,994 次查看
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.
2 条消息(共 4 条)
2,985 次查看
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."
3 条消息(共 4 条)
2,972 次查看
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.


4 条消息(共 4 条)
2,963 次查看