I'm working on Win2k, and winxp.
I do some working with half-finished drivers, and regularly experience problems with dll drivers and so on which require me to reach for the red "stop" button.
I find that VISA connections which are closed as you say (once at the end of the program) create more problems when I try to re-start a program afterwards.
Whenever I can afford to (from speed point of view) I open and close so that if the program dives on me, then I get much less problems when I re-access the port. I often have trouble accessing a port which was not previously correctly shut down. Of course exiting LV and re-starting fixes any problems, but that's a pain.
I suppose I should have added that I do this because I rarely have finished code to work with, I'm generally debugging crashy code.
I suppose it depends on the level of crash-proofing the code requires.
But apart from the reliability issues, I also find it nice to have code I can simply use once on a diagram without having to worry about opening, closing, when or if. I just use the VI and I know everything is sorted out. Using eventy and so on to capture panel closures is one thing, but crashed don't usually generate events (unless this is a new addition since 6.1 - a "crash" event yould be interesting!).
🙂Shane.
PS some questions: What kind of overhead do you see when openiing and closing a port? RS-232, GPIB, or something else? I've never had a problem with it. What speeds are you communicating at that opening and closing is a problem?
Message Edited by shoneill on 09-20-2006 11:41 AM
Using LV 6.1 and 8.2.1 on W2k (SP4) and WXP (SP2)