Jump to content
  • 0

Protocol Hot Swapping Between Multiple UART Lines


Ryne Horn

Question

Hello,

So I am trying to write a script that will be taking advantage of both output and both inputs to the AD2 as well as take select information and send it out to two (for now) serial lines.  I have written a script to control everything I need minus the actual setup of the UART settings, sending the data over the Tx line and receiving over the Rx line. Are there any examples of how to send the data over script as opposed to using the built-in GUI of Waveforms?

Thanks,

Ryne

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Looks like I nearly have it working but when I use this "Send" command it does not append the ending (i.e. Carriage Return).  How do I go about adding this to each command I "Send"?

 

EDIT: I found it.  TO either include or not include the ending you need to put Protocol.UART.Send("Hello", true) or Protocol.UART.Send("Hello", false), respectively.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...