Yes, I tried out this program on my computer running CVI 6.0 and Windows XP Professional and it works fine. Do you have a loop back connector at your serial port which connects Pin 2 with Pin3 (transmit connected with receive line)? If yes, please try out to send and receive some bytes by using the CVI function panels (interactive execution). Here an example which worked fine on my computer as well:
_tmp1 = OpenComConfig (1, "", 14400, 0, 7, 1, 512, 512);
_tmp2 = ComWrt (1, "Test", 4);
_tmp3 = ComRd (1, buffer, 4);
_tmp4 = CloseCom (1);
If this doesn't work, please check if you are getting back any errors and if not, please try an other COM port.
Regards,
Heinrich Illig
National Instruments