LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reading serial port continously and updating string buffer

Solved!
Go to solution

Hi Guys,

 

I am facing a problem in reading out serial data using LabVIEW.

I have an unknown size of data to be read out on the RS-232(Serial) and using read Write serial.vi (Example) i was able to read data out continously and monitor for DONE string on the buffer, but the string indicator which shows the output data does not get updated.

 

 

String expected:

1 2 3 4

5 6 7 8

 

I see only only character at a time on the indicator.

 

 

this is the screen shot of the vi

 

 1.JPG

Is there any method which will help me do this?  

 

0 Kudos
Message 1 of 4
(5,778 Views)

Hello Sail,

the problem is the speed of your loop. Since the loop is spinning without any wait, it is reading every character as it is coming in and showing it

So you have to collect your characters in a shift register, waiting for all expected characters and terminating the loop when the string "DONE" shows up in the string.

greets, dave

Greets, Dave
Message 2 of 4
(5,767 Views)
Solution
Accepted by topic author Sail

Hey Dave,

 

Thanks a lot... you helped me completed all my work... "Always small things doesn't flash quickly"

 

Cheers,

Sailesh 

0 Kudos
Message 3 of 4
(5,734 Views)

Sail wrote:

you helped me completed all my work... "Always small things doesn't flash quickly"


That's true most of the time. Could you please mark dave's post as solution to your problem.

 

Thanks,

Mathan

Message 4 of 4
(5,731 Views)