ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

plotting real time data from serial port

Hi

 

I doing a wireless project in which the data from the receiver is sent to a PC over serial port for plotting in real time.

 

On the transmitter side, there is an A/D converter that converts analog signal to 8 bit digital data. This 8 bit data is sent to the receiver for real time viewing.

 

I have build a simple VI that reads data from the serial port and plots them.

 

For example: If I connect a sine wave at the input terminals of the A/D converter, I should get a sine wave output in the VI. Unfortunately, I don't get that.

 

I am attaching my VI to this post. Please somebody take  a look at it and tell me where is the mistake.

 

Thanks in advance... 

Download All
0 Kudos
Message 1 of 5
(3,724 Views)

Hello chaitu209,

 

Were you abe to confirm that the number of bytes is correct coming out of the serial port?

Andy Chang
National Instruments
0 Kudos
Message 2 of 5
(3,685 Views)
You need to better define what data is being sent. The program you wrote is for decoding ASCII - not 8 bit data and you really have no control over how much data you are reading at a time.
0 Kudos
Message 3 of 5
(3,676 Views)

Sorry I have posted the same message in two different boards..

 

I receive a string of ascii characters from the serial port. Does lowering the baud rate controls the amount of data I receive?

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

im having a very similar problem..... can you share your vi in a version 8.6 or below??    here is my post

 

http://forums.ni.com/ni/board/message?board.id=140&thread.id=38434
0 Kudos
Message 5 of 5
(3,616 Views)