Series read, store queue and time-evenly continues treatment, but the data is mixed now

Hello, all,.

I send MCU APR data to the PC via a serial interface, 16bytes each time interval of 50 ms, if I donot use queue, the data read visa are the same as sent. But reading and in turn within a while loop is not time efficiently as the multiple loops with queue processing.

I have a byte (0 x 55) as the first byte of the data transmission, with multiple with queue loops, but now the 0 x 55 position is changed all the time, and most probably present at the 8th byte data.

Thanks for any help.

Ted

Houde, dai wrote:
[...]

The data received with VISA read are unstable even without connection to the other party, as the screenshot displayed. [...]

With best wishes,

Ted

Ted,

What do you mean by 'unstable '? And I saw that in your simple loop VI, you are always empty the buffer after each reading, what you don't do in the loop number VI. Maybe it's the origin of the problem.

However, IF the rinse, the root cause is not VI, but your connection (or the equivalent of your program). Since removes VISA Read already the amount of reading of data from the buffer, the data must be resent / captured again in the buffer...

hope this helps,

Norbert

Tags: NI Software

Similar Questions

Maybe you are looking for