Jump to content

continuous streaming serial data


jillaye

Recommended Posts

Hello,

I would like to read a continuous serial stream consisting of 72 separate bytes of hex data. I think that I can sync on the first two bytes of each "set" of 72 bytes, as they are always "81 01". I have little experience decoding serial data and none of the examples included with LabVIEW cover continuously streaming data so any help will be appreciated. Thanks!

Link to comment

QUOTE(jillaye @ Jan 5 2008, 07:52 AM)

Here it is...

Sorry it's taken me a while to answer. First issue is that you're continuously adding to the string in the shift register - that keeps getting bigger and bigger, and all you're doing is looking at the first message in it, which will always be the same one: the first one. Also, you need to initialise the shift register - you're not gaurenteed what data is in there when you run it unless you explicitly tell it what to be in there: wire an empty string (it's a constant on the string palette that looks like "" in a box) to the left side of the shift register (outside the loop).

As for formatting the read string to get the messages out, here's an example. It's not going to fit exactly into your code, but hopefully it will give you enough info to code something similar. Give it a go, but if you're still stuck, post again and I'll have another look for you.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.