LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

myRIO and Arduino communication problem

I have two I2c sensors connected to Arduino nano. I've uploaded the program on the IDE and both values are coming correctly.

I am doing UART communication between Arduino and myRIO. 

The problem is that after every 4 to 5 values, I get a zero on labview, whereas there's no zero on the Serial Monitor of Arduino. Also, both values are getting swapped after a certain interval. Both the problems seem to be inter-related.

 

Also why do I have put a delay in the labview program of UART communication? (saw that in a YT video but don't understand why). The data won't show without the delay. 

 

Connection of myRIO to PC is through ethernet, while that of Arduino nano and PC is through USB.

 

Connections of Arduino and myrio: myrio Rx pin to Arduino Tx pin, and both grounds connected. Havent connected myrio Tx pin to Arduino Rx since Arduino only send data

 

Labview and arduino programs are attached below.

Download All
0 Kudos
Message 1 of 2
(1,300 Views)

I don't know if this applies directly to MyRIO but most serial communications problems can be solved by watching this video.

 

VIWeek 2020/Proper way to communicate over serial

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 2
(1,267 Views)