I have a python script where I am building a string one line at a time. I add the '\r\n' at the end of each line of a string with exception of the last line. This string gets written into a tag in Ignition SCADA. When I examine the contents of the tag, where the '\r\n' should have created the carriage return/new line all I have is a space (' ').
Any idea why this is behaving this way and what I can do to get the string to format correctly?
Thanks!
Edit: Here's the code:
myStr = ''
for i in range(1, 10):
myStr += 'This is line ' + str(i) + '.\r\n'
resp = system.tag.write('myStrTag', myStr)
print myStr