Main Content

Switch Block with a Boolean Control Port Example

This example shows a Switch block with a Boolean input for the control port.

open_system('sldemo_fuelsys');
open_system('sldemo_fuelsys/fuel_rate_control/airflow_calc');

The value of the control port on the Switch block determines whether or not the feedback correction occurs. The control port value depends on the output of the Logical Operator block. When the Logical Operator block output is true, then the Switch block control port is 1 and the feedback control occurs. If the Logical Operator block output is false then the feedback control does not occur.

See Also

|

Related Topics