06-26-2020 07:27 AM
Hi,
In my project i have three while loops.:
Loop #1 is working as 'Main'
Loop #2 is for Yokogawa power analyser
Loop #3 is for UV radiometer
I frequently notice that Loop#2 does not execute:
Can you please tell me why this happens?
Kind regards,
Balázs
06-26-2020 07:35 AM
Without any code it's hard to say what's wrong with the code. (post the code)
06-26-2020 07:47 AM
Hi Balázs,
@LTBALAZS wrote:
I frequently notice that Loop#2 does not execute:
When probe 5 isn't executed then the loop didn't start so far!
For more detailed analysis you should attach some code…
06-26-2020 08:03 AM
Hi!
There are a few issues that could cause your problem. Since you didn't post the other loops I'll speculate on the problem based on the little bit of data flow shown.
Your loop has a few dependencies before it can run. Namely, the block diagram constants and the two power analyzer vi's before the loop. Your loop will not run until those vi's have finished, in order, to be specific. My guess is that your power analyzer vi's require you to close a previous session before opening a new one and that while testing your code a session was left open. To solve that, wire your instrument constant to the power analyzer close session vi (assuming that exists) in a new blank vi and run it. That should close the open session and allow you to continue. If that doesn't solve your problem turn on highlight execution before you run your program and the VI that gets hung up and prevents the loop from running should have a green run arrow on top of its icon, that will at least tell you where the problem is.
06-26-2020 08:07 AM
My wild guess is your instrument is not responding properly and you are getting timeouts. But these timeouts are likely in the 10 second range, which means you will have to wait at least 10 seconds before that loop will start.