SLK Posted October 31, 2016 Share Posted October 31, 2016 Hello together, I have got following problem: I am trying to handle some data which I receive from a serial device. Sending request to the slave works so far. In the monitor I am able to see the Response string: Rx (15:43:25.533): \xC1\x14\x00d\x00\x00H\x07\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x08\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x14\x11\x1F\x00\x04\x00\x00\x00`\x83 The values displayed here are valid. I have problems with further accessing/handling this data. I try to assign it to a string in following way: private.strOut = Device.RS485_Test.Read(46) The resulting string is 46 characters long. (checked with the GetLength function). The values it contains, don't really make sense - I guess I have to convert them? Subsequently I want to to use this string for accessing a particular value (e.g. the 35th character in the string) My goal is to assing this value to a channel and to log it (with a time stamp). Do you have any idea/solution for me? Best regards and thank you in advance SLK Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.