Jump to content

RS-232 Communication ?


iniesta

Recommended Posts

In this VI ( please take a look at the attached file ) i do a loop back test with the COM1 port, if i reduce the delay-before-read time to less than 15 ms ( this value can be different in your computer i think ), the program can not work properly any more.

delay >= 15ms

workgq6.png

delay < 15 ms

notworkan8.png

So what is the problem here ?

Can i do something to solve this problem ?

Thanks in advanced !

Link to comment

QUOTE(iniesta @ Jan 25 2008, 01:33 PM)

In this VI ( please take a look at the attached file ) i do a loop back test with the COM1 port, if i reduce the delay-before-read time to less than 15 ms ( this value can be different in your computer i think ), the program can not work properly any more.

You should only update the chart if you really read a value from the serial port, i.e. you should check that you get requested number of bytes at the serial port.

In your case (with a small delay) you probably get "bytes at serial port" = 0, or a value less than than the actual amount transferred.

You then convert a non-complete response into a number, hence the strange trace.

/J

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.