<html><body bgcolor="#FFFFFF"><div></div><span class="Apple-style-span" style="-webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); -webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); -webkit-composition-frame-color: rgba(77, 128, 180, 0.230469); "><blockquote type="cite"><div><div dir="ltr"><div><div><div><div><div><div><div>Hello and happy new year,<br></div>I have installed ethercat master 1.5.2 and etherlab 2.1.0 on linux kernel 2.6.35.9 with rtai 2.1.0. Everything seems to have been installed correctly since I got through the problems I faced on all the previous steps. Now I try to implement a simple test case in order to measure voltages on the outputs of my beckhoff klemme EL4004. For that I made a model on simulink Matlab using etherlab_lib containing 4 constant voltage sources(to which I give floating point values between 0-1) that are connected to the 4 inputs of the klemme(i unchecked vector output but i have the same results even when I give the values in vector form). I managed to get this model to build and then I ran it. My circuit is composed of two klemmes, the EK1100 which is connected to two isolated power supplies, one 24V on it's power supply and a second 24V supply on the plus and minus pins for the supply of the other klemme, EL4004, that I want to control. When I run the executable ./"model_name" I get from the led code(on klemme EL4004 the first and the third row of leds are continuously turned on) and from the sys log messages that the klemmes are in the operational state, but when I try to measure with an output with my multimeter I fail and I get 0 voltage. What am I missing/ doing wrong here?<br></div>During the compilation of the model I get two warnings the first of the two I managed to eliminate through adding the directory path into include directories section of custom code on the configuration parameters of the model I write them here in case they are related to the problem and they are giving more information about it<br><br></div><div style="margin-left: 40px; "><i>File ecrt_support.c associated with S-Function 'ec_slave3' (used in 'last_test/EL4xxx_0') does not exist</i><br><br><i>/vol/opt/etherlab/rtw/last_test_etl_hrt/rtmodel.h:24:0: warning: "ONESTEPFCN" redefined [enabled by default]<br><command-line>:0:0: note: this is the location of the previous definition</i><br><br></div><br></div>Another problem that I face which I don't know if it's unrelated to the previous or if it's a different aspect of the same problem is that when I tried to make a reverse model than the one described above for input of voltage in my pc using the analog input klemme EL3064 and 4 outputs the model cannot compile and the output I get is the following when I press build model:<br><br><div style="margin-left: 40px; "><i>### Starting build procedure for model: eisodos<br>### Generating code into build folder: /vol/opt/etherlab/rtw/eisodos_etl_hrt<br>### Invoking Target Language Compiler on eisodos.rtw<br>### Using System Target File: /vol/opt/etherlab/rtw/etherlab/etherlab.tlc<br>### Loading TLC function libraries<br>.....<br>### Initial pass through model to cache user defined code<br>..<br>### Caching model source code<br>.....<br>### Generating TLC interface API.<br>..<br>### Writing source file eisodos_capi.c<br>..<br>### Writing header file eisodos_capi.h<br>....................<br>### Writing source file eisodos.c<br>.<br>### Writing header file eisodos.h<br>### Writing header file eisodos_types.h<br>### Writing header file rtwtypes.h<br>.<br>### Writing header file eisodos_private.h<br>### Writing header file rtmodel.h<br>### TLC code generation complete.<br>.### Creating project marker file: rtw_proj.tmw<br>.<br>### Processing Template Makefile: /vol/opt/etherlab/rtw/etherlab/etherlab_hrt.tmf<br>### Creating <a href="http://eisodos.mk/">eisodos.mk</a> from /vol/opt/etherlab/rtw/etherlab/etherlab_hrt.tmf<br>### Building eisodos: /usr/local/MATLAB/R2012a/bin/glnx86/gmake -f <a href="http://eisodos.mk/">eisodos.mk</a> GENERATE_REPORT=0 EXT_MODE=0 EXTMODE_STATIC_ALLOC=0 EXTMODE_STATIC_ALLOC_SIZE=1000000 EXTMODE_TRANSPORT=0<br>ln -s <a href="http://eisodos.mk/">eisodos.mk</a> Makefile<br> CC eisodos_capi.o<br>In file included from eisodos_capi.c:17:0:<br>eisodos.h:763:1: error: expected identifier or ‘(’ before ‘/’ token<br>eisodos.h:770:3: warning: data definition has no type or storage class [enabled by default]<br>eisodos.h:872:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘eisodos_B’<br>eisodos_capi.c:104:4: error: ‘eisodos_B’ undeclared here (not in a function)<br>gmake: *** [eisodos_capi.o] Error 1<br>### Build procedure for model: 'eisodos' aborted due to an error.</i><br><br></div><br></div>I'm in a deadend now and after dozens of hours of searching on the internet I didn't find anything helpful so any help would be appreciated.<br><br></div>Thanks in advance!<br></div>Penteridis Lazaros</div></div></blockquote></span></body></html>