09-19-2016 05:44 PM
Hey everyone,
I've looked online for this issue and I can't seem to find it. This is my first program running parallel loops, and I'm wondering if that's the issue.
When the program is running at full speed it's cancelling out of the lower loop - so there is an error down there but not up top. Weirdly enough earlier it was happening in the top loop but not the bottom one. It says that the error is that the query was interrupted (Error 410).
Is this that an operation at the top loop is executing before the read from an execution at the bottom loop is finished?
Thanks in advance,
Anthony
09-19-2016 05:44 PM
Forgot the VI
09-19-2016 05:49 PM
I can't see your VI because I only have LV 2014, but you shouldn't have two parallel loops controlling the device separately. What is the purpose of each loop?
09-19-2016 05:52 PM
The top loop controls integration of the power meter, the bottom loop captures real time data to display on the front panel. (Here's a picture)
09-19-2016 06:14 PM
I guess one thing that should be fixed is the close instrument VI should be after the error merge, or you could cenceivably close the instrument before the top loop has finished. But that's not the problem.
I think that the reads from the top and bottom are conflicting. When you have the reads connected by error wires, you enforce dataflow. The next read won't take place until the previous read has completed. When you have two reads in separate, parallel loops, there is no longer any data dependencies, so they fire whenever they want to - which includes at the same time, or close enough that one read hasn't completed before the next read is requested.
09-19-2016 06:26 PM
I'm now trying to integrate the bottom loop into the wait/integration time of the top loop (setting the condition of the while to stop the loop upon the time completion of the integration). It seems to be working despite the fact that I obviously don't understand how to operate the Elapsed Time express vi.
Thanks for the advice there! I'll keep operations to one loop from now on.
09-19-2016 06:38 PM
This would seem to be the simplest and most straightforward approach. 🙂