Additional Information
The following code will send only "hello" from the serial port, because
StringLength encounters the NULL character in the string and interprets this character as the end of the string.
char send_data[15] = "hello\00world";
stringsize = StringLength (send_data); // stringsize = 5
ComWrt (comport, send_data, stringsize); // "hello" is sent over serial
If you want to NULL terminate a serial message, you do not need to add a NULL character. The NULL character is already in the string. You just have to increment the number of characters to send.
char send_data[15] = "hello";
stringsize = StringLength (send_data)++; // stringsize = 6
ComWrt (comport, send_data, stringsize); // "hello/0" is sent over serial
If you are in the LabWindows/CVI environment you can use NULL termination in the example named serial.prj, which is located in the samples\rs232 directory of your LabWindows/CVI installation, by replacing the procedure SendAscii and the callback ReadCallBack with the attached code. When the user selects "None" for the Terminator or Termination Byte, they will get NULL termination instead.