Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.2 - Русский

Change language to:
English - Français - 日本語 - Português -

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Справка Scilab >> Xcos > palettes > Event handling palette > IFTHEL_f

IFTHEL_f

Synchronous block If-Then-Else

Block Screenshot

Description

One event is generated on one of the output event ports when an input event arrives. Depending on the sign of the regular input, the event is generated on the first or second output. This is a Synchro block, , input and output event are synchronized.

Dialog box

  • Inherit

    If no, then it inherits the event from event input port, elseif yes, then event is activated by regular input port.

    Properties : Type 'vec' of size 1.

  • Zero-crossing

    Select to enable zero crossing detection.

    Properties : Type 'vec' of size 1.

Default properties

  • always active: no

  • direct-feedthrough: yes

  • zero-crossing: yes

  • mode: yes

  • regular inputs:

    - port 1 : size [1,1] / type -1

  • number/sizes of activation inputs: 1

  • number/sizes of activation outputs: 2

  • continuous-time state: no

  • discrete-time state: no

  • object discrete-time state: no

  • name of computational function: ifthel

Interfacing function

  • SCI/modules/scicos_blocks/macros/Events/IFTHEL_f.sci

If/Then example

Report an issue
<< HALT_f Event handling palette MCLOCK_f >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Apr 01 10:27:24 CEST 2015