11-12-2007 08:45 AM
11-12-2007 09:13 AM - edited 11-12-2007 09:15 AM
Hi Brian,
I'm having the same problem in my company (just to let you know that you're not alone
)
We have a driver board that we can update (firmware and embedded software) through RS232. To do so, a binary file is sent at 57600 baud, no parity, no handshaking. The outputQueueSize parameter of the OpenComConfig function is set to 50. After each block of 4000 bytes, the driver boards sends a checksum. On some of our systems, we get checksum errors, which means that there has been a communication error. On other systems everything works great. The checksum errors appears after a random number of blocks, sometimes the updates completes without any errors...
I never get an error at startup, like you do...
A colleague of mine wrote a small tcl script to do the same thing. With this script, no errors occur
.
11-12-2007 10:06 AM
11-12-2007 10:16 AM
Are you using any handshaking? And what is the size of your output buffer used in OpenComConfig? I just read in the help that you can disable this buffer by setting it to a negative value. Then the data is written directly to the serial port. I'm working on that now to check if I get any improvement...
11-12-2007 11:22 AM
11-12-2007 04:39 PM
11-13-2007 02:45 AM
Hi Menchar,
Yes, I do use CVI8.1. Is there a fix for this solution? Should I revert to the 8.0 rs-232 library?
11-13-2007 07:37 AM
11-13-2007 01:15 PM
11-13-2007 03:36 PM