Hi,
Please refer to my attachment, may I ask how to convert my output variable (after coming out from pid vi and marked by biggest arrow) to PWM Duty Cycle duration? The scaling I have done doesn't seem correct.
[This code is modified from the 9505 example, but I am not using the 9505, and I am not doing the position nor current loop. My hardware set up is just a DC motor with a full-H-bridge circuit, a linear encoder and an fpga.]
Thank you.
Message Edited by xf on 04-25-2009 12:59 PM
Message Edited by xf on 04-25-2009 01:00 PM