hi:)
i'm writing a windows form program that controls 4 stepper motors, using visual studio express 2010, c++
i'm using a for loop that has to cycle for up to 1200 times. it works well enough but it's kinda slow and, when it's connected to my hardware and given more than 300...400 loops, it shows "not responding" until it reaches the end of the cycle. during this, it moves much faster. That speed would be allot better for my application, but i dunno how to control it.
i'd like to know how to make my form program work properly when i simply launch the exe that VStudio creates in the debug folder (as far as i know, that's the finished "product" i need:) ), if i'm supposed to somehow set some sort of priority for it that windows will handle. I don't know if i should used threads, because i don't have several simultaneously running parts of my program, just that loop, and since i never used them, i'm not sure what else they do...
I don't have experience with form progs so i'd just like to be pointed in the right direction. What could cause the freeze and increase in speed and how do i make a form program properly "launchable" under Windows so that it doesn't freeze and it runs fast.