LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Unexpected values at the moment to receive serial data

Hi,

 

I've been a time trying to fix this and looking for forums but unfortunately I can't figure out how to solve it. I hope you can help me a bit.

 

I am working in a project which I have to send some information via ZigBee technology throught the serial port to my computer where there is another ZigBee module connected by serial port to LabView.

 

The point is that I am able to receive all the data well if I take some long delays and I really need to decrease my delays.

With low delays I receive zero values or even some values really out of range even when in some test I am just sending some fix values to debug it.

 

I think that it's a problem of synchronization but I don't know how to fix it.

 

PS: The reason cause I put a switch case even when the programm has to go out of the while when the Bytes at Port are zero, is cause i realise it doesn't. Just a way to be redundant in my goal.

 

I attached you the .vi file and a picture where it can be seen my problem (it's suppose to receive always some value around -1).

Thanks a lot for advance.

Download All
0 Kudos
Message 1 of 3
(2,440 Views)

Can you provide an example of expected data.

How to you determine the start or end of a data transmission?

It appears as though you are expecting to receive floating point numbers as a strings but you have no way of sychronizing to the start or end of a value.

 

Troy - CLD "If a hammer is the only tool you have, everything starts to look like a nail." ~ Maslow/Kaplan - Law of the instrument
0 Kudos
Message 2 of 3
(2,390 Views)

Hi danmala,

                             Can you please convert it into 2011 format & attach it.

--------------------------------------------------------------------------------------------------------
Kudos are always welcome if you got solution to some extent.

I need my difficulties because they are necessary to enjoy my success.
--Ranjeet
0 Kudos
Message 3 of 3
(2,381 Views)