Skip to content

SampleWrite in processing serial library problem #1421

Closed

Description

@processing-bugs

Original author: MyrdsNet (November 09, 2012 21:16:01)

The code is the samplewrite example in processing serial library.

What steps will reproduce the problem?
1.running the program

What is the expected output? Response of arduino from processing software must light the LED as expected. What do you see instead? Delay in lighting of led,or flickering of led in the arduino board.

What version of the product are you using? Version 2.0b6, On what operating system? Windows 32bit OS.

Please provide any additional information below.
I tried using the software without the delay and the led lights good.But when else functions are used in the arduino to interface with provessing, Leds flicker.Very unstable output via usb communication.

Original issue: http://code.google.com/p/processing/issues/detail?id=1383

Activity

  1. processing-bugs commented on Feb 10, 2013

    @processing-bugs
    Author

    From MyrdsNet on November 10, 2012 09:31:43
    I already was able to fix the flickering of the diode by reorganizing the processing codes. But the DELAY BUG still exists between arduino--processing when the "delay command" is being used in arduino. This is a common problem so if there is anyone who has the solution will be great.

  2. processing-bugs commented on Feb 10, 2013

    @processing-bugs
    Author

    From MyrdsNet on November 10, 2012 21:24:43
    I made some tests in the effects of the delay command in arduino to the serial write in processing. A delay of approx. 15 milliseconds and below does not affect the response of arduino and output is normal. Also,I tested the serial read and there was no problems. I tested serial read with other softwares with arduino and everything is normal.

    By this, I made an assumption that the serial write command of processing is where the delay bug is lying. Not in the arduino above a 15 millisecond delay.

    I hope that the processing developers will be able to fix the bug soon.

  3. processing-bugs commented on Feb 10, 2013

    @processing-bugs
    Author

    From MyrdsNet on November 11, 2012 23:19:26
    I found another delay problem. The delay bug does not only do long delays caused by the delay command in arduino. The delay also causes long delays in codes using long repetitive cycles like the while syntax. Also repetitive 15 millisecond delays also adds to the delay in arduino response. So I think the root of the problem lies on the response of arduino from long repetitive cycles usually affecting time duration.

  4. processing-bugs commented on Feb 10, 2013

    @processing-bugs
    Author

    From f...@processing.org on November 12, 2012 22:28:14
    This isn't a Processing bug, it's an issue with your code which is better handled in the forum.

  5. github-actions commented on Jun 17, 2021

    @github-actions

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

  6. locked as resolved and limited conversation to collaborators on Jun 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions