fathitarek / pulse-sensor

Automatically exported from code.google.com/p/pulse-sensor
0 stars 0 forks source link

Processing code no longer works #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download Processing IDE
2. Open Pulsesensor code for processing
3. Attempt to run the P_PulseSorsor_06 code

IDE claims there is no function 'port.readStringUntil(char)' in Serial.

What is the expected output? What do you see instead?
The app to run!

What version of the product are you using? On what operating system?
06 (or any earlier) - on Processing 2.1 

Please provide any additional information below.

Original issue reported on code.google.com by jon.bart...@gmail.com on 10 Nov 2013 at 12:31

GoogleCodeExporter commented 9 years ago
I had the same problem.  

Original comment by emilysh...@gmail.com on 8 Dec 2013 at 2:06

GoogleCodeExporter commented 9 years ago
I found the problem and fixed it.
The problem is the Processing 2.1 release omitted the ReadStringUntil in Serial 
library. 
I tried downloading an older version of Processing - but the downloads were 
broken for me - so I gave up and thought "no point going backwards!" - so I 
wrote my own ReadStringUntil routine.

I added a function into the SerialEvent file - and it is attached - so all you 
need to do is download it and replace the old one in the Processing sketch 
folder.

You'll see some old debug statements I used (commented out) too to verify it 
was working.

I hope this helps anyone/everyone !

Original comment by jon.bart...@gmail.com on 8 Dec 2013 at 10:28

Attachments:

GoogleCodeExporter commented 9 years ago
Thanks for your help Jon! I downloaded your file, yet I'm still getting the 
same error response as before

Error, disabling serialEvent() for /dev/tty.usbmodem1421
null

Any ideas?

Original comment by matisei...@gmail.com on 15 Apr 2014 at 12:36

GoogleCodeExporter commented 9 years ago
hmm, Im guessing - but that sounds more like a problem with the access to the 
serial port itself on the (Linux?) machine you're using.
Are you using the 'PulseSensorAmpd_Processing_1dot1' code  from Github ?
What version of Processing (https://www.processing.org/download/?processing) 
are you using ?

I see there is a Processing 2.1.1 (out Jan 2014) that (according to the release 
notes) resolves the missing function in 2.0/2.1 - so my code change is no 
longer needed....
(I have to say I havent tried it though)
Good luck!

Original comment by jon.bart...@gmail.com on 15 Apr 2014 at 7:29