Forum.

 

Need help or have a question? Join the conversation in our community topics and share your ideas, tips, or challenges—we’d love to hear from you! Before posting, be sure to check our

 

?

Left over results f...
 
Notifications
Clear all

[Solved] Left over results from previous programs

4 Posts
2 Users
1 Reactions
4,843 Views
(@ictlabteacher)
Active Member
Joined: 3 years ago
Posts: 8
Topic starter  

Hellow again. I just found out that after downloading a program there is not an automatic erase of previous program's results. For example if i download a program that turns of the LED lights of the ring and then download a new one that plays a song, the lights are staying on. Why is that happening and how to avoid that;



   
Quote
(@ictlabteacher)
Active Member
Joined: 3 years ago
Posts: 8
Topic starter  

i meant turns ON the LED lights



   
ReplyQuote
Ivan Artiles
(@ivanr3d)
Active Member
Joined: 3 years ago
Posts: 13
 

Hi, it actually erase the previous program you downloaded, but it is not change the state of certain components. In the case of lights such as the top ring lights or ultrasonic lights, these components keep their state while they are powered on. So, if in your new program you don't explicit tell the robot to turn off the lights, it will not happen. The best way to "avoid" that is always starting a program turning off lights if you are using them during the execution of your code. 

In the Events section of webcode you can see a block that is actually three blocks joined to stop motors and turn off lights... these blocks are useful in the start of any program exactly to avoid that the new program start with a previous state. 



   
Camilo reacted
ReplyQuote
(@ictlabteacher)
Active Member
Joined: 3 years ago
Posts: 8
Topic starter  

Thanks a lot.



   
ReplyQuote
Scroll to Top
This will be available with the release of this product.