Gorkhali Posted April 10, 2020 Share Posted April 10, 2020 Hi, My data column has 10 fields consisting of a combination of ASCII text, 4-digit hex and 8-digit hex numbers separated by a comma. I am trying to parse the data by am not successful. However, fixed-point decimals are getting pursed easily. For instance, in my data line separated by commas, the fifth data field is an 8-digit hex integer ("4857f0f1"). To purse that data I'm using the following script. global String datain device.Instrument1.Purse() While (1) try datain = device.Instrument1.ReadUntil(13) Data1.AddValue(evaluate("0x"+(Mid(datain,5,9)))) delay (1) catch(1) endcatch EndWhile Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.