-
Hi all, I am using SerialReadLine node reading Arduino serial data and save it to csv, I am wondering if I can visualize the data from SerialReadLine into a graph that I can track in realtime, the data are three numbers (in char form) changing by time. Another minor question is that I found if I use CreateSerialPort--SerialReadLine--CSVWriter, then there is only one output from Arduino, just curious if anyone encounter the same situation. Many thanks if anyone has some experience! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Just to clarify, are the 3 numbers on the same line (for e.g. 2 6 5)?
The |
Beta Was this translation helpful? Give feedback.
Just to clarify, are the 3 numbers on the same line (for e.g. 2 6 5)?
If it's just a single number, you can use the
ExpressionTransform
operator to convert theString
to anInt32
orDouble
and then that should be viewable as a graph.If you need to split the
String
you can use theParse
operator to parse theString
into separate numbers. You can use something like%i %i %i
for the pattern (if your number is an integer, if not use%f
). If you do that you don't need to do the type conversion. The graph forParse
will have all 3 numbers overlaid, or you can split the output to view individual numbers.The
SerialReadLine
output should be a single output (just a string), so it should be …