I'm having difficulty with the ChangeListener portion of my code. My goal is to read data (wattage generated) from a small solar panel and stream this data to an XYChart.Series in JavaFX. My xAxis of the chart range is 0-15 (hours) which I would like to be represented as 6a.m. to 9 p.m. for the xAxis tick marks. Is it possible to read and graph the arduino data every 10 minutes (6x/hour)? Any ideas on how to go about setting this one up within the JavaFx class?
I have tested my SerialPort connection with the arduino and I am able to readBytes and print them in the compiler. Now, should I create an ObservableList of the following form: ObservableList<XYChart.Series<String, Number>> xyList1 = FXCollections.observableArrayList();
in order to record the data?
If this is not clear, please let me know and I will do my best to clarify. I could really use some help with this.
I have tested my SerialPort connection with the arduino and I am able to readBytes and print them in the compiler. Now, should I create an ObservableList of the following form: ObservableList<XYChart.Series<String, Number>> xyList1 = FXCollections.observableArrayList();
in order to record the data?
If this is not clear, please let me know and I will do my best to clarify. I could really use some help with this.