-
Josef
Thanks a lot @ddw_music.
When I run your patch, I keep getting the message "append: couldn't find template." Is it possible that the patch is receiving data in an unexpected format?
-
Josef
Hi everyone,
I'm sending a continuous stream of 6 float values from an Arduino (flashed onto a sensor) via USB into Pure Data. The Arduino is outputting the values, space-separated, like this:
1.23 4.56 7.89 0.12 3.45 6.78
In Pure Data, I'm using [comport] to receive the data, but when I connect a [print] object to it, the output looks like this:
print: 10
print: 49
print: 48
print: 54
print: 46
print: 51...What’s the best approach for buffering incoming serial data until a full line is received (e.g., ending in \n), and then splitting that into individual floats?
Any help or patch examples would be much appreciated!
Thanks in advance,
Josef