09-01-2009 11:51 PM
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
Is there any method which will help me do this?
Solved! Go to Solution.
09-02-2009 12:35 AM
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
09-02-2009 06:55 AM
Hey Dave,
Thanks a lot... you helped me completed all my work... "Always small things doesn't flash quickly"
Cheers,
Sailesh
09-02-2009 07:00 AM
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