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 ARC doesn't stop the loop. What could be causing this?
Cheers.
I haven't tried it on a new project yet, but here's the thing. I have a script using another sound file and another RGB action and they play nice together...
The following script works absolutely fine...
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.
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
I would say it's likely to be some bad code somewhere however I only had a quick scan over the last post you made. When I get chance I'll look closer.
Thanks Rich. Another little thing I'm coming across with the first scrip in post #10 is that one action seems to bleed in to another. Adjusting the sleep() seems to solve it (for the most part), but still does it every now and then confused. Again, I appreciate you looking in to this (or anyone else for that matter who might of experienced this.)
This what it should be (just red)
but this flashes up when the script is running.
Just to quickly mention that I don't seem to have any issues with the RGB Animator and the Soundboard working together (I found time to play a little tonight, something I haven't really had chance to do since getting the V4, robots, animator etc.). This was done using both a script to start the animator and soundboard plus a script on the soundboard to change the animator.
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.
@Rich.
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.
steve, what kind of computer are you running this on? It sounds like a performance issue. I also would check how many programs you have running? In your System Tray (that's next to the clock) are a list of programs that are running in the background. Some laptops come with a bunch of bloatware, which affects performance.
@DJ.
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.
@Rich.
Emails sent. Good luck.