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


xcosValidateCompareBlock

Function to compare two Xcos Blocks.

Syntax

[status, message] = xcosValidateCompareBlock(block1, block2)

Arguments

block1: A Xcos block.
block2: A Xcos block.

Description

This function is used to compare two Blocks.

Function will go through each block field and compare the two values. The function returns true if the two blocks are equal, false otherwise. message will contain some information about non-homogeneous fields.

File content

  • SCI/modules/xcos/macros/xcosValidateCompareBlock.sci

Examples

loadXcosLibs();
block1 = CONST_m("define");
block2 = CONST_m("define");
[status, message] = xcosValidateCompareBlock(block1,block2)

block2.model.rpar = 42;
[status, message] = xcosValidateCompareBlock(block1,block2)

See also

History

VersãoDescrição
5.4.0 Function xcosValidateCompareBlock introduced.
Report an issue
<< xcosValidateBlockSet batch_functions palettes >>

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:
Mon May 22 12:42:14 CEST 2023