11-21-2011 10:34 PM
Thirdly, the main aim of my project is to drive the motor and make it stop at certain points because it has an encoder attached to it. I want the motor to run based on certain frequencies which are like trigger signals for the motor. The trigger signals are actually from accelerometer. They would be three of them and three drives for the motor to three different encoder positions based on the accelerometer signal I have at any point in time. I.e. the motor must move to position 1 if I have accelerometer reading to be at frequency 1. The motor must moved to position 2, if accelerometer reading is at frequency 2 and thirdly motor must moved to position 3 if frequency of the accelerometer is at frequency 3. I have been able to write a code for my accelerometer reading to be able to extract the different frequency. I have also made each frequency to be a trigger signal for the motor to move by using "Case structure" for the 3 frequency. But my main problem is how to make the move. I have a motor from faulhaber and an encoder attached to it. I have PCI 6221 and a driver MCDC3006S. The motor driver has a serial port which I have attached to my desktop computer. The problem is now how to send a programming code to run motor based on the different frequency and convert this to a Vi to attached to my existing accelerometer Vi.
Please kindly assist if you know how and what I should do to write this code in labview.
Attached is where I have stopped on the accelerometer signals which will be the trigger signal for the motor to move to different points
thanks in anticipation.
11-22-2011 01:27 AM
This doesn't sound like a TestStand question, try posting your question here you might get a better response.