Difference between revisions of "Component: Control (DSP)"
(XML import of component help) |
|||
Line 21: | Line 21: | ||
==Examples== | ==Examples== | ||
− | |||
+ | |||
+ | === On/Off Control === | ||
+ | |||
+ | Here is a basic example demonstrating on/off control. | ||
+ | |||
+ | [[File:On-Off Control.fcfx]] | ||
+ | |||
+ | |||
+ | If the Setpoint ADC is higher then the Feedback ADC plus the hysteresis value then the output will switch on. | ||
+ | |||
+ | If the Setpoint ADC is lower then the Feedback ADC then the output will switch off. | ||
+ | |||
+ | [[File:OnOffControl.jpg]] | ||
==Downloadable macro reference== | ==Downloadable macro reference== |
Revision as of 16:46, 20 November 2013
Author | Matrix Ltd |
Version | 1.2 |
Category | DSP |
Contents
Control component
Allows for several types of control operations to be performed on a buffer. On/Off - Standard on off control as used on most overs, toasters, irons. P/PI/PID - Mathematical control process to get to the setpoint as fast as possible, similar to the process in the human brain when steering a car.
Examples
On/Off Control
Here is a basic example demonstrating on/off control.
If the Setpoint ADC is higher then the Feedback ADC plus the hysteresis value then the output will switch on.
If the Setpoint ADC is lower then the Feedback ADC then the output will switch off.
Downloadable macro reference
Process
Processes an entire buffer, either by performing the control operation to every value in the buffer or just the last value.
Parameters
- INT Setpoint
- Value to specify the required control setpoint
Return value
- This call does not return a value
ProcessTick
Processes the current value from a buffer.
Parameters
- INT Setpoint
- Value to specify the required control setpoint
Return value
- This call does not return a value
Simulation macro reference
This component does not contain any simulation macros
Property reference
Buffer Manager
This property is of type Fixed list of ints and can be referenced with the variable name buffer_manager.
DSP buffer manager to get the buffers from
Feedback
This property is of type Fixed list of ints and can be referenced with the variable name input_a.
Feedback buffer - used to pass the feedback reading into the control algorythm.
Output
This property is of type Fixed list of ints and can be referenced with the variable name output_c.
Output buffer - used to pass the control output values from the control algorythm.
Process
This property is of type Fixed list of ints and can be referenced with the variable name style.
Selects whether to process the entire buffer or just a single value when calling the Process macro
Method
This property is of type Fixed list of ints and can be referenced with the variable name method.
Specifies which control method will be used to process the buffer data
Proportional
This property is of type Signed integer and can be referenced with the variable name proportional.
P coefficient used to perform the Proportional calculation
Integral
This property is of type Signed integer and can be referenced with the variable name integral.
I coefficient used to perform the Integral calculation
Derivative
This property is of type Signed integer and can be referenced with the variable name derivative.
D coefficient used to perform the Derivative calculation