Hi,
Is there a way I could send threw Labivew using serail communicatio (or any other SW) and still be able to see the data in the serial monitor so I could see what the arduino gets?
Thanks,
Gil
Hi,
Is there a way I could send threw Labivew using serail communicatio (or any other SW) and still be able to see the data in the serial monitor so I could see what the arduino gets?
Thanks,
Gil
Assuming the labview output is in TTL format (not rs232) you should be able to connect the labview tx line to the arduino rx pin, connect the labview ground to the arduino ground, and use the below code. The arduino will receive the labview input and echo it out the tx pin to the serial monitor.
String readString;
void setup() {
Serial.begin(9600);
Serial.println("serial test 0021"); // so I can keep track of what is loaded
}
void loop() {
while (Serial.available()) {
delay(2); //delay to allow byte to arrive in input buffer
char c = Serial.read();
readString += c;
}
if (readString.length() >0) {
Serial.println(readString);
readString="";
}
}
Hi,
Labview is RS232 - I think so, I'm connected via the arduino usb line.
So do I have any options?
So do I have any options?
Get an rs232 to TTL converter. You can also use an NPN transistor and two resistors to do the conversion. The below shows how I've done the conversion.