Terminal over loaded ?(Solved)

msiriwardenamsiriwardena Posts: 198
edited 2019-03-15 - 17:00:04 in Learn with BlocklyProp
I have a very simple program and it has only one Terminal block " Terminal print number
(Direction- variable)mas Decimal then a new line"
The program initially prints the number but after few times the error message appears
"Your program is sending too much Data at once. Try adding pauses or sending less Data."

Screen shot of the program is attached.

Any help is appreciated

Thank you,

Siri

Comments

  • I don’t know blockly but since there has not been an answer I’ll have a go.

    Your code to display on the terminal is in an infinite do loop with no exit.
    That loop outputs data then a 50ms delay and then clear screen.

    Yo cannot continually output to a terminal program without reasonable delays for the terminal program tokeep up. You need a much bigger delay so try 1 second (= 1000ms).
    Next, you don’t want to clear the screen after you output do you? If the delay is too short you will never see the data because it will get cleared.
    My Prop boards: P8XBlade2, RamBlade, CpuBlade, TriBlade
    Prop OS (also see Sphinx, PropDos, PropCmd, Spinix)
    Website: www.clusos.com
    Prop Tools (Index) , Emulators (Index) , ZiCog (Z80)
  • Dr Siri - when you post BlocklyProp code, give us a Public link to the project. We can then open it, run it ourselves, check the C code it generates and help you a whole lot more.

    Ken Gracey
  • What Cluso said is correct.

    Eliminate the Terminal Clear Screen block since it wipes the display clear, in such a tight loop, that you won't see any data. And put a small pause in there - maybe 100 ms.

    Also, I notice that you are using XBee modules to send and receive data. This becomes a lot of fun!

    Ken Gracey
  • Siri, this will be helpful too.



    Ken Gracey
  • Ken GraceyKen Gracey Posts: 6,420
    edited 2019-03-13 - 21:14:04
    Check this one too. Parallax Serial Terminal is a far more robust terminal for applications where you've got lots of data streaming into it:



    Ken Gracey
  • @KenGracey,@Cluso99

    Thanks the help

    Siri
Sign In or Register to comment.