I am using a vi from the community (http://forums.ni.com/t5/LabVIEW/Driver-for-Omega-UTC-USB/td-p/2360528) to read/write to an Omega USB thermocouple reader. This uses the VISA write, VISA read functions. I have it set up to read a thermocouple once per second and then adjust the output power of a heater based on the reading. It runs for a set period of time as part of a PID loop, then stops, and my experiment carries on. It also logs the temperatuer and output power at each step.
I have had a problem occur several times now that is extremely problematic. The vi above will just freeze at the VISA write function, causing the parent vi to freeze as well. I have to kill Labview in order to fix the problem. I then lose the heating record as well, since this was being written by the parent vi. I could change it so that it writes the file continuously, but this is really just there for error checking. The larger problem is that the PID loop stops running, so I lose control of the temperature, and it does not stop at the end of the allotted time. There is no error and the parents are all frozen, so there is no way to check that this has happened and even stop the heating. If I call the vi as a reference, the caller simply waits as there is no error message and for some reason VISA never times out.
I can open the Omega software for reading these devices and see that the device is working fine, during or after the freeze.
The only similar problems I see in the archives seem to have been solved by a software update years ago (this computer has seen only LV 2012 and 2013), or by replacing the serial hardware. In my case, the only hardware is the USB thermocouple reader, so I have to throw out all this equipment to change anyway. Is my only option to switch to NI thermocouple readers? We use mostly Omega for temperature control, so I would rather not have to do that.
Is there any way that I can at least force VISA to timeout and give me an error so that I don't have a runaway heating? I'll still lose the sample, but at least it will be less dangerous for the hardware.
Hardware/Software involved: Dell XPS 8700, Labview 2013, Windows 8.1, Omega UTC-USB