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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

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