Hey everyone! I'm stuck with acquiring the signal from the arduino to labview.. I'm using serial communication with the USB port and the code is this:
int sensorValue;
double Voltage = 0;
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
}
void loop() {
// put your main code here, to run repeatedly:
sensorValue = analogRead(A0);
Voltage = (sensorValue / 1023.0) * 5000;
Serial.print(Voltage);
}
The readings I get from the labview is strange. It doesn't matter whether the AC supply is on/off and the data showed in labview is varying. I'm using ACS712 current sensor to measure.
I'm using this VI to see the incoming signal.