|
Re: Scenarios for Learning Java
Quote:
Originally Posted by sthreet
Is it alright if I ask how one language can communicate with another directly? I mean, I could make a file of some sort (txt?) and get the data from it, if both languages supported that, but something that would work better in realtime?
|
You can usually use TCP sockets to communicate between devices in general, and pretty much all modern languages support sockets.
Alternatively, you could use an existing protocol written on top of sockets, such as NetworkTables (comes with FRC robots and usable from at least C++ or Java, although there may be a LabVIEW interface as well) or a team's released network communication library (My team, for example, wrote an open source communication framework, although that's only in Java. I'm sure that you can find some others if you look through the code releases from various teams that have been popping up in the various Programming forums here.)
__________________
Software manager alumnus. Developer of the CCRE, a powerful robot code framework based on dataflow and composibility.
Refer to as she/her/hers. Years of FRC: 2012, 2013, 2014, 2015, 2016. FLL for a few years beforehand.
Team 1540: The Flaming Chickens | Portland, Oregon | Twitter | Facebook
Last edited by Cel Skeggs : 10-05-2014 at 02:06.
|