This week's book giveaway is in the Java in General forum.
We're giving away four copies of Event Streams in Action and have Alexander Dean & Valentin Crettaz on-line!
See this thread for details.
Win a copy of Event Streams in Action this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Knute Snortum
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Piet Souris
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Arduino and JavaFX

 
Ranch Hand
Posts: 119
Mac Eclipse IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello! I'm working on a project that involves the arduino, along with a couple sensors, and Java. I'm constructed a very primitive looking JavaFX application that will read data from the arduino sensors in realtime and graph that data in charts. I've scoured the internet looking for resources and all I've really been able to find examples of other people's projects. This is very new territory for me and while it is possible to copy and past other's work, I was hoping someone might have a recommendation for a text that discusses port communication with java.

I've downloaded all the necessary libraries to communicate with the arudino and serial port.
 
Derek Smiths
Ranch Hand
Posts: 119
Mac Eclipse IDE VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Posted below is my code so far. Once I started to work on the part involving the SerialPort, the code no longer works. I've tried taking it a step at at time, but I'm now running into the issue of displaying the serial data on the chart as the data is read from serial port. I've got several errors loading displaying, but I believe the brunt of the issue is coming from the ChangeListener event that is part of the solar tab. Any help you could offer would be great. I'm getting a little frustrated, because I've only found one legitimate source of information and it has helped but at this point in the program, I am veering off into different territory than the walkthrough I've been using.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!