06-09-2012 11:45 AM
Hello Ladies and Gentlemen
I am working on a project to control a servo motor using a Cytron MD10C encoder. I am using a NI c-RIO 9022 with NI9401 in slot 1 to send a pwm signal in the fpga. I have included the project folder I am using in a .zip file.
The trouble is that no matter what I do, a signal is not be generated. I even placed an ociliscope to check to see if a signal is being made to no avail. Would a kind soul please tell me what I am doing wrong.
Thank You
Ven
06-11-2012 10:54 AM
Hey Nonebythename,
I want to make sure I understand your setup. You're using a cRIO 9022 (with what chassis?) and an NI-9401 module to output a PWM, using the FPGA, to control a Cytron MD10C Motor Driver which is connected to a Servo Motor.
From looking through your project, it looks like you've tried to incorporate pieces from a few examples as well as some custom code. However, I'm a little confused by, what I believe to be, your main RT VI CRIO vi.vi. This VI writes a High and Low to High Pulse and Low Pulse items on the FPGA using a read/write control. However, your FPGA vi.vi doesn't have these inputs.
For what you're trying to do, I would recommend starting with an example of a basic PWM and expanding from there. From LabVIEW, you can access the Example Finder by selecting Help >> Find Examples. Then select Hardware Input and Output >> Compact RIO >> FPGA Fundamentals >> Counters >> PWM Output >> PWM Out, Simple - cRIO.lvproj. This example should get you started on outputting the basic PWM. Hope this helps!
--Ryan S.