What is the easiest way to get a Block in Xcos that can communicate via Com Port.
I implemented a PID Controler in XCOS. Now I would like to switch from Model to the real world.
Before I start implementing my Control Paramters on the embedded device, i would like to send the calculatet set value to the COM Device and read the Control variable back to Xcos in order to calculate new parameters.
I would like to bulid a customized block with Parameters like Port, Baudrate etc. I am not very good in c programming. This is one reason why I choose Scilab.
scifunc_block seems to be a solution, which can use a scilab script calling functions from the serial toolbox.
What are your best ways to commmunicate in XCOS with Com Ports?
Thank you!
I figured out two solutions so far:
a) https://atoms.scilab.org/toolboxes/wgserialxcosio Unfortunately it is using base64, so you need to adjust the code in the embedded system, which is no solution for me
b) Use
scifunc_block**My problem is, how to handover the argument "serialport" from function connectCOM to serialblock **
[![Xcos two Coolterm][1]][1]
c) Build you own xcos block gui -- Unfortunately I do not know how to do so?