Hi folks, I have an application requiring a very high update frequency. I describe it briefly here, could someone give me some suggestion ?
I need to send out the command of F = sin(X) to a motor, where X is the reading of a position sensor. The X is sensed by a position sensor. Through the A/D card, my computer get the position value. Then it calculate F(t) = sin(X(t)), and then send the F command to D/A card, through which the motor gets the command.
My desired updating rate is 10k Hz, so the Windows OS can't handle it(coz it's multimedia timer's resolution is only 1kHz). What should I do?
Note: the A/D and D/A card manufacturer provide the device driver for Windows and Linux already.
This is the loop need to have a 10k Hz update rate. sensor==>A/D card==>computer(calculation of F)==> D/A card ==>motor.