05-24-2024 01:55 AM
Hey so I'm trying to use some sensors from an arduino I own, basically temperature, acceleration and orientation, I made it so it sends all the information packed like this
From there I tried breaking that string into the different numbers and then using those for the graphs and other stuff, but every time I tried something different it didn't work, I have no idea what knowledge I'm lacking from all the documentation all over the place or from what I could learn or do better
Solved! Go to Solution.
05-24-2024 02:16 AM - edited 05-24-2024 02:21 AM
Hi cinco,
"Spreadsheet String to Array" could be the answer for extracting measurements from the received string.
Try that in first place, then see if you wouldn't need another patch (for example on VISA Read).
05-24-2024 09:30 PM
Yeah so that's the solution, I input the string and it sends out all the different numbers in an array, but since I am sending all the data from serial into a string at spits it out in lines and lines and lines, the spreadsheet data to array function doesn't take in the newest line and uses that, but when I separate a string of data and push it, it works, the problem is that I have no idea how to constantly separate the newest string of data onto the function, send it out and continue the loop
05-25-2024 08:28 PM
Hey yeah so I solved it all, but why did you use %.2f as a way for it to be represented? instead of %f, because that doesn't work, sorry for the inconveniences!
05-27-2024 02:33 AM
For no particular reason, just the habit of specifying the exact format of the input string.
Which doesn't work in your case ? "%f" or "%.2f" ?