Hello,
The following is what I suspect:
1. Your custom PCB is not sending back serial compatible frames.
2. You did not include a termination character when attempting the loopback test (and termination will be enabled by default if you use the Configure Serial Port VI in LabVIEW.
The solution to 1. will be to make sure that your PCB sends serial frames as dictated by the standard. The solution to 2. is to include a linefeed character (deimal 10 or 0x0A) as the last character you send out; the data you send will then be read in provided you specify to read at least the number of bytes you expect to read. You mentioned flow control, but you should not have to worry about this at the LabVIEW end; no flow control will be used by default.
In general, the following things will happen when attempting to read:
1. You receive a parity error if such an error was detected.
2. You receive a framming error, indicating that your sending and receiving baud rates are different.
3. You receive a timeout error, indicating that you did not receive a). the number of bytes specified before the timeout period, or b). if termination is enabled, the termination character specified.
4. You receive the bytes you specified to read.
The first two in the above list of four are irrelevant when performing a loopback test. I believe you are likely encountering the 3rd, while after including a termination character (or reading exactly the number of bytes written) you will be in case 4.
Good luck and repost if you continue to have problems!
Best Regards,
JLS