# Xcos

**URL:** https://scilab.discourse.group/c/specific-domains/xcos/12.md?page=2

[Latest](https://scilab.discourse.group/latest.md) · [Categories](https://scilab.discourse.group/categories.md) · [Tags](https://scilab.discourse.group/tags.md)

**Page:** 3

---

## [Xcos example problem "ilib\_compile: Error while executing Makelib."](https://scilab.discourse.group/t/xcos-example-problem-ilib-compile-error-while-executing-makelib/639)

<div class="topic-metadata">

**Author:** [@Ryan](https://scilab.discourse.group/u/Ryan)\
**Replies:** 6\
**Last updated:** [October 6, 2024, 2:40pm UTC](https://scilab.discourse.group/t/xcos-example-problem-ilib-compile-error-while-executing-makelib/639 "2024-10-06T14:40:28Z")

</div>

Dear Ms./Mr. When I tried to run Xcos example RLC circuit, I met the following error message: Generate a loader file Generate a Makefile Running the Makefile Compilation of DC\_DC\_Buck\_Converter\_im.obj Building shar…

---

## ["Unknown field : blocktype."](https://scilab.discourse.group/t/unknown-field-blocktype/660)

<div class="topic-metadata">

**Author:** [@Vimsrocz](https://scilab.discourse.group/u/Vimsrocz)\
**Replies:** 0\
**Last updated:** [October 4, 2024, 12:10am UTC](https://scilab.discourse.group/t/unknown-field-blocktype/660 "2024-10-04T00:10:29Z")

</div>

I have below ZCOS file . Only\_system\_block.zcos (4.3 KB) I am running this code but getting error. It has all the same block as Demo Kalman filter except System and Kalman Filter Block. Below is the file for System and…

---

## [Demo - kalman Filter block. Where is the interfacing file for all the block?](https://scilab.discourse.group/t/demo-kalman-filter-block-where-is-the-interfacing-file-for-all-the-block/650)

<div class="topic-metadata">

**Author:** [@Vimsrocz](https://scilab.discourse.group/u/Vimsrocz)\
**Replies:** 0\
**Last updated:** [September 22, 2024, 3:26pm UTC](https://scilab.discourse.group/t/demo-kalman-filter-block-where-is-the-interfacing-file-for-all-the-block/650 "2024-09-22T15:26:34Z")

</div>

In demo, there are many block has been mention but we cant debug scicos model due Problem in port. So I am looking forward to working on the my scilab script to develop own block who works same as mention demo file. Kal…

---

## [Why we dont have interfacting file for the SUM\_f?](https://scilab.discourse.group/t/why-we-dont-have-interfacting-file-for-the-sum-f/646)

<div class="topic-metadata">

**Author:** [@Vimsrocz](https://scilab.discourse.group/u/Vimsrocz)\
**Replies:** 2\
**Last updated:** [September 20, 2024, 4:42pm UTC](https://scilab.discourse.group/t/why-we-dont-have-interfacting-file-for-the-sum-f/646 "2024-09-20T16:42:21Z")

</div>

Other some file like GENSIN\_f has interfacing file but below is not working \[type or paste code here\](https://help.scilab.org/SUM\_f)

---

## [Why details of demonstration block is not available?](https://scilab.discourse.group/t/why-details-of-demonstration-block-is-not-available/627)

<div class="topic-metadata">

**Author:** [@Vimsrocz](https://scilab.discourse.group/u/Vimsrocz)\
**Replies:** 4\
**Last updated:** [September 16, 2024, 7:14pm UTC](https://scilab.discourse.group/t/why-details-of-demonstration-block-is-not-available/627 "2024-09-16T19:14:06Z")

</div>

I am not able to find the input of output size and shape of any block. There are system specified but for different cases it vary and details is not available. How to visualize the output of any block? size and shape an…

---

## [Block XCOS spring](https://scilab.discourse.group/t/block-xcos-spring/626)

<div class="topic-metadata">

**Author:** [@SB51](https://scilab.discourse.group/u/SB51)\
**Replies:** 1\
**Last updated:** [September 10, 2024, 8:34am UTC](https://scilab.discourse.group/t/block-xcos-spring/626 "2024-09-10T08:34:16Z")

</div>

Hello, i need help. I would like to model in acausal a system which translates and which compresses a spring but only after having traveled a distance d. Any idea? Thank you in advance for your answers.

---

## [Why we cant add in script plot data legend etc?](https://scilab.discourse.group/t/why-we-cant-add-in-script-plot-data-legend-etc/623)

<div class="topic-metadata">

**Author:** [@Vimsrocz](https://scilab.discourse.group/u/Vimsrocz)\
**Replies:** 0\
**Last updated:** [September 6, 2024, 9:13am UTC](https://scilab.discourse.group/t/why-we-cant-add-in-script-plot-data-legend-etc/623 "2024-09-06T09:13:08Z")

</div>

I am using XCOS block and the block is plotting but the legend and represents of data is not given and there is not way to edit the block. I got block as below image without any information. I am not happy with it. I…

---

## [XCOS - I am looking for a tuto explaining how to create its own block in C language](https://scilab.discourse.group/t/xcos-i-am-looking-for-a-tuto-explaining-how-to-create-its-own-block-in-c-language/612)

<div class="topic-metadata">

**Author:** [@Pascal77](https://scilab.discourse.group/u/Pascal77)\
**Replies:** 0\
**Last updated:** [August 14, 2024, 1:13pm UTC](https://scilab.discourse.group/t/xcos-i-am-looking-for-a-tuto-explaining-how-to-create-its-own-block-in-c-language/612 "2024-08-14T13:13:39Z")

</div>

I need to create a custom block from C code. How can I do this? SCILAB built-in help is unuseful. However, I found a 25-page tutorial on the net dating back to 2009, written by Phil Schmidt. It talks about SCICOS, which…

---

## [Numbering rule of scifunc\_block input / output port](https://scilab.discourse.group/t/numbering-rule-of-scifunc-block-input-output-port/599)

<div class="topic-metadata">

**Author:** [@Alex](https://scilab.discourse.group/u/Alex)\
**Replies:** 2\
**Last updated:** [August 18, 2024, 10:55pm UTC](https://scilab.discourse.group/t/numbering-rule-of-scifunc-block-input-output-port/599 "2024-08-18T22:55:33Z")

</div>

In Xcos, when I edit the scifunc\_block as below, which port is u1, u2, u3 and y1, y2, y3? Is there any numbering rule of input / output port number? For example, from upside to downside u1, u2, u3,… , y1, y2, y3,… Ple…

---

## [How to (probably) unmask super block?](https://scilab.discourse.group/t/how-to-probably-unmask-super-block/601)

<div class="topic-metadata">

**Author:** [@pion3k](https://scilab.discourse.group/u/pion3k)\
**Replies:** 1\
**Last updated:** [August 13, 2024, 8:45am UTC](https://scilab.discourse.group/t/how-to-probably-unmask-super-block/601 "2024-08-13T08:45:44Z")

</div>

Hi, I’ve created a super block in xcos (super\_f) and then (maybe, I am not sure at this point), created a superblock mask. Now I can’t edit the super block anymore. I’ve tried to remove the mask, etc. but it doesn’t wor…

---

## [BODE PLOT from COSELICA DIAGRAM](https://scilab.discourse.group/t/bode-plot-from-coselica-diagram/589)

<div class="topic-metadata">

**Author:** [@Pascal77](https://scilab.discourse.group/u/Pascal77)\
**Replies:** 2\
**Last updated:** [July 12, 2024, 8:38pm UTC](https://scilab.discourse.group/t/bode-plot-from-coselica-diagram/589 "2024-07-12T20:38:20Z")

</div>

Hello everybody, My question is very simple : is it possible to draw a bode plot from a COSELICA DIAGRAM? I have created a diagram with COSELICA in SCILAB 2024.1.0 This diagram is working fine but now I wanted to get t…

---

## [LOGIC GATES in "red" wiring for XCOS](https://scilab.discourse.group/t/logic-gates-in-red-wiring-for-xcos/573)

<div class="topic-metadata">

**Author:** [@Pascal77](https://scilab.discourse.group/u/Pascal77)\
**Replies:** 3\
**Last updated:** [July 1, 2024, 2:27pm UTC](https://scilab.discourse.group/t/logic-gates-in-red-wiring-for-xcos/573 "2024-07-01T14:27:05Z")

</div>

Hello, My question is related to logic gates. In the AND XCOS demo file, I have found a red AND gate. It looks like that: I need the OR gate, but I can’t find it. If someone knows something about it, thank you in ad…

---

## [How to implement "memory" on C-blocks (xcos)](https://scilab.discourse.group/t/how-to-implement-memory-on-c-blocks-xcos/560)

<div class="topic-metadata">

**Author:** [@Giaretta](https://scilab.discourse.group/u/Giaretta)\
**Replies:** 6\
**Last updated:** [June 24, 2024, 1:41pm UTC](https://scilab.discourse.group/t/how-to-implement-memory-on-c-blocks-xcos/560 "2024-06-24T13:41:36Z")

</div>

Hi everyone, I can’t make a C-block that implements something similar to a “state” of the system, where a variable persists across consecutive calls of the C-block. Is it possible to implement? My first, initial and si…

---

## [How to employ frequency-depend parameter in Xcos diagram?](https://scilab.discourse.group/t/how-to-employ-frequency-depend-parameter-in-xcos-diagram/554)

<div class="topic-metadata">

**Author:** [@Alex](https://scilab.discourse.group/u/Alex)\
**Replies:** 15\
**Last updated:** [June 21, 2024, 9:03am UTC](https://scilab.discourse.group/t/how-to-employ-frequency-depend-parameter-in-xcos-diagram/554 "2024-06-21T09:03:17Z")

</div>

I am making a mechanical simulation of spring damper system in Xcos. And I want to employ frequency-depend damping coefficient parameter in it. Please teach me how to employ such a block. i.e. Which block to use, and …

---

## [How to Model an LPV System in Xcos and Extract Individual States](https://scilab.discourse.group/t/how-to-model-an-lpv-system-in-xcos-and-extract-individual-states/552)

<div class="topic-metadata">

**Author:** [@Smart](https://scilab.discourse.group/u/Smart)\
**Replies:** 6\
**Last updated:** [June 13, 2024, 3:57pm UTC](https://scilab.discourse.group/t/how-to-model-an-lpv-system-in-xcos-and-extract-individual-states/552 "2024-06-13T15:57:28Z")

</div>

Hello everyone, I’m currently working on modeling a Linear Parameter-Varying (LPV) system in Xcos and have run into a few questions. Current Challenges Modeling LPV System in Xcos: How to model an LPV system in Xco…

---

## [Xcos code generator Install Error On OSX Arm64](https://scilab.discourse.group/t/xcos-code-generator-install-error-on-osx-arm64/550)

<div class="topic-metadata">

**Author:** [@dcmcshan](https://scilab.discourse.group/u/dcmcshan)\
**Replies:** 1\
**Last updated:** [June 11, 2024, 7:13am UTC](https://scilab.discourse.group/t/xcos-code-generator-install-error-on-osx-arm64/550 "2024-06-11T07:13:41Z")

</div>

Hi there. I am trying to get SciLab Coder to work on latest install of SciLab (2024.1.0). I see on the webpage that 2024 binaries are not available. Unfortunately, there is no 2023 for aarch64 Startup execution: lo…

---

## [Aeraulics install error](https://scilab.discourse.group/t/aeraulics-install-error/547)

<div class="topic-metadata">

**Author:** [@JIM](https://scilab.discourse.group/u/JIM)\
**Replies:** 6\
**Last updated:** [June 10, 2024, 3:45pm UTC](https://scilab.discourse.group/t/aeraulics-install-error/547 "2024-06-10T15:45:37Z")

</div>

Hello, I’m new to Scilab and xcos. This seems very usable tool for our purposes. Hopsan was too complex to learn. Right now I’m trying to simulate a pneumatic and vacuum system. I’m hoping the aeraulics library could be…

---

## [Plot the Bode, Black, Nichols and Nyquist diagrams of a transfer function from an XCOS diagram](https://scilab.discourse.group/t/plot-the-bode-black-nichols-and-nyquist-diagrams-of-a-transfer-function-from-an-xcos-diagram/541)

<div class="topic-metadata">

**Author:** [@Pascal77](https://scilab.discourse.group/u/Pascal77)\
**Replies:** 4\
**Last updated:** [June 6, 2024, 9:50pm UTC](https://scilab.discourse.group/t/plot-the-bode-black-nichols-and-nyquist-diagrams-of-a-transfer-function-from-an-xcos-diagram/541 "2024-06-06T21:50:02Z")

</div>

This code can be used to plot the Bode, Black, Nichols and Nyquist diagrams of a transfer function from an XCOS diagram. It is not necessary to open the XCOS file before running the script. The post processing “post\_xco…

---

## [How to do parametric analysis (equivalent of PARAM\_VAR) in recent versions of SCILAB](https://scilab.discourse.group/t/how-to-do-parametric-analysis-equivalent-of-param-var-in-recent-versions-of-scilab/517)

<div class="topic-metadata">

**Author:** [@Pascal77](https://scilab.discourse.group/u/Pascal77)\
**Replies:** 5\
**Last updated:** [June 5, 2024, 9:49am UTC](https://scilab.discourse.group/t/how-to-do-parametric-analysis-equivalent-of-param-var-in-recent-versions-of-scilab/517 "2024-06-05T09:49:14Z")

</div>

In SCILAB 5.5.2, a package called CPGE was used very frequently in educational circles with great success for creating XCOS diagrams. Unfortunately, this package is no longer updated and is incompatible with the latest v…

---

## [Unable to view filter output on scope](https://scilab.discourse.group/t/unable-to-view-filter-output-on-scope/515)

<div class="topic-metadata">

**Author:** [@Ananya](https://scilab.discourse.group/u/Ananya)\
**Replies:** 0\
**Last updated:** [May 22, 2024, 2:35pm UTC](https://scilab.discourse.group/t/unable-to-view-filter-output-on-scope/515 "2024-05-22T14:35:18Z")

</div>

Hello, I am new to Scilab Xcos and am finding it difficult to resolve this issue. Issue: I have a sine wave generated using SINBLK\_f which is connected to a scifunc\_block\_m block. The sine wave generated is the input t…

---

## [Difference between the "RELAY\_f"-block and the "SELECT\_m"-block?](https://scilab.discourse.group/t/difference-between-the-relay-f-block-and-the-select-m-block/488)

<div class="topic-metadata">

**Author:** [@Martell](https://scilab.discourse.group/u/Martell)\
**Replies:** 2\
**Last updated:** [May 6, 2024, 3:40pm UTC](https://scilab.discourse.group/t/difference-between-the-relay-f-block-and-the-select-m-block/488 "2024-05-06T15:40:29Z")

</div>

First of all I am just trying this “help-system”. And then I have some questions. As first question I would like to understand the difference between the two XCOS-blocks RELAY and SELECT.

---

## [XCos super block generation](https://scilab.discourse.group/t/xcos-super-block-generation/323)

<div class="topic-metadata">

**Author:** [@JBosselmann](https://scilab.discourse.group/u/JBosselmann)\
**Replies:** 2\
**Last updated:** [May 6, 2024, 2:54pm UTC](https://scilab.discourse.group/t/xcos-super-block-generation/323 "2024-05-06T14:54:59Z")

</div>

I have some applications with complex numbers. a + ib. “Basis SciLab” is fine. No problems. But XCos … MOST of my attempts to automatically generate a superblock fail. The complete simulation (that was fine before) doe…

---

## [xcosValidateBlockSet](https://scilab.discourse.group/t/xcosvalidateblockset/492)

<div class="topic-metadata">

**Author:** [@Vimsrocz](https://scilab.discourse.group/u/Vimsrocz)\
**Replies:** 3\
**Last updated:** [May 6, 2024, 8:28am UTC](https://scilab.discourse.group/t/xcosvalidateblockset/492 "2024-05-06T08:28:54Z")

</div>

xcosValidateBlockSet With the help of above function, I have tried to validate the block. But there is an error with case "define" then This is whole code as below // Kalman\_Filter\_IF.sci // The interface fil…

---

## [DIY Toolbox Xcos Scilab](https://scilab.discourse.group/t/diy-toolbox-xcos-scilab/101)

<div class="topic-metadata">

**Author:** [@Smart](https://scilab.discourse.group/u/Smart)\
**Replies:** 1\
**Last updated:** [May 2, 2024, 12:05pm UTC](https://scilab.discourse.group/t/diy-toolbox-xcos-scilab/101 "2024-05-02T12:05:45Z")

</div>

Hello, is there a tutorial available, how to build your own toolbox for Xcos defining the inpur and out of the Block function and having the abillity to change and define Block Properies of the customized block? Thank …

---

## [XCos blocks (electric library)](https://scilab.discourse.group/t/xcos-blocks-electric-library/478)

<div class="topic-metadata">

**Author:** [@JBosselmann](https://scilab.discourse.group/u/JBosselmann)\
**Replies:** 1\
**Last updated:** [April 22, 2024, 6:41am UTC](https://scilab.discourse.group/t/xcos-blocks-electric-library/478 "2024-04-22T06:41:22Z")

</div>

Hi, I am still a SciLab/XCos beginner (who startet with 5.5.1). I installed SciLab 2023 recently (and SciLab 2024). For me it looks, as if the XCos “electric library” does not work without Coselica already installed. T…

---

## [How to setup or define model input argument Scilab/XCOS?](https://scilab.discourse.group/t/how-to-setup-or-define-model-input-argument-scilab-xcos/470)

<div class="topic-metadata">

**Author:** [@Vimsrocz](https://scilab.discourse.group/u/Vimsrocz)\
**Replies:** 0\
**Last updated:** [April 16, 2024, 10:17pm UTC](https://scilab.discourse.group/t/how-to-setup-or-define-model-input-argument-scilab-xcos/470 "2024-04-16T22:17:21Z")

</div>

case "define" then // default values x0 = \[0; 0\] k\_stiff = 1 // create object model=scicos\_model() // provide name and type model.sim = list("SCGNC\_exa…

---

## [Xcos model set error - scicos\_new: Wrong value for input argument #2: unable to set "model"](https://scilab.discourse.group/t/xcos-model-set-error-scicos-new-wrong-value-for-input-argument-2-unable-to-set-model/469)

<div class="topic-metadata">

**Author:** [@Vimsrocz](https://scilab.discourse.group/u/Vimsrocz)\
**Replies:** 0\
**Last updated:** [April 16, 2024, 10:08pm UTC](https://scilab.discourse.group/t/xcos-model-set-error-scicos-new-wrong-value-for-input-argument-2-unable-to-set-model/469 "2024-04-16T22:08:13Z")

</div>

As per mention in the Xcos block setup Block Parameters. There is requirement of two file for block in XCOS. Simulation file and Interface file. Model setup has error in the interface file and code is // Kalman\_Filter\_…

---

## [What is best way to debug if we dont know the invalid index in XCOS?](https://scilab.discourse.group/t/what-is-best-way-to-debug-if-we-dont-know-the-invalid-index-in-xcos/457)

<div class="topic-metadata">

**Author:** [@Vimsrocz](https://scilab.discourse.group/u/Vimsrocz)\
**Replies:** 0\
**Last updated:** [April 8, 2024, 5:48pm UTC](https://scilab.discourse.group/t/what-is-best-way-to-debug-if-we-dont-know-the-invalid-index-in-xcos/457 "2024-04-08T17:48:27Z")

</div>

!--error 21 Invalid index. do\_eval: Error while calling block Kalman\_Filter\_IF \[uid='65b73f57:18ea0a60c83:-7fdd'\]: invalid parameter (ier=21.000000, %scicos\_prob= %F). I know the error is in the below li…

---

## [Where are the Coselica blocks?](https://scilab.discourse.group/t/where-are-the-coselica-blocks/453)

<div class="topic-metadata">

**Author:** [@Voronwe](https://scilab.discourse.group/u/Voronwe)\
**Replies:** 1\
**Last updated:** [April 5, 2024, 6:50am UTC](https://scilab.discourse.group/t/where-are-the-coselica-blocks/453 "2024-04-05T06:50:54Z")

</div>

I installed Coselica atomsInstall("coselica") But I cannot find any of the mechanical blocks in my palette browser. How do I get them?

---

## [Issues Accessing Nested Superblocks in Xcos Models on Ubuntu](https://scilab.discourse.group/t/issues-accessing-nested-superblocks-in-xcos-models-on-ubuntu/445)

<div class="topic-metadata">

**Author:** [@Smart](https://scilab.discourse.group/u/Smart)\
**Replies:** 0\
**Last updated:** [March 27, 2024, 1:03pm UTC](https://scilab.discourse.group/t/issues-accessing-nested-superblocks-in-xcos-models-on-ubuntu/445 "2024-03-27T13:03:08Z")

</div>

Hello Xcos Community, I’ve been utilizing Xcos for my modeling needs, specifically leveraging Superblocks to enhance my projects. Despite the advantages, I’ve encountered a couple of issues that I hope to get insights o…

[Previous page](https://scilab.discourse.group/c/specific-domains/xcos/12.md?page=1)

[Next page](https://scilab.discourse.group/c/specific-domains/xcos/12.md?page=3)
