That is exactly what I ended up doing:
#include <Wire.h>
int tmp102Address = 0X48;
void setup() {
Serial.begin(115200);
Wire.begin();
digitalWrite(13,HIGH);
analogReference(DEFAULT);
}
void loop() {
//Interacting with TMP102 Temp Sensor
Wire.requestFrom(tmp102Address,2);
byte MSB = Wire.read();
byte LSB = Wire.read();
int TemperatureSum = ((MSB << 8) | LSB) >> 4; //it's a 12bit int, using two's compliment for negative
float celsius = TemperatureSum*0.0625;
//Data to send to LabView:
int aValue = analogRead(0);
int bValue = analogRead(1);
int cValue = analogRead(2);
int dValue = 400;
Serial.print("a");
Serial.println(aValue);
delay(50);
Serial.print("b");
Serial.println(bValue);
delay(50);
Serial.print("c");
Serial.println(cValue);
delay(50);
Serial.print("d");
Serial.println(dValue);
delay(50);
Serial.print("T");
Serial.println(celsius);
delay(50);
}
I now have 4 analog sensors plus a TMP102 i2c temp sensor.
In Labview, I used the replace substring function to delete the first character of each data set. This was the "a", "b", "c", "d", or "T". I read that replaced string to see what the character was and then assign the remaining string data to it's corresponding chart/thermometer. There is probably an easier way to do this, but this is what I came up with and it works. Thanks for everyone's help.
P.S. If you use this VI you'll notice the 4th sensor chart is inverted to correspond with the sensor that I'm using. This is easily adjusted in the y axis properties.