Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

myRIO Serial Connection Using UART Pins

Hi,

 

I'm trying to read some incoming data through the UART pins of the myRIO. The incoming data is in the form of hexdecimal, and I was following a tutorial (https://decibel.ni.com/content/docs/DOC-39303), but when I ran the attached program (SerialWriteandRead), no data was being read.

 

Is there a command I can use to check if the connection is working? I have tried "dmesg", but I don't know what to look for in the list. If the connection isn't there, what should I do? If it is there, how can I read the data?

 

Also, I'm not sure if it's relevant, but I've only connected the UART RX/TX ports and ground. Is power necessary too? If so, what pins should I connect the 3.3V pin of the myRIO to on the Raspberry Pi?

 

I have been struggling with this problem for a while and would be very grateful for any help.

 

Thanks,

Mark

0 Kudos
Message 1 of 3
(5,724 Views)

Hey Mark,

 

The link to the tutorial you gave seems to be broken. Are you using the default FPGA personality on the myRIO? Is the UART express VI configured to use the correct connector of the myRIO? Have you configured the baud rate and other serial configuration values correctly in the UART VI?

0 Kudos
Message 2 of 3
(5,611 Views)
Hey Daniel,

Thanks for your reply. Yes, I was using the default FPGA personality. I was just using the incorrect baud rate, but it's working now. Here is a link to the tutorial I used: https://decibel.ni.com/content/docs/DOC-39303

Mark
0 Kudos
Message 3 of 3
(5,571 Views)