01-20-2023 01:09 AM
I connected Arduino and myRIO via UART, there is successful communication between them. I've connected I2C sensors to arduino and I'm reading these sensors' data from Arduino to myRIO, not writing anything to Arduino. The baud rate for both devices have been set 9600.
My labview program is attached below.
The problem is that there is correct data transfer between both only when i set a delay value of around 100ms in Arduino and 150ms in labview program. If i set the labview program delay to zero, data transfer does happen but not properly. The 'string data' is fine but in the 'depth sensor' and 'IMU', there is a 0 value after every 3-4 incoming values. And sometimes even the values are not correct.
Is this because of the difference between the data execution rate between myrio and arduino? Or is it anything related to UART communication?
01-20-2023 08:13 AM
I probably have no business rendering an opinion here, because I've never worked with Arduino's, but have worked with VISA devices and myRIOs, and have also had very mixed feelings about Express VIs. Here are some comments:
Bob Schor