DSP Component Advise-Guidance
Posted: Wed Jan 10, 2018 9:06 am
Hello Ben/ Leigh.
I need your help and wisdom in using the DSP Control Component. I have setup the component as shown here.
[1] Is the Set point Input and connected to Buffer A
[2] is the Feedback signal connected to Buffer B
[3] is the output connected to Buffer C
[4] I have placed a buffer component on the FC Chart.
Now I have the following confusion.
(1) I should load my signal value into the Buffer A and B (setpoint) (FeedBack) before calling the Control Component Correct?
(2) after the execution of the call the PID output will be in Buffer C Correct?
(3) I have to take the output out from Buffer C and load it to my function that needs this value (for example the PWM component) ?
(4) I have made the buffer 1 level deep for A,B and C this I assume will calculate the output on a single input values Correct
(5) Does the component keep track of the error(execute integration)I do not have to do this in my code?
(6) FC link the Setpoint and Feedback together at the E input of the component so I assume the component calculate the Error?
(7) the delta T I should implement myself for example timer interrupt every X mSec and then execute the PID Component to have the T constant
(8) Do I need to set the limits for the output in my code(Anti windup) or does the component do this,I do not see a parameter for this in the PID
Component
Then in general the component is limited to signed and unsigned integers and bytes no floating point or Q15 support ? is this available for the dsPIC Control Component as that is one reason a person would use a dsPIC for it fast execution of control signals with DSP engine and Q15
in applications such as SMPS units specially if a person take into account that the dsPIC ADC can be configured to output Q15 format which even help more to speed up the control execution times
I appreciate you helping me out here, I do understand this is a bit of heavy stuff for a 8 bit machine however I only need to do this call every Sec so there is time for the small pic to catch up![Very Happy :D](./images/smilies/icon_biggrin.gif)
I need your help and wisdom in using the DSP Control Component. I have setup the component as shown here.
[1] Is the Set point Input and connected to Buffer A
[2] is the Feedback signal connected to Buffer B
[3] is the output connected to Buffer C
[4] I have placed a buffer component on the FC Chart.
Now I have the following confusion.
(1) I should load my signal value into the Buffer A and B (setpoint) (FeedBack) before calling the Control Component Correct?
(2) after the execution of the call the PID output will be in Buffer C Correct?
(3) I have to take the output out from Buffer C and load it to my function that needs this value (for example the PWM component) ?
(4) I have made the buffer 1 level deep for A,B and C this I assume will calculate the output on a single input values Correct
(5) Does the component keep track of the error(execute integration)I do not have to do this in my code?
(6) FC link the Setpoint and Feedback together at the E input of the component so I assume the component calculate the Error?
(7) the delta T I should implement myself for example timer interrupt every X mSec and then execute the PID Component to have the T constant
(8) Do I need to set the limits for the output in my code(Anti windup) or does the component do this,I do not see a parameter for this in the PID
Component
Then in general the component is limited to signed and unsigned integers and bytes no floating point or Q15 support ? is this available for the dsPIC Control Component as that is one reason a person would use a dsPIC for it fast execution of control signals with DSP engine and Q15
![Very Happy :D](./images/smilies/icon_biggrin.gif)
![Very Happy :D](./images/smilies/icon_biggrin.gif)
I appreciate you helping me out here, I do understand this is a bit of heavy stuff for a 8 bit machine however I only need to do this call every Sec so there is time for the small pic to catch up
![Very Happy :D](./images/smilies/icon_biggrin.gif)