LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Asynchronous Communication Events

I am trying to figure out how to deal with asynchronous serial communication
events. My main application needs to be running a control loop, while I am
also listening to the serial port for commands that affect the main loop. I
am considering one while loop for the main control loop, a separate sub-vi
with a while loop monitoring the serial port for receive commands, and a
global variable to pass the commands to the main loop. Does this sound like
the thing to do?

Thanks...Ed
0 Kudos
Message 1 of 4
(2,975 Views)
Instead of a global I would use the queu to communicate between the two loops
greetings from the Netherlands
Message 2 of 4
(2,975 Views)
Thanks Albert. That solves a problem clearing the global after it is read.
It that one of the Queue VIs you are refering to?

"albert geven" wrote in message
news:50650000000500000025410000-999158726000@exchange.ni.com...
> Instead of a global I would use the queu to communicate between the
> two loops
0 Kudos
Message 3 of 4
(2,975 Views)
That is right, you find these vi's in the advanced palette under synchronization/queues
greetings from the Netherlands
Message 4 of 4
(2,975 Views)