Jump to content

Component: On/Off Control (DSP Operators)

From Flowcode Help
Revision as of 16:35, 17 May 2023 by Wiki bot (talk | contribs)
Author Matrix Ltd
Version 1.2
Category DSP Operators


On/Off Control component

On/Off Control - Standard on off control as used on most ovens, toasters, irons.

Component Source Code

Please click here to download the component source project: FC_Comp_Source_DSP_OnOffControl.fcfx

Please click here to view the component source code (Beta): FC_Comp_Source_DSP_OnOffControl.fcfx

Detailed description

No detailed description exists yet for this component

Examples

Here is a project file showing an on off control system for a system such as an electric oven.

The setpoint is set via an analogue input which controls the desired temperature of the system.


In this first example the feedback is provided using the simulated load DSP component which simply takes a percentage of the last output and combines with a percentage of the new output.

This allows easy moddeling of systems such as ovens that heat up and cool down over time which allows you to see the system in action.

You assign a setpoint and then the system will get to temperature and then maintain the output by automatically switching the output on and off.


When the feedback is less then the setpoint minus the hysteresis then the output is switched on.

When the feedback is more then the setpoint then the output is switched off.

On Off Control Simulated Output Example


In this second example the feedback is provided via a temperature sensor component. This shows how you would do it with a real system using a sensor to complete the feedback loop.

On Off Control Example


As with other DSP components the raw signals and values can be seen in the data recorder and console windows.







Macro reference

Process

Process
Processes the current value from a buffer. 
- VOID Return


ProcessArray

ProcessArray
Processes an entire buffer, either by performing the control operation to every value in the buffer or just the last value. 
- VOID Return


Property reference

Properties
Setpoint Connect To
DSP component with output buffer to collect our data from. 
Feedback Connect To
DSP component with output buffer to collect our data from. 
Buffer Size
Number of individual elements the buffer can store, default 1. 
Buffer Type
Sets the buffer data type. 
Control
Hysteresis
Minimum variation before the output will be allowed to switch state. Used to avoid high frequency oscillation on the control output. 
On Value
Value passed to the output buffer when the control output is active or on. 
Off Value
Value passed to the output buffer when the control output is not active or off.