Component: On/Off Control (DSP Operators)

From Flowcode Help
Jump to navigationJump to search
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.

FC6 Icon.png 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.

FC6 Icon.png 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

Fc9-comp-macro.png Process
Processes the current value from a buffer. 
Fc9-void-icon.png - VOID Return


ProcessArray

Fc9-comp-macro.png ProcessArray
Processes an entire buffer, either by performing the control operation to every value in the buffer or just the last value. 
Fc9-void-icon.png - VOID Return


Property reference

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