Digital I/O

cancel
Showing results for 
Search instead for 
Did you mean: 

programming rc servo with pci 6518

dear all,

I already have a NI PCI-6518 card,  actually My friend suggested me to buy it.   But when I came to this forum, I realized that it is a difficult task to program a STANDARD RC SERVO ( which is to change its pulse width ) with Digital Output Line.   However what I have is this PCI-6518 card, and I a newcomer in Labview.   Can anyone please to help me to make a VI for programming a RC Servo ?? 

thank you for your attention and helps...................

MogeMbo
0 Kudos
Message 1 of 3
(3,928 Views)
 

Hello MogeMbo,

Fortunately you can still generate pulse width modulated signals using the PCI-6518. The only caveat to keep in mind is that this board has no counters and the DIO lines are entirely static. This means that your application will be entirely software timed and at the mercy of the system you are running it on. That being said, I have included a simple example which illustrated two methods of generating pulse width modulated signals.

The first method uses the counter on a while loop to determine the length of the positive pulse.

The second method allows you to switch between two pre-made pulse lengths.

In either case, the timing is controlled by a software timing structure (delay) within the main while loop. This can be controlled on the front panel to increase or decrease the “frequency” of the signal. As mentioned above however the accuracy of this timing is dependent on the system.

Below are some great resources which will help you understand the DAQmx driver and how to program various applications using our DAQ hardware.

Getting Started with NI-DAQmx

Learn 10 Functions in NI-DAQmx and Handle 80 Percent of Your Data Acquisition Applications

Let me know if you have any questions about this example.

 

 

Regards,

 

 

Chris Behnke
Sr. RF Engineer
High Frequency Measurements
0 Kudos
Message 2 of 3
(3,904 Views)

Dear Mr Chris B,

Merci Beacoup for your explanation and attachments,   anyhow I will try to develop a VI for my RC Servo base on your information.

Surely I will need more help couse I'm in learning step.  I will maybe reply in 2 weeks later............

 

Thank you

MoGemBo

0 Kudos
Message 3 of 3
(3,883 Views)