Jump to content

Labview as terminal (RS232)


thls

Recommended Posts

I want to read data from the serial port, but because I want to use it as terminal I don't know how many bytes are send.

(I think I solved that issue with the attached code)

My device sends several lines of data but I want to have it presented in a windows line by line and that does not work.

Can anybody give me some advice how to change my VI?

Regards

Link to comment

No attachment, but here's how I would do it: use a producer loop to read the serial port (the Bytes At Port property may come in handy) which will message a consumer/GUI loop when (an) EOL character(s) is detected. That way, the GUI doesn't know about any incoming data until you've qualified it as "ready" to display. The downside to this is that the application may appear unresponsive while it's waiting for a complete response from the device.

Link to comment
  • 5 months later...

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.