10-05-2009 02:52 PM
Giant Spiders wrote:
I have tried both 0xD and 0xA and neither seems to work. According to the manual for my device, all messages must us a carriage reurn-line feed as the end-of-line delimiter, which is why I used 0xD.
You do realize, don't you, that the enable termination character and ther term character itself have nothing at all to do with the data that is sent to the instrument?
What is sent to the instrument is the data in the 'string to write' control and you would need a \r or \n at the end of your command.
10-05-2009 02:53 PM
10-05-2009 02:57 PM
Dennis,
Thanks for that info. I was assuming the termination character was referring to the end-of-line delimiter. Basic Serial Write and Read puts a \n for you, but I needed a \r and no \n. That's got it working. Thanks!
10-05-2009 03:14 PM
10-05-2009 03:24 PM
Giant Spiders wrote:Dennis,
Thanks for that info. I was assuming the termination character was referring to the end-of-line delimiter. Basic Serial Write and Read puts a \n for you, but I needed a \r and no \n. That's got it working. Thanks!
You should look at the advanced serial write and read to see how to set it to automatically append a character when doing a write.
10-05-2009 06:44 PM