Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

Controlling 6 RC servo motors

Hello,

I am doing a project where I need to control 6 RC servos . To control the servos I need to generate a high pulse that varies from 600microseconds to 2400microseconds. I need to know if I can generate this signal in a digital port. I have a NI USB 6009, but can I control the time period of the signal that I send if so how ? I am very new to labview and NI devices please do help me . I also have a cdaq 9174, should I use the cdaq 9174 with a digital output card or is the NI USB 6009 enough for my application ?

0 Kudos
Message 1 of 7
(5,140 Views)

The 6009 is probably not going to be sufficient for your application.  The DIO on the 6009 is not hardware timed, so you will not be able to output a consistent pulse train using those lines.  The single counter on the 6009 can only be used for edge counting, so no pulse train there.

 

A DIO C series module or C series servo module would work much better for you.

Chris
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 2 of 7
(5,132 Views)

(sorry, double post)

Chris
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 3 of 7
(5,132 Views)

Respected Sir,

Thank You for the quick response . I have a C-daq-9174 and a digital cards NI9403 and NI9474 . Will I be able to generate the timed signals as stated previously in these cars ?

I also have one 9505 servo card but I need to control 6 servos sir?

 

http://servocity.com/html/how_do_servos_work_.html 

 

This is the kind of signal I need to generate sir

thank you again.

 

0 Kudos
Message 4 of 7
(5,124 Views)

If you use DAQmx 9.3 or later, you should be able to generate the proper signal with the 9403.

 

I think the 9474 would be the better choice.  It has better timing, but will only do output.

Chris
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 5 of 7
(5,114 Views)

Respected Sir,

Thank you sir for the reply. I need only outputs so I will use the 9474.Can i control the time period and the duty cycle of the signal that I generate. Can you tell me how to configure the cdaq 9174 and how to generate these signals in lab view.

 

Thank you 

Bharadwaj

0 Kudos
Message 6 of 7
(5,098 Views)

Check the Example Finder for example of pulse generation.  It's pretty simple.

 

You will be able to control frequency and duty cycle.

Chris
Certified LabVIEW Architect
Certified TestStand Architect
0 Kudos
Message 7 of 7
(5,083 Views)