Shop OBEX P1 Docs P2 Docs Learn Events
Upload Blocks file? — Parallax Forums

Upload Blocks file?

I tried to upload the pixy2.svg file (30028-Pixy2_Demo_2020-18-01.svg) to Blockly using "upload blocks file" from the dropdown menu. That opened a window that allowed me to browse & select the svg file and gave the option of replacing or appending the file. I selected the file and it told me "The selected file appears valid." good. I selected "replace".

Nothing happened. I thought that since it was a large file that it might take some time, so I went off and did other things. Came back - still nothing.

So I wrote a short Blockly program (increment, loop and print a variable to the terminal) verified that the program complied and then used the download the blocks file option to my computer. Then went and tried the upload blocks file on that short svg file. Again nothing happened.

I have the latest version of the client software (v0.7.5) and tried both firefox and chrome browsers. I am connecting to the "http://blockly.parallax.com/" site through the client software.

Any ideas?
Thanks
Tom

Comments

  • Ken GraceyKen Gracey Posts: 7,386
    edited 2020-02-24 15:49
    Yes, use https://solo.parallax.com and try this again. The file was created on Solo (the cloud-only version http://blockly.parallax.com will be shut down this year). It will prompt you to install BlocklyProp Launcher, which you will need to do.

    Success?

    Ken Gracey
  • Ken,
    Thanks.
    I was able to get the program to upload.
    When I click on the verify button, I get a lot of errors. I have to look through them to try to see what is happening.

    Tom
  • We have a bug in BlocklyProp where it's not remembering the states of the initialization blocks. I'm pretty sure this is the problem.

    Go to the serial initialization block, set the states to 0 for Tx/Rx, then to the Tx/Rx pins you want to use.

    Fixed?

    Ken Gracey
  • Ken,
    The error was that wherever an array-variable-element block was used, the variable name was the default "list". "list" was never initialized.
    However, array "pixybuf" was initialized so I figured that was what should replace "list". I made all the changes, and it compiles successfully.
    I still have to do the hardware build.

    Tom
  • Hmm. This sounds like a familiar error as well.

    I'll have the BlocklyProp boffins (a name Phil coined) look at this thread.

    Send me your e-mail address and I'll share a tutorial with you kgracey@parallax.com. It'll help you get started (we've not posted it yet on Learn).

    Ken Gracey
    kgracey@parallax.com
  • Ken,
    PM sent

    Thanks
    Tom
  • Ken,
    Thanks. I got the pdf and will spend some time understanding it.
    Tom
  • I believe that this issue was corrected in Solo v1.4.1. Here is the GitHub issue: https://github.com/parallaxinc/solo/issues/175. We have seen a few issues around variables and arrays over the past few weeks. We should have them all stamped out with the next release, v1.4.2 which should arrive sometime tomorrow.
Sign In or Register to comment.