Separating two print values

Hey everyone! I'm using the arduino to read two analog inputs to labview, but the value through serial com is displaying both the values at the same time on labview. So let's say value0=0 and value1=1, it will display just one value that keeps changing from 0 to 1!

Here is the code:

const int analogIn0 = A0;
const int analogIn1 = A1;
int RawCurrentValue= 0;
int RawVoltageValue= 0;
float Voltage0 = 0;
float Voltage1 = 0;

void setup(){
Serial.begin(9600);
}

void loop(){

RawCurrentValue = analogRead(analogIn0);
RawVoltageValue = analogRead(analogIn1);

Voltage0 = (RawCurrentValue / 1023.0) * 5000;
Voltage1 = (RawVoltageValue / 1023.0) * 5000;

Serial.println(Voltage0);
Serial.println(Voltage1);

}

How do I separate the two println values so that it will display something like 0 1 or 0 , 1 ?

Try this:

Serial.print(Voltage0);
Serial.print(", ");
Serial.println(Voltage1);

And by now you should know to use code tags...

Thanks for the replies!
Then how do I check what's the sample rate?

by adding this snippet (code tags are not difficult)

[code]
Serial.print(millis());
Serial.print('\t');
[/code]

robtillaart:
by adding this snippet (code tags are not difficult)

[code]

Serial.print(millis());
Serial.print('\t');
[/code]

Thanks!
So I just have to open the serial monitor and I can see what's the sample rate?

So I just have to open the serial monitor and I can see what's the sample rate?

One of the great things about Arduino: you could have typed that in, uploaded the program and seen the result, far faster than if you posted a question on the forum and waited for an answer.

Or don't you have an Arduino?

jremington:
One of the great things about Arduino: you could have typed that in, uploaded the program and seen the result, far faster than if you posted a question on the forum and waited for an answer.

Or don't you have an Arduino?

I have an arduino but it's in my school lab so I can't get to try it! Haha so I assume it will display the sample rate on the serial monitor