Asked — Edited
Resolved Resolved by DJ Sures!

Cant Initialize Uart Port In ARC &Amp; V4 Ezb

I've been working on sending position commands to my Kangaroo X2 through UART port 0. Using the Example Project "UART Peripheral" I can initialize UART port 0 just fine and send commands. I connected to my V4 EZB and initialized it with the already written script. I was able to send commands and move my motors through the new project example. When I start up my own old project I've been working on for years and install a new EZ Script and write in the same initialization command I get an error in the debug window;


 1: UARTInit(0, 0, 9600 )
> Error on line 1: This feature is only available for EZ-B v4
Done (00:00:00.1440082) 

Any idea on how to overcome this issue or what I could be doing wrong? It's gotta be something with my old project. I do have the latest downloaded ARC available. confused


ARC Pro

Upgrade to ARC Pro

Stay at the forefront of robot programming innovation with ARC Pro, ensuring your robot is always equipped with the latest advancements.

PRO
Synthiam
#1  

Are you connected to the EZ-B v4 when that script runs?

#4  

OK solved, I had the board index pointing to the wrong board. In the Example Project I had the connected board as 0. In my project it's actually 1. So the proper code is:


UARTInit(1, 0, 9600 )

@DJ, I see you came up with the answer while I was down trying this out. Looks like I aspire to greatness at times (by accident mostly ;) ). Thanks for being there for me though.

PRO
Synthiam
#5  

anytime:) glad to hear you discovered the answer