Lynn,Thanks; I'll be checking for those things. Unfortunately, I realized that tracking this bug down might be more involved than I had thought. This program is used to control an electromagnet, and is sometimes used as a standalone program. However, it is also part of a comprehensive program that controls the rest of the instruments in the lab, and which does its own occasional communication with the magnet (to check if it's turned on, etc.). It's possible that the overall program is somehow interfering when it performs its own status checks, etc. I'll have to look at that as well.Ben,I don't think it ever did work properly. Or at the very least, this bug has been around for quite some time. Thanks for asking to see the code; I appreciate it if anyone feels like taking a look. I created a source distribution (LV 8.2) and zipped it, which I've attached; the control program itself is Magnet v3.0.vi, and the event that does the routine status checks is in the timeout case of the upper-left event structure (which is in frame 1 of the event structure). (I didn't include the comprehensive program mentioned above, since that one is huge.) I apologize if the code is messy or unclear; I've made a few tweaks to fix bugs, but nearly all of it was written by the programmer before me. It's also possible hardware is involved; thanks for the idea of NI-Spy.A few more general notes: I talked with one of the other people in the lab who uses the program quite a bit, and he pointed out that there are at least two bugs. In one, the indicators for levels of liquid nitrogen and helium both drop to zero, but other indicators on the front panel continue to work properly. In the other, all the indicators drop to zero and the temperature graph stops updating. In both cases clicking the "check for magnet" button reestablishes communication immediately.
Magnet control program1.zip:
http://forums.ni.com/attachments/ni/170/346149/1/Magnet control program1.zip