Hi I'm trying to send a float array from arduino to processing as a string with commas separating the variables. I know how to receive the data and split it. My reasoning is that I am already sending serial data from my arduino using the Serial.print and Serial.println but this is slowing down my program extremely which is running a stepper motor and I can't attain the speeds I want when using the "print" statements, so I was looking into using serial.write instead. I don't want to use a for loop to send them as bytes because the order keeps getting messed up for some reason.
i am sending three dynamic variables variables(sensor data) ranging from 30 -1200 and I basically want to send it as, example ("x-val,y_val,z_val") and split the string values into an array which I can already do.
I looked into the sprintf but for some reason, I'm not getting it