LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read serial port with variable bytes input...

Hi,

I have a problem to use the data from serial port. The system sends to serial data in format $33 $33 $31 $00 $2C $00 $32 $39 $00 .

 

Normally I use fixed bytes to read and only use Type Cast to get the data and work with it. In this case the entry bytes are variable way. In this example it sends values of temp and time. 33 33 31 00 is 331 decimal temp. and 29 second from 32 39 00. 2c is "," and 00 is to finish each value.

I would like any advise to manages it properly. I only want to get the temp and time values and show in graph.

 

Thanks for all, Regards.

 

0 Kudos
Message 1 of 2
(2,292 Views)

hello,

 

Some difficulties to see where is the problem,

 

could you show us what your read buffer indicator really contains ? (print screen)

 

Regards

 

Tinnitus

 

Message Edité par tinnitus le 07-18-2009 08:35 PM
CLAD / Labview 2011, Win Xp
------------------------------------------------------
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail

Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
0 Kudos
Message 2 of 2
(2,271 Views)