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

Andreas Stewering-Bone andreas.stewering-bone at gmx.de
Fri Mar 3 06:37:25 CET 2023


Pleased note you are running etherlab 1.3, I am sure. The Code generation will create a userspace executeable.

The runtime failure says that you did not set a cycle time in the model properties. You should set Something Like 0.001 s.

Try it

Best regards

Andreas 

Am 2. März 2023 15:46:09 MEZ schrieb Henrik Barie <henrik.barie at ei.thm.de>:
>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
>-- 
>Etherlab-users mailing list
>Etherlab-users at etherlab.org
>https://lists.etherlab.org/mailman/listinfo/etherlab-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20230303/39ff45e1/attachment.htm>


More information about the Etherlab-users mailing list