# Toolbox Rebuild Xcos to Serial Port

**URL:** <https://scilab.discourse.group/t/toolbox-rebuild-xcos-to-serial-port/94>\
**Category:** Atoms packages\
**Created:** [May 25, 2023, 8:34am UTC](https://scilab.discourse.group/t/toolbox-rebuild-xcos-to-serial-port/94 "2023-05-25T08:34:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Smart](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Smart](https://scilab.discourse.group/u/Smart)\
**Post date:** [May 25, 2023, 8:34am UTC](https://scilab.discourse.group/t/toolbox-rebuild-xcos-to-serial-port/94/1 "2023-05-25T08:34:14Z")

</div>

Hope, i put this request right.

Can you rebuild following toolbox for Scilab 2023 Windows x64?

> **[Scilab Module : WG Serial Xcos IO Block](https://atoms.scilab.org/toolboxes/wgserialxcosio/16.04.1)**
>
> Provides a generic Xcos block that allows to connect embedded hardware IOs to a Xcos simulation.

Thanks!!

---

<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:** [May 30, 2023, 3:01pm UTC](https://scilab.discourse.group/t/toolbox-rebuild-xcos-to-serial-port/94/2 "2023-05-30T15:01:56Z")

</div>

I just updated the toolbox for Scilab 2023.1.0: it is now available for Windows (a simple recompilation made it) and macOS (a small fix in the sources was needed). Linux build has some issues but will be available soon. Please report any problems using the toolbox in this thread.

S.

---

<div class="post-metadata">

**Author:** ![Smart](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Smart](https://scilab.discourse.group/u/Smart)\
**Post date:** [June 1, 2023, 9:36am UTC](https://scilab.discourse.group/t/toolbox-rebuild-xcos-to-serial-port/94/3 "2023-06-01T09:36:05Z")

</div>

Thank you very much for your support!

Unfortunatly this block is not supporting the language of my embedded system.

What is the best way to build my own Xcos Block.

I need a COM Block Port with Block parameters like Baudrate, Port number etc. which can send messages and read messages from my embedded device

![image](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/8acea5a8fe22de8ff95b40d761043b39e28d8f47.png)

---

<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:** [June 1, 2023, 9:51am UTC](https://scilab.discourse.group/t/toolbox-rebuild-xcos-to-serial-port/94/4 "2023-06-01T09:51:33Z")

</div>

> [@Smart](#):
>
> Unfortunatly this block is not supporting the language of my embedded system.

Hello,

Can be more precise ?  
When I open the block I can set all the parameters you are talking about:

 ![Capture d’écran 2023-06-01 à 11.54.36](https://global.discourse-cdn.com/free1/uploads/utc/original/1X/0793cdc4284046c58abfaeaab3b00ab6f1626016.jpeg)

However, the provided C-code has to be customized for your device (example is given for an Arduino).

S.

---

<div class="post-metadata">

**Author:** ![Smart](https://avatars.discourse-cdn.com/v4/letter/s/8baadc/32.png) [@Smart](https://scilab.discourse.group/u/Smart)\
**Post date:** [June 1, 2023, 11:34am UTC](https://scilab.discourse.group/t/toolbox-rebuild-xcos-to-serial-port/94/5 "2023-06-01T11:34:06Z")

</div>

Thank you for your very quick respond, Stéphane. I really appreciate your support, because it seems to be very difficult to find a solution for my issue.

“WG Serial Xcos IO Block” uses Data in Base64 Format.  
I cannot rewrite the Code on my embedded device. The serial Toolbox is already helping me a lot.

How can I use the serial commands in Xcos, writing / reading to Com Port?  
How can I create my own Block that will fit my needs?

Is there an example or tutorial available, how to create my own Block or change the  
“WG Serial Xcos IO Block”.

I tried to use the scifunc Block, but it is difficult to handover parameters between openserial, readserial, writserial and closeserial.
