- This topic has 2 replies, 1 voice, and was last updated 3 years, 9 months ago by
andyt.
-
AuthorPosts
-
January 16, 2019 at 11:19 pm #8645
Dr John
ParticipantDoes the crumble support multiple threads??
We wanted to stop a complicated program after a certain time. My students (scratch wizards) suggested adding a second start block, with a ta wait that signals the main program when to stop.I had never thought of this. Duly humbled, I gave it a go. We were able to drag two program start blocks onto the screen, and assemble the code.
It didn’t work. Either one thread ran, or the other. It depended on which was on the program first.
Question: does crumble support multiple program start blocks?
If not, then a warning should be given for programs containing more than one program start block.January 17, 2019 at 5:10 am #8652Dr_Alex
ParticipantThe Crumble doesn’t support multi threading as far as I know. I don’t think this was changed in the last update.
February 28, 2020 at 1:24 pm #21005andyt
ParticipantYes that would be a good feature – even if limited in number of multi threads. I am brand new to crumble and was trying to help a class with the RAE Code and Rescue pack to make a helicopter rescue winch (controlled by a momentary switch with short & long press detection) and then add the ultrasonic sensor to stop the winch if the “person” on the end approached to near. I too simply tried two program start blocks to find only block ran. It took quite a bit of un-necessary coding to check the sensor and set a variable using inline code to get it all to work.
-
AuthorPosts
- You must be logged in to reply to this topic.