Asked
— Edited
Hi. I'm looking for a little help. I have a script I just wrote, but when it executes It doesn't fully run and the audio file the script has gets stuck in a loop and I have do disconnect the EZ-B's power to get it to stop. Closing EZ Builder doesn't stop the loop. What could be causing this?
Cheers.
Is the RGB animator connected properly? Is the address in the control OK? If an I2C command is sent and the I2C device is not connected, doesn't understand the command etc. then it will cause the EZ-B to hang, this is how the manufacturers of the EZ-B's processor designed the processor.
Code:
The following script works absolutely fine...
Code:
but the moment I put the following ControlCommand() at the end of the script (or anywhere within the script too) and run it, the audio plays normally for a couple of seconds the start to play a random small section of the audio over and over.
Code:
The red LED on the EZ-B4 comes on and stays on with a solid light, and becomes unresponsive. I close ARC and the repeating sound byte continues to play. I disconnect and reconnect the power and all is well until I run this one script again. I remove the CC script and the rest of it works. I have never come up against this before and the whole script (above) actually did work yesterday. Just part of my bad day today my original project which had this working somehow managed to lose 80% of the controls (I think that was my fault) so I have had to redo the whole project again from scratch (and saved to the cloud). its annoying that this happens and even more so when the EZ-B freezes. It's weird how my other project script with these 2 controls work. *confused*
This what it should be (just red)
but this flashes up when the script is running.
I can only assume your project may have some bad scripts in it. To make life a lot easier feel free to email your project my way (email on my user details) and I'll look at the overall picture to see if I can spot any bad parts in there.
Thanks for the offer and video demo. I'll get that sorted and send you the project tomorrow. One thing I have noticed (don't know if it's connected to the issue) is when I play one specific action on the animator, when I hit stop the animation stops but when I exicute another action it will take about 10 seconds to start. Anyway I'll put the details of which one it is in the email. (Btw, liked the Alice Cooper tune in the vid. One of my fav's).
Thanks again.
I'm running a HP 650 notebook. 6g RAM, 320HDD (167 free space) on windows 7 64bit home premium. The only thing running in the system tray is AVG anti virus. I deleated a lot of the bloatware some time ago and did a disk clean up recently. I mentioned before that I have a script which uses an animator action and audio file and both play nice.
In regards to starting animation actions, Other actions I exicute play straight away and stop straight away. But the one I have trouble with has a "repeat action". Don't know if that's causing the exicute delay? Very strange.
Emails sent. Good luck.
Have you had a chance to have a look at my project I emailed you yet? I just wanted to mention if you haven't had a chance yet, while having a play around with my project last night I deleated the "round eye blink" action from the RGB animator and it has solved the problem of freezing the EZ-B. So I'd love to know what was wrong with that action to have caused that. Im still getting a little bleed through from other actions I have, not as bad but still a little annoying.
Hey dude. I'm looking to mark this thread as resolved. Just wondering if you had a chance to look at the project I emailed you?
Please can you help me. I see this thread was not marked as resolved. I am experiencing the same problem. I am running the JD example and then running the dance routine : "Haunt me". This worked for the last week. But , now, I am getting the same problem the user mentioned in the beginning on the thread. The script is stuck in a loop. And I have to turn off my JD robot. An as the user mentioned : "funny thing it worked a couple of days ago". I have checked my system and there is no programs running in the background and there is no "bloatware". I have also fully charged my Robot. I am satisfied that my JD robot is working on other examples. Many thanks, Ian
I found out what my problem was but forgot to mention it here. My problem was due to a faulty i2c wire that was causing the EZ-B to freeze (constant red light illuminates). I replaced the ribbon cable at it worked fine after that. The slightest little problem and the i2c port won't play nice. Try reseating the ribbon cable at both ends of the connection and thy again. If you still have problems, try replacing the cable.
Your welcome. Glad you got it sorted.