07-27-2007 04:06 PM
07-27-2007 07:19 PM
07-30-2007 03:20 PM
08-03-2007 07:55 AM
Hi,
I must use DAQmx
I am doing VIs to control the position or speed of a DC motor.
The encoder give a pulse function (100 counts per turn of the DC motor).
1- Speed VI,
1.1- I want to calculate the speed with two ways.
Fisrt one: In 2 seconds, how much impulse count is there.
Second: How much time before another step.
1.2- Graph the speed history.
The problem here is that
2- Position VI
1.1- I have to keep a track of the position of the motor. To do that I have to count the number of pulses since the start of the program.
1.2- I also have to know if the rotation is clockwise or anti-clockwise.
To know if my motor is turning clockwise or counter clockwise, I have to know if the second signal is to "1" or to "0" when the first signal is going from "0" to "1".
Thank you very much,
Alex
08-06-2007 12:03 PM - edited 08-06-2007 12:03 PM
Message Edited by Matthew W on 08-06-2007 12:04 PM
Message Edited by Matthew W on 08-06-2007 12:05 PM
08-06-2007 02:29 PM
08-07-2007 07:12 PM - edited 08-07-2007 07:12 PM
Message Edited by Matthew W on 08-07-2007 07:13 PM