Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.2 - Português

Change language to:
English - Français - 日本語 - Русский

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

Ajuda do Scilab >> Xcos > programming_scicos_blocks > utilities_functions > set_blockerror

set_blockerror

set the block error number

Syntax

set_blockerror(n)

Arguments

  • n : an error number. The following calls are allowed :

    • set_blockerror(-1)

      the block has been called with input out of its domain

    • set_blockerror(-2)

      singularity in a block

    • set_blockerror(-3)

      block produces an internal error

    • set_blockerror(-16)

      cannot allocate memory in block

Description

Function to set a specific error during the simulation for the current block. If it is used, then after the execution of the computational function of the block, the simulator will end and will return an error message associated to the number given in argument.

set_blockerror(n)

Report an issue
<< scicos_time utilities_functions set_xproperty >>

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:
Thu Feb 14 15:01:08 CET 2019