LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to control servo with labview

Hi,
 
I had been given 3 parallax servo motor and i need to control it with data acquistion CF-6004 on Toshiba e800 Pocket PC. 
The question is do i need extra hardware for the servo motor and data acquisition?
I'm new with the things here...anyone kindly direct me to the right course. 
 
Thanks.
0 Kudos
Message 1 of 4
(3,793 Views)

Hello,

Yes you can control a servo with your setup. Simply using a Digital I/O line and using pulse width modulation, you should be able to control your servo. You'll need the cable and connector block (found on the product page) to connect your signals to your servo. Also you'll need LabVIEW PDA with DAQmx Base. 


 
PBear
NI RF
0 Kudos
Message 2 of 4
(3,773 Views)
Hi,
 
I had read through all the links u send me and had installed all the driver for it.
can u simply describe about DIO and Pulse width modulation and a sample of vi. that perform the same task as a reference for me?
 
Thanks.
 
0 Kudos
Message 3 of 4
(3,734 Views)
Hello,

Most of the time when doing PWM, the best way to proceed with a DAQ device would be with a counter output. Typically if that's not available, you'll want to use a DIO line with hardware timing. If neither of these options are available you could choose software timing but please note that this is far less deterministic and completely dependent on your O/S and computer setup (in this case, your PDA). All things considered, you can do this, but as mentioned above, this won't be the best performance out there. As this is a fairly less common case, I don't have an example handy to show you. In the mean time, I can describe the technique for you. You'll want to create a Digital Output channel and build an array of 0's and 1's and write it to a digital line. The ratio of zeros to ones will be your duty cycle. The rate your loop runs will be how fast your line outputs. I hope this information is helpful. If you need more information about this procedure, let me know. I saw on one of your previous posts that you were given some useful links on DAQ basics and this will help greatly.
PBear
NI RF
0 Kudos
Message 4 of 4
(3,609 Views)