# XCos super block generation

**URL:** <https://scilab.discourse.group/t/xcos-super-block-generation/323>\
**Category:** Xcos\
**Created:** [January 7, 2024, 2:25pm UTC](https://scilab.discourse.group/t/xcos-super-block-generation/323 "2024-01-07T14:25:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![JBosselmann](https://avatars.discourse-cdn.com/v4/letter/j/ba8739/32.png) [@JBosselmann](https://scilab.discourse.group/u/JBosselmann)\
**Post date:** [January 7, 2024, 2:25pm UTC](https://scilab.discourse.group/t/xcos-super-block-generation/323/1 "2024-01-07T14:25:02Z")

</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) doesn’t work with the superblock. Results are not updated at all.

My work around: I do it manually, block by block. That takes a lot of unnesserary time, but later it works. I suspect it’s because of the “ports”.

Thus I start with a composition of very simple blocks (& etc.), in such way, that I get the proper count of inputs and outputs. I then generate a superblock (that I don’t really need), erase all content and exchange it with the truly needed contents. I even avoid complex ports; separate in Real and Imaginary and “later” combine the complex number again. But that takes a lot of time. (it sucks?)

I use Windows 11 with the latest SciLab version; but it was the same with Win 10 and SciLab 5.5 or 6.1.

Can you help me?

For me MatLab/Simulink is available at work, but I prefer open source (also for our students).

I appreciate you support.

---

<div class="post-metadata">

**Author:** ![vincent.couvert](https://avatars.discourse-cdn.com/v4/letter/v/f4b2a3/32.png) [@vincent.couvert](https://scilab.discourse.group/u/vincent.couvert)\
**Post date:** [May 2, 2024, 8:24pm UTC](https://scilab.discourse.group/t/xcos-super-block-generation/323/3 "2024-05-02T20:24:00Z")

</div>

Hi @JBosselmann ,

Do you have a small use-case that we could use to reproduce your problem? If yes, do not hesitate to report an issue with your diagram as attachement on GitLab: [Issues · scilab / scilab · GitLab](https://gitlab.com/scilab/scilab/-/issues/)

Thank for using Xcos.

---

<div class="post-metadata">

**Author:** ![Vimsrocz](https://avatars.discourse-cdn.com/v4/letter/v/ed8c4c/32.png) [@Vimsrocz](https://scilab.discourse.group/u/Vimsrocz)\
**Post date:** [May 6, 2024, 2:54pm UTC](https://scilab.discourse.group/t/xcos-super-block-generation/323/4 "2024-05-06T14:54:59Z")

</div>

I think there is issue with some tutorial. Proper explanations is not given or most of the stuff is written in help section without example . I prefer to play with example and work on it.
