Go to Post I quickly realized that, "hey, I'm looking at a wonderful piece of technology that defies gravity" and I calmed down quite a bit. - Elgin Clock [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 07-05-2015, 14:28
stu54 stu54 is offline
Registered User
None #2458
 
Join Date: Jul 2014
Location: US
Posts: 11
stu54 is an unknown quantity at this point
RoboRio and Serial Data

I have been trying to hook up a MaxSonar range finder to my RoboRio using the ASCII output of the MaxSonar rather than the analog output. I tried both the RS-232 port (using a TTL-to-RS-232 converter) and the MXP port. My programming language is Java for the WPIlib but that should not matter.

It seems like the syntax of the MaxSonar somehow violates the VISA format
that the RoboRIO expects so I get Java crashes when I try to read the serial
port. I don't know anything about the VISA format - I was just trying to read
the simple ASCII string from the MaxSonar. I know if I just use a loopback
to test my code I can read and write the serial ports but that's probably
because everything is using the VISA format deeper in the libraries.

Does anyone have experience with general ASCII devices on the RoboRIO
or would I have to use a device that put out the VISA format (which I
could only do if I passed the data from the MaxSonar though an Arduino
to re-format it for VISA, and that's a lot more trouble than just using the
analog input).

Thanks for any help.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 01:46.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi