[Etherlab-users] Problem with running the generated code of a Simulink model

Henrik Barie henrik.barie at ei.thm.de
Thu Mar 2 15:46:09 CET 2023


Dear Etherlab-users,


I have a problem trying to run the generated code of my Simulink model, 
where I
used 2 Beckhoff-Blocks:
I connected an EL1104 to an EL2004, built the code and it generated 
several files. By searching I found out that the generated file that has 
no ending (like .c or .o) must be executed in the terminal to run the 
code (I didnt get a kmod.ko file like described in the 
etherlab-1.2.pdf). When I run this file (EtherlabTest) with ./ , I get 
an error message saying:

"EtherlabTest: /usr/share/etherlab/src/hrt_main.c:1447: main: Assertion 
'ts != 0.0' failed
Aborted"

Im not even sure if this is the correct way to make the model I created 
work with Ethercat-Master. My setup is an EK1100 connected to a 
powersupply and attached to the EK1100 I have an EL1104,  an EL2004 and 
an EL3062. The EL1104 is connected from its Input 2 to the Output 1 of 
the EL2004. My goal is to send a signal from the EK1104 to the EL2004 by 
making and running a Simulink model with Etherlab.

maybe someone has made a similar model already and can help me with this 
problem?



Kind Regards
Henrik


More information about the Etherlab-users mailing list