seperating two float values

I am transmitting three float values without tab. In PC side looking for a method to provide space between numbers. Please suggest method.

eg: 0.260.350.45--- transmit from arduino

In PC side require 0.26 0.35 0.45

gary36:
In PC side require 0.26 0.35 0.45

That's your solution right there! :slight_smile:

ie tell the arduino to transmit after each float number! :smiley:

Serial.print(one) ; Serial.print(' ') ;
Serial.print(two) ; Serial.print(' ') ;
Serial.println(three) ;

PS You are not sending floats to the PC. You are sending ascii representations of decimal numbers.

Why not transmit a separator between the values ? If you were to transmit a space then what the PC receives would be exactly as you describe.

Please post the complete Arduino program that is sending data in such an idiotic format

Putting a space Serial.print(" \t") between numbers is effecting by sampling rate. So I need a solution

gary36:
Putting a space Serial.print(" \t") between numbers is effecting by sampling rate. So I need a solution

Please post your CODE

Can you increase the baud rate?

If not, it looks like you're always sending two decimal places. So make your PC side parser read digits until it sees a decimal place, read two more and that's a completed float. Same for subsequent ones.

Still a bad idea though because if you get any corruption, you've no good way to get back in sync.

gary36:
Putting a space Serial.print(" \t") between numbers is effecting by sampling rate.

So is sending the decimal point.
(sp. "affecting", "separating")

From the three examples shown, you can convey the same information using two ascii characters per number.. However, if you cannot modify the pc software to re-format that, then you will have to format it in the arduino - e.g. add the leading zero, decimal point and space between numbers. If the arduino/interface is too slow to modify the number format then you'll need some other solution.

gary36:
Putting a space Serial.print(" \t") between numbers is effecting by sampling rate. So I need a solution

and we need to see your code