We’ve now been using IQ Blocks for a couple of weeks in class and there was difficulty with programs not Downloading
I have discovered that if there is a ‘Break’ block at the end of the Program, the above error occurs.
Are we doing something wrong? What we are looking for is a ‘final’ block that finishes the Program (so that the Robot is no longer ‘running’ and the display returns to the initial Menu Screen).
(On that note, every time that we download a program, the Menu goes in to Settings (rather than stay on the initial Programs screen) - would this be another bug?)
“break” commands are used to escape out of repeating conditional or loops. For example, you could use a “break” command to end a “forever” loop. “break” does not do anything related to controlling motors or terminating the project.
Using a “break” outside of a looping structure will generate a compiler error.
Glad you found the help! Its a great resource to learn what each block does.
No “end” functionality as of today… the original intent behind this is if the user wanted to print a message or display a Touch LED color to signify the end of their program, they would be able to do without having to worry about making some kind of infinite loop at the end of the project. Once the program is “ended”, the screen is cleared and all sensor data / states are lost.