• 0
Sign in to follow this  
Ryne Horn

Protocol Hot Swapping Between Multiple UART Lines

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

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

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.

Edited by Ryne Horn

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this