Welcome to Synthiam!

The easiest way to program the most powerful robots. Use technologies by leading industry experts. ARC is a free-to-use robot programming software that makes servo automation, computer vision, autonomous navigation, and artificial intelligence easy.

Get Started
Asked — Edited

Hi! I Need Help Please!

Here is the problem..

I am writing an application in C# but I have a problem... I want to stop the task for 3 seconds and continue the task... but the problem is.. I do not know how to do that!
Visual C# has a function called system.treating.tread.sleep() but this function freeze my graphical interface!....



Upgrade to ARC Pro

Unleash your creativity with the power of easy robot programming using Synthiam ARC Pro

AI Support Bot
Related Content
When you add code to an event of a button, or a Windows.Forms.Timer, they use the GUI thread. For things like pausing and stuff usually requires multi-threading. However, it's not the easiest to learn - so a good hack is to use this function i created for you:


private void Sleep(int milliSeconds) {

if (milliSeconds < 100)
for (int x = 0; x < milliSeconds / 100; x++) {

I need to remember this one!
Ouuu! yeah! a good solution-... i will apply in my project... i am building a transformer with 20 servos:)
Wow , that's slot of servos. No sensors?
I bet edison's loving the Auto Position feature with that project. I'll be doing the same with the robophilo Sr, six servos per leg, three per arm plus neck and waist movement. The i2c is still available, I'm planning on using the MMA7455 accelerometer on that:) it would be awesome to write an "auto-stand" script to make him release all the servos on the way down when he falls, then automatically stand back up:) The Alderbaran NAO does that already, but I'm not spending $16k lol
ahhaha! @Kendo4quattro amazing! I love this robots... with legs! with arms! a lot of servos!...
You should upload some photos! ahha! maybe in one months or two months I will finish my new proyect... why? because i want to learn and I am creating my own code from sdk of DJ:)
@jstarne1 yeahhh a lot of servos... I will use a ultrasonic sensor and maybe a accelerometer... this is the reason why I will use Ez-B with arduino mega !:)
@DJ Sures your help is working! now I can do a lot of things in C#... wouu! since I started with the sdk of EZ I have learned a lot in this language! thanks Dj:)