Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

VISA Serial Read and Write on same MyRIO Channel

Solved!
Go to solution

I'm working on a project where I'm trying to get three ground drones communicating with a central control computer (that runs LabVIEW also) using XBee antennas on NI MyRIOs to do a CRC. I would like to keep transmitted messages as simple UART serial strings. I was wondering if there was a way to configure a UART port on a MyRIO to where it could send and receive on the same channels automatically through the XBee antenna.

 

I found this example vi (serial_exercise.vi) (http://www.ni.com/example/27423/en/) to where it sends and receives the message on the same port, but its dependent upon using a boolean to switch between sending an receiving messages.

serial_exercise_vi.JPG

0 Kudos
Message 1 of 2
(3,578 Views)
Solution
Accepted by topic author thedawg1993

thedawg1993,

 

I was able to find the following resources that may be helpful in figuring out how to set this up.

 

MyRIO UART

 

Note that in the above discussion, you need to make sure to connect the TX and RX pin on MXP.

 

NI myRIO: UART serial communication

 

Regards,

Alyssa H.

National Instruments

0 Kudos
Message 2 of 2
(3,537 Views)