Arduino as xcos block

4k Views Asked by At

I am developing an interface between Arduino microcontroller and Scilab (analogue of MATLAB) simulation environment. How I see it:

A graphical block representing Arduino in Scilab. It will have 6 analogue and 14 digital inputs on the left side of the block and 14 digital outputs on the right side.

The interface that should be developed which:

  1. gets output values from physical Arduino and assigns to the outputs of the graphical block in Scilab;
  2. gets inputs from graphical block and assigns them to the inputs of the physical Arduino.

Could anyone give me ideas how I could do it?

2

There are 2 best solutions below

0
On

There's an atoms for Arduino Communication through Serial : http://atoms.scilab.org/toolboxes/arduino

0
On

Arduion communicate with serial port; SciLab have serial port tool, you need to establish the link between them. In Arduino-MATLAB communication some code need to be in Arduino memory before the communication start so the same would be between Arduion-SciLab.