01-06-2020 12:22 AM
Hello,
We are working on our project in which we transmit readings of a photo diode using a set of zigbee and arduino, during reception of data the Xbee is connected to pin 0 and 1(rx. and tx. ) of arduino. We can't interface it and view the readings on labview. We tried using VISA for serial communication but there is some flaw and it can't seem to receive the readings.
01-06-2020 01:11 AM
Pins 0 and 1 of the Arduino are connected to the USB communication lines. You can't communicate on both at the same time.
"On Uno, Nano, Mini, and Mega, pins 0 and 1 are used for communication with the computer. Connecting anything to these pins can interfere with that communication, including causing failed uploads to the board."
https://www.arduino.cc/reference/en/language/functions/communication/serial/
You can set up other pins to be used as serial communications using the SoftwareSerial library.
01-06-2020 10:44 PM
Thank you sir.