If you only need a very rough control of the speed you could use the counter of any multifunction DAQ board like the
NI PCI-6220 to output a user definable PWM signal. Depending on the duty cycle of this signal the motor will move faster or slower.
If you need a more sophisticated type of control I would recommend using an appropriate drive and a motion control board like the
PCI-7342 that runs a PID algorithm onboard.
Please provide more detailed information if you need a more detailed answer.
Best regards,
Jochen Klier
National Instruments Germany