Hello,
I am trying to control a servo using Labview 8.5. The servo requires a sqaure wave where the duty cycle determines the position the servo motor moves an extension. My question has to do with the sampling info parameters. I was trying to get a duty cycle of 7.5%, so I hooked up my DAQ (NI 6221) to an oscilloscope. At Fs and #s 1k and duty cycle of 7.5%, the scope said I have a duty cycle of 10%. At Fs and #s = 4k, I got the scope to read 7.5%. However, at Fs and #s = 5k, the scope read 8% duty cycle. I moved up to Fs and #s = 6k and was able to read 7.5% again. Does the sampling info somehow affect the daq output? I first thought it just may not be going fast enough, but as you can see going from 4k to 5k produced an error. I will need to be able to resolve .5% duty cycle changes to control my servo accurately, any help on this would be greatly appreciated! Attached is a my VI, I use the DAQ output assistant, and tell it to use the waveform timing parameters.
Thanks
- J