[etherlab-users] EtherCAT Blocks in Simulink
Florian Pose
fp at igh-essen.com
Mon Jan 25 10:51:09 CET 2010
On Tue, Dec 15, 2009 at 10:35:25AM +0100, andrej.mueller wrote:
> I wrote a message about integration ECAT blocks in Simulink on Windows
> a couple of weeks earlier, but with unprocessed result. However ones
> more, I try to integrate EtherCAT lib in Simulink on Windows Platform,
> I already solved the Problems with MEX-Compiler. So I can create
> models with ECAT blocks form Etherlab lib. in Simulink without an
> error. I saw that the ECAT blocks are written as S-Funktions in
> Simulink, but how the block communicate with the Hardware? As I
> understand the C MEX S-Functions in Simulink, I just need to switch
> the interface of the blocks from Eteherlab to my own. Because the
> target platform which we have is x86 and it exist a .tlc file for this
> in Simulink. My question is, which .tlc file from Etherlab lib have to
> be changed to get all needed information for the blocks from my own
> initerface S-Function?
The ec_slave2 s-Function uses the c-API of the EtherCAT master
(http://etherlab.org/en/ethercat) to communicate with the slaves. The
EtherCAT master runs under Linux, so it should be possible to generate
code, but the runtime environment is currenlty limited to Linux/RTAI.
--
Best regards,
Florian Pose
http://etherlab.org
More information about the Etherlab-users
mailing list