Thanks for the quick reply.
Basically, I want to specify a max speed the motor ramps up to. It should stay at this max speed for a time the user specifies. After that time the motor should ramp back down to a min speed the user specifies. It should then stay at this min speed for a time the user specifies.
So basically the motor speed should be be oscillating back and forth between the two values. Then when matched up against the square wave it is following, it will show the user how responsive the motor is. Because the motor takes a certain amount of time to ramp up to the max speed, often it over shoots its target, and then oscillates up and down trying to match the specified speed. Or sometimes it won't ramp up quick enough between speed changes and you get these logorithmic looking curves up and down.
It could be something as simple as a timer setup. Im just looking for something I might be looking over. Or another idea on how to do it... Im definetly open to suggestions... thanks. : )
Matt