devinaconley / arduino-plotter

An Arduino library for easy graphing on host computer via serial communication
MIT License
186 stars 31 forks source link

Listener opens just a grey screen #37

Open Nicolaslarag20 opened 3 years ago

Nicolaslarag20 commented 3 years ago

Hi, just found out your code. It seems awesome! The only issue is that it doesnt work for me.

I'm using a Windows 10 machine with Arduino IDE 1.8.13 and an arduino uno.

At first I thought that I was messing something up on my code, but then i tried using the "quick_start" example and its the same. The listener exe opens but I can only see the whole window in a light grey color. Tried running it as an admin and nothing changes.

I unistalled my java and then reinstalled and nothing.

Thanks!

Captura de pantalla 2021-04-16 141415

Badkast commented 3 years ago

I`m currently having the same problem here, did you find a solution yet?

devinaconley commented 3 years ago

@Nicolaslarag20 @Badkast are you able to see text in the arduino debugger output?

phdv61 commented 3 years ago

Go and see issue #38 and the work around I suggested. Rebuild the project with the 'java embeded' option ticked. There is an issue with the serial port between processing and java making the app crash if not run on the same PC they were built on.

khanasif786 commented 3 years ago

Open .pde file in the listener directory with processing. It will say to put that file in a folder named listener before exporting, just click "ok" and then cut graph and listener (java files) to that folder where .pde file is put by the processing application. Then in processing application go to file -> export -> check "java embedded" and then export. The app should appear in a newly build directory (in my case its name is application.windows ). run the newly built listener.pde file there and this time it should work.

leCandas commented 2 years ago

One addition to above These steps does not work for processing V4 and I guess you don't have listener.java anymore. Try steps with Processing V3 and ignore listener.java then it works.