I'm having a rather strange problem when I try to send the contents of a string variable over RS232 to a terminal. Say I want to send the text "TEST" to a terminal display; there are a couple of ways you could do that.
I've made a test program that does the following:
- Set a string variable (stringvar) to "TEST"
- Send a fixed string ("TEST") to a terminal using the RS232 component macro > SendRS232String
- Send TEST as separate characters (bytes 84, 69, 83, 84) using the RS232 component macro > SendRS232Char
- Send the variable 'stringvar' using the RS232 component macro > SendRS232String
- Send "TEST" using the RS232 component macro > SendRS232Char
- Each send test is separated by a carriage return byte (13)

The tests that used the SendRS232String function give the wrong/unreadable characters. In the simulation everything's fine.
I've tried another terminal program (hyperterminal), but it gives the same result. I have attached the program to this post so you can see for yourself.
So I'm not sure if this is a bug or if I'm doing something wrong and should alter some settings. Can anybody please help me? Thanks in advance.
Paul