LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple Serial Comms

Solved!
Go to solution

Hello,

 

This is a quick question, is it possible to have one program, continuously reading information from one COM Port, while another COM Port is writing information. 

 

One port is continuosly recieving distance information from an ultra sonic sensor wireless via a Xbee module and MAX3232 Chip. Based on that information, the other port will control the direction and speed of a motor.

 

Is this possible?

 

 

0 Kudos
Message 1 of 3
(2,560 Views)
Solution
Accepted by topic author Kamilan

Yes

 

a possible architecture: two independent loops, the first read the values and send them via queue to the second loop that controls the motor.

Where to handle the timeout (no value from the sensor) is up to you....

 

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 2 of 3
(2,554 Views)

Guten Tag,

 

Ah, yes the mighty timeout! LOL I think the default 10seconds will be enough. If I use a termination character it should be ok. The motor is lowering a sensor down a pipe. Bascially, the ultratronic sensor is at the bottom of the sensor to make sure the motor stops when it reaches the bottom of the pipe.

 

Thanks for the help

 

K

 

Kamilan heft mere Hmmmmmmm - yes i know its not german! 😛

0 Kudos
Message 3 of 3
(2,539 Views)