# Xcos diagram crashes Scilab

**URL:** <https://scilab.discourse.group/t/xcos-diagram-crashes-scilab/191>\
**Category:** Xcos\
**Created:** [October 17, 2023, 8:04am UTC](https://scilab.discourse.group/t/xcos-diagram-crashes-scilab/191 "2023-10-17T08:04:10Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Neo1](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@Neo1](https://scilab.discourse.group/u/Neo1)\
**Post date:** [October 17, 2023, 8:04am UTC](https://scilab.discourse.group/t/xcos-diagram-crashes-scilab/191/1 "2023-10-17T08:04:10Z")

</div>

Hello, I have a simulation that looks like this.

 ![image](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/383dadac64839e36d2eef6d2561fcaa411835272.png)  
but every time i run it, scilab closes all windows. Does someone have an idea what is happening there and could help me out?

Thanks in advance.  
[anfang drehmomentbildung.zcos](https://scilab.discourse.group/uploads/short-url/sQ8YvXK1uNHEeWeO6aw0HKKn3cd.zcos) (4.3 KB)

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [October 17, 2023, 8:58am UTC](https://scilab.discourse.group/t/xcos-diagram-crashes-scilab/191/2 "2023-10-17T08:58:08Z")

</div>

Hello,

Can you add the .zcos file of your diagram in your post (click the pencil icon to edit your messge and drop the file in the edit window) ?

S.

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [October 18, 2023, 10:01am UTC](https://scilab.discourse.group/t/xcos-diagram-crashes-scilab/191/3 "2023-10-18T10:01:01Z")

</div>

Using Modelica blocks needs to have a compiler installed on your system. Under Windows you can install Visual Studio or the Atoms MinGW toolbox. Which version of Scilab do you use ? The recommended version is the latest, i.e. 2023.1.0.

---

<div class="post-metadata">

**Author:** ![Neo1](https://avatars.discourse-cdn.com/v4/letter/n/b9bd4f/32.png) [@Neo1](https://scilab.discourse.group/u/Neo1)\
**Post date:** [October 21, 2023, 8:59am UTC](https://scilab.discourse.group/t/xcos-diagram-crashes-scilab/191/4 "2023-10-21T08:59:17Z")

</div>

I installed the Atoms MinGW toolbox, but after i restarted scilab this report appears:  
Mingw Compiler support for Scilab  
Load macros  
WARNING: MinGW Compiler not detected.  
Load help  
do you know how i can help scilab to detect the compiler?

---

<div class="post-metadata">

**Author:** ![mottelet](https://yyz2.discourse-cdn.com/free1/user_avatar/scilab.discourse.group/mottelet/32/13_2.png) [@mottelet](https://scilab.discourse.group/u/mottelet)\
**Post date:** [October 23, 2023, 6:35am UTC](https://scilab.discourse.group/t/xcos-diagram-crashes-scilab/191/5 "2023-10-23T06:35:44Z")

</div>

Did you through the whole install process (you have to install the GCC package before installing the minGW toolbox) ? Please have a look to this post: [Using a compiler (mingw/ gcc)](https://scilab.discourse.group/t/using-a-compiler-mingw-gcc/129).

---

<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:20pm UTC](https://scilab.discourse.group/t/xcos-diagram-crashes-scilab/191/6 "2024-01-07T14:20:55Z")

</div>

I have similar applications, that work.

This is not a Coselica application, it looks like standard XCos blocks (electric library).  
Therefore a compilation is not necessary.

I assume, the problem in the X delay function. What is it’s purpose?

Best regards. Juergen

P.S. I also installed Coselica (twice up to now). It works, if you follow the procedure. I installed an older version of the gnu-compiler (8.3.0 worked well).

---

<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, 3:03pm UTC](https://scilab.discourse.group/t/xcos-diagram-crashes-scilab/191/7 "2024-01-07T15:03:34Z")

</div>

Coselica-Installation (not every compiler works, I used GNU V 8.3.0).

 ![Coselica Installation in 2020a](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/e6e112aed7094f77a4691b5905cb0716e7a47baa.jpeg)

---

<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, 3:04pm UTC](https://scilab.discourse.group/t/xcos-diagram-crashes-scilab/191/8 "2024-01-07T15:04:45Z")

</div>

Coselica-Installation (not every compiler works, I used GNU V 8.3.0).

 ![Coselica Installation in 2020b](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/600e8932da03d81b602ac02fa50db53de89c034f.jpeg)

---

<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:** [October 14, 2024, 10:19pm UTC](https://scilab.discourse.group/t/xcos-diagram-crashes-scilab/191/9 "2024-10-14T22:19:55Z")

</div>

Ich glaube die leute hier verstehe nicht deutsch so besser auf english schreiben. Foto auch muss in english sein.
