From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

RS485 or RS232 output pins to myRIO

Hi, I need to connect a residual chlorine sensor to myRIO and the sensors i can find has rs485/rs232 output pins. So before buying online, i need to know if it possible to connect a sensor with RS485 or RS232 output pin in myRIO. 

0 Kudos
Message 1 of 4
(2,323 Views)

I haven't used the myRIO before, but it looks like it has UART Tx/Rx channels that can be set up for serial communication using the following express VI.

 

http://zone.ni.com/reference/en-XX/help/373925C-01/myrioreference/myrioref_exp_uart/

 

Another option would be to use a USB to Serial converter and plug in to the USB port on the myRIO.

0 Kudos
Message 2 of 4
(2,299 Views)

@Cy_Rybicki wrote:

I haven't used the myRIO before, but it looks like it has UART Tx/Rx channels that can be set up for serial communication using the following express VI.

 

http://zone.ni.com/reference/en-XX/help/373925C-01/myrioreference/myrioref_exp_uart/

Correct but the serial pins are TTL level. You need to add a RS-232 or RS-485 level  converter between the myRIO and your device. (or connect a device that works with TTL level too).

https://forums.ni.com/t5/myRIO-Student-Projects/RS-232-Serial-to-TTL-Converter/ta-p/3530996?profile....

 

Another option would be to use a USB to Serial converter and plug in to the USB port on the myRIO.


That can work but depends on the USB serial converter used. The Linux version on the myRIO does not support all USB to serial converter chips out there. Converters with genuine FTDI chips should be ok. Others will need some Linux tinkering with startup scripts to assign the right access rights to the auto-mounted device entries or proof unusable, depending on the used chip inside.

Rolf Kalbermatter
My Blog
0 Kudos
Message 3 of 4
(2,253 Views)

Hey guys, I have a RS-232 device, which is connected to my laptop via USB port. It works perfectly when i tested it in NI-max, I was able to send commands and receive data from the sensor.

 

Now I'm trying to connect it to USB in NI-myRIO, but it doesn't work. The USB cable has a FTDI chip. Please let me know what should i do.

 

I also tried UART communication, i have the MAX 232 board, and connected it to RX and TX pins in NI-myRIO, but that has been unsuccessful as well.

0 Kudos
Message 4 of 4
(1,901 Views)