I haven't run into this exact issue before, so hopefully someone has and may be able to suggest a solution. I have a program written in C# that communicates with various pieces of equipment that are connected via GPIB. For weeks this program has been working without issue. However, recently I swapped out a piece of equipment, and a single GPIB cable, and now I am getting a "Timeout expired before operation complete" error. If this was occurring all the time, I think it would be easier to troubleshoot. Unfortunately, it occurs unpredictably and often after several thousand successful queries. The basic flow of the program is making several hundred measurements, wait several minutes, make some more measurements and so on. How long it runs successfully before the error occurs seems to change every time I have run the program, with it making it between about 3 hours and 12 hours before an error. Any ideas on what may be causing such an error?
Clarification: I am working with a few pieces of equipment, but the error has always occurred when querying the single piece of equipment that I had recently swapped out. But, I'm not sure it can be completely ruled out that something else is going on with accessing the GPIB devices or something with NI-VISA.