LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading 2 serial port in a same time

i want to monitor 2 type of data in a same time

 1- i have 6 sensor and i send them from micro avr and packed in this format >> 

 

printf("%4d%4d%4d%4d%4d%2d@%4.2f\r\n",a,b,d,c,e,p,f);

 

i want to recive all 30 data bytes  in one port then unpacked them...

2- i have a gyro sensor that sends data very slow every 500ms thats data like this   >> 

 

x+40.2\s\s\Y+42.3\r\n


i want recive all 16 data byte in another port and send feed back (write serial) too.

 

i recive gyro sensor data recive in fix 16 byte and dont have any problem  .

but i have problem that i dont recive fix data from 30 data(from micro) its hangs or recive lower.
 

its becuse i use 2port in same time if i use it alone there is no problem.i recive it fix.
 
plz help me.

also im sory im not good at english.


Download All
0 Kudos
Message 1 of 2
(2,276 Views)

Hey,

 

I would first add some error handling to your loops.  The way you have it setup, the loops could be running in error and you will never know about it.  The code I have attached will stop the loop if an error occurs.

 

Does it throw any errors when you run it?

 

 

Lewis Gear CLA
LabVIEW UAV

0 Kudos
Message 2 of 2
(2,224 Views)