Hello LabWindows CVI Community,
What is Being Used:
- I am using LabWindows CVI 2012.
- Firmware Version: 1U1K:5.1.1-LAN:3.1.0.5
Issue:
When querying the TDK-Lambda power supply via LAN SCPI in a while loop (no delays) with a viFlush performed on the read buffer after each query, I will eventually get viError with the viQuery (anywhere from hours to days after the software began) that follows this order.
1.) Timeout expired before operation has completed.
2.) The connection for the given session has been lost.
Note that the power supply will still be on. It can't be pinged anymore however. The LAN connection will be lost until the power supply is restarted.
Code Structure (simple):
int opcStat;
double tempV;
while (TRUE)
{
viQueryf(vi, "*OPC?\n", "%d", &opcStat);
viFlush(vi, VI_READ_BUF);
viQueryf(vi, "MEAS:VOLT?\n", "%lf", &tempV); // Error appears here after hours+
viFlush(vi, VI_READ_BUF);
}
Current Theory:
At the moment, I have only experienced this with the LAN:3.1.0.5 firmware version, but I have never seen this error pop-up before with the LAN:2.1.0.1 firmware version with the same querying method shown above.
Question:
I wanted to see if someone has experienced an issue similar to mine and what was your approach to it? I figure that if the firmware version is creating the issue, then I want the code to be robust enough to approach the issue. Any insights to improve the querying process is appreciated.