I had a problem about a month ago with NIMAX getting corrupted that required a repair to NIMAX to fix. Since then, twice I have had a LabVIEW executable that should run for 96 hours at a time hang because one or more of the 4 serial ports I use to talk (VISA style) to various instruments has renamed itself and thus become unreachable to my program. The COM ports are on an NI USB-RS232/4 box that seems to be fine except for this problem, and was fine for a couple years before. The ports go back to their original names following a reboot of the Win 7 computer, but that doesn't help the bad data collected from the unreachable instrument during the long run. The program wants a new reading about every 6 seconds, and all the messages are plenty short enough to fit the available time. I don't want to write code to search for new ports and try to match the messages to the instruments when I see the error message about the unreachable port, I just want the COM ports to stay for example COM3 without randomly jumping to COM8. Anybody seen a similar problem and know what to fix?
↧