LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Data Missing in Serial Communication

Hi,

 

I am Communicating an Embedded Board with LabVIEW.Data is transfering in 1 Data per second priodically.Problem is Some data are missing in between.I am using simple serial read VI.Can any one suggest me a solution? Data Log file is attached.I crossed check with some other applications in that its working fine.

 

:a) 329 b) 400 c) 100 d) 328 e) 373 f) 059 g) 816 h) 000 i) 000 j) 000 k) 01944 l) 000 m) --- n) 0000 o) 00 p) ---- q) --- r) --- s) xx.xx/xx.xx t) 0.35 u) 12

:a) 329 b) 400 c) 100 d) 328 e) 373 f) 059 g) 816 h) 000 i) 000 j) 000 k) 01944 l) 000 m) --- n) 0000 o) 00 p) ---- q) --- r) --- s) xx.xx/xx.xx t) 0.35 u) 12
:a) 329 b) 400 c) 100 d) 328 e) 373 f) 059 g) 816 h) 000 i) 000 j) 000 k) 01944 l) 000 m) --- n) 0000 o) 00 p) ---- q) --- r) --- s) xx.xx/xx.xx t) 0.35 u) 12
:a) 329 b) 400 c) 100 d) 328 e) 373 f:a) 329 b) 400 c) 100 d) 328 e) 373 f) 059 g) 816 h) 000 i) 000 j) 000 k) 01944 l) 000 m) --- n) 0000 o) 00 p) ---- q) --- r) --- s) xx.xx/xx.xx t) 0.35 u) 12
:a) 329 b) 400 c) 100:a) 329 b) 400 c) 100 d) 328 e) 373 f) 059 g) 816 h) 000 i) 000 j) 000 k) 01944 l) 000 m) --- n) 0000 o) 00 p) ---- q) --- r) --- s) xx.xx/xx.xx t) 0.35 u) 12
:a) 329 b) 400 c) 100 d) 328 e) 373 f) 059 g) 816 h) 000 i) 000 j) 000 k) 01944 l) 000 m) --- n) 0000 o) 00 p) ---- q) --- r) --- s) xx.xx/xx.xx t) 0.35 u) 12
:a) 329 b) 400 c) 100 d) 328 e) 373 f) 059 g) 816 h) 000 i) 000 j) 000 k) 01944 l) 000 m) --- n) 0000 o) 00 p) ---- q) --- r) --- s) xx.xx/xx.xx t) 0.35 u) 12
:a) 329 b) 400 c) 100 d) 328 e) 373 f) 059 g) 816 h) 000 i) 000 j) 000 k) 01944 l) 000 m) --- n) 0000 o) 00 p) ---- q) --- r) --- s) xx.xx/xx.xx t) 0.35 u) 12
:a) 329 b) 400 c) 100 d) 328 e) 373 f) 059 g) 816 h) 000 i) 000 j) 000 k) 01944 l) 000 m) --- n) 0000 o) 00 p) ---- q) --- r) --- s) xx.xx/xx.xx t) 0.35 u) 12
:a) 329 b) 400 c) 100 d) 328 e) 373 f) 059 g) 816 h) 000 i) 000 j) 000 k) 01944 l) 000 m) --- n) 0000 o) 00 p) ---- q) --- r) --- s) xx.xx/xx.xx t) 0.35 u) 12
:a) 329 b) 400 c) 100 d) 328 e) 373 f) 059 g) 816 h) 000 i) 000 j) 000 k) 01944 l) 000 m) --- n) 0000 o) 00 p) ---- q) --- r) --- s) xx.xx/xx.xx t) 0.35 u) 12
:a) 329 b) 400 c) 100 d) 328 e) 373 f) 059 g) 816 h) 000 i) 000 j) 000 k) 01944 l) 000 m) --- n) 0000 o) 00 p) ---- q) --- r) --- s) xx.xx/xx.xx t) 0.35 u) 12
:a) 329 b) 400 c) 100 d) 328 e) 373 f) 059 g) 816 h) 000 i) 000 j) 000 k) 01944 l) 000 m) --- n) 0000 o) 00 p) ---- q) --- r) --- s) xx.xx/xx.xx t) 0.35 u) 12
:a) 329 b) 400 c) 100 d) 328 e) 373 f) 059 g) 816 h) 000 i) 000 j) 000 k) 01944 l) 000 m) --- n) 0000 o) 00 p) ---- q) --- r) --- s) xx.xx/xx.xx t) 0.35 u) 12

0 Kudos
Message 1 of 4
(2,472 Views)
It sounds like the embedded board is just transmitting data continuously. My first step would be to verify that it really is. If you read the port with something like hyper terminal, do you see a new data sample every second?

What data rates are we talking about here?

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 4
(2,462 Views)

Can you share some code?  It would help a lot if we could see how your program is put together.

 

Is the embedded board using a termination character?  A termination character is something like an End Of Line character at the end of each message.  If it is sending it, then make sure you are not using the Bytes At Port function.  Just tell the VISA Read to read a huge number and the read will finish when that termination character is found.  This, of course, is assuming you enable the termination character in your program.

 

My other guess is that you are constantly opening and closing the serial port.  DON'T DO THAT.  You should open and configure the port before your loop and close it after the loop.  You can send and read data inside as much as you want then.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 3 of 4
(2,451 Views)
Also, is the data being sent in ASCII or some binary format? The data seems to be varying in length, which seems a little curious.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 4 of 4
(2,436 Views)