03-14-2007 02:43 PM
03-14-2007 04:04 PM
03-14-2007 06:34 PM
03-15-2007 01:40 PM
03-15-2007 02:28 PM
03-15-2007 02:40 PM
06-26-2007 08:49 AM
I have similar problems with ComRd.
In the function help, it says it returns a negative error code if it fails and timeout is -I suppose- one of the error conditions.
However, ComRd returns 0.
Ideally, the return value of ComRd states the number of bytes read from the port. So, having timed out (without getting any data into the port) it is reasonable to return 0.
But in this case the help text is misleading.
In my case ReturnRS232Error() operates consistently but I think the help text and the behaviour is inconsistent.
Any comments?
06-26-2007 09:56 AM