Scilab 6.0.1
Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function
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
- scs_m structure — Define a scs_m structure
- xcos: Block diagram editor and GUI for the hybrid simulator — Editeur de schéma-bloc et IHM pour le simulateur hybride
History
Version | Description |
5.4.0 | Function xcosValidateCompareBlock introduced. |
Report an issue | ||
<< xcosValidateBlockSet | Fonctions Batch | palettes >> |