I've got a Labview vi that has 3 parallel loops.
Loop 1 is a queued main state machine. It gets states to run from Loop 2 and 3.
Loop 2 is an event handler, depending on what is clicked, adds a state to a queue. It's timeout event is set to -1.
Loop 3 basically runs a GPIB Read (non-visa). My GPIB device writes to it's output buffer, which is read "continuously" in this loop.
Problem:
I've got a loop delay, using Wait (ms), of course so that it doesn't monopolize cpu time. But, if I set it to 100 ms or less, cpu usage goes to 100% I see this affecting the other loops (a file write takes much longer).
Any suggestions on why GPIB Read in a loop is so processor intensive?
Thanks,
Tim