01-08-2007 10:38 AM
01-08-2007 11:15 AM - edited 01-08-2007 11:15 AM
The RS232 library function ComRd() takes a "count" value. This determines how many bytes you will try and read into your buffer. Each character in your 1.2345 example is 1 byte long. Note that if you input only the 6 characters of your example the buffer will not be null terminated.
The number of bits per byte is set by the config panel you describe, it determines how many bits are used by the serial UART for a character, 8 bits is by far the most common value these days but would depend on the type of serial hardware you are trying to communicate with.
Message Edited by mvr on 01-08-2007 11:17 AM
01-08-2007 11:22 AM
01-08-2007 12:37 PM
Ok that helps. Got it working.
Thanks