Discussion:
PWM digital output
(too old to reply)
emrahdurusut
2008-01-04 15:10:08 UTC
Permalink
Hi,
 
I'm using NI USB 6501 device for my project to simply control the positions of three servo motors. I searched forums of NI and found some useful programs. The following link contains a file that I cannot use with Labview 8.0 because the program is configured for Labview 8.2.
 
<a href="http://digital.ni.com/public.nsf/allkb/1561D31534F07D608625727900391114" target="_blank">http://digital.ni.com/public.nsf/allkb/1561D31534F07D608625727900391114</a>
&nbsp;
(&nbsp;&nbsp; - PWM_output_SW-timed_with_digital_line.vi )
&nbsp;
It would be very helpful if someone could help me converting this code compatible with Labview 8.0.
Also, I cannot use counter output to create PWM because of the inability of my device. Therefore, I need a program that gives digital PWM output. To control my servos, I need to give pulses between 1ms - 2ms(to control the position of servo)&nbsp;and&nbsp;update time of 20ms between each pulse. I believe the code I mentioned above will work but any other improved codes would also be very helpful.
Thanks.
&nbsp;
emrahdurusut
2008-01-04 19:40:11 UTC
Permalink
By the way, I forgot to mention that my servo motors are simple RC hobby servos. Any VI to control RC servos would be very helpful.
Thanks again.
samantham
2008-01-07 18:40:08 UTC
Permalink
Hello,
&nbsp;
I opened the Knowledge Base and saved the VI in 8.2 for the previous version.&nbsp; The attached VI is compatible with Labview 8.0.


PWM_output_SW-timed_with_digital_lineModified4LV8.0.vi:
http://forums.ni.com/attachments/ni/70/8019/1/PWM_output_SW-timed_with_digital_lineModified4LV8.0.vi
emrahdurusut
2008-01-08 13:40:06 UTC
Permalink
Thank you for your concern. I see that software timed pulses are not accurate enough for me. I have to give the pulses between 1ms and 2ms and wait 20 ms between each pulses. Is it possible to do this task with USB 6501? I'll be very glad if you can give any idea to control RC servos with USB 6501. I tried several ways but I couldn't succeed.
Thanks.

Loading...