[etherlab-users] (no subject)

Lazaros Penteridis lazapenteridis at gmail.com
Sun Jan 5 20:48:11 CET 2014


> Hello and happy new year,
> 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?
> 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
> 
> File ecrt_support.c associated with S-Function 'ec_slave3' (used in 'last_test/EL4xxx_0') does not exist
> 
> /vol/opt/etherlab/rtw/last_test_etl_hrt/rtmodel.h:24:0: warning: "ONESTEPFCN" redefined [enabled by default]
> <command-line>:0:0: note: this is the location of the previous definition
> 
> 
> 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:
> 
> ### Starting build procedure for model: eisodos
> ### Generating code into build folder: /vol/opt/etherlab/rtw/eisodos_etl_hrt
> ### Invoking Target Language Compiler on eisodos.rtw
> ### Using System Target File: /vol/opt/etherlab/rtw/etherlab/etherlab.tlc
> ### Loading TLC function libraries
> .....
> ### Initial pass through model to cache user defined code
> ..
> ### Caching model source code
> .....
> ### Generating TLC interface API.
> ..
> ### Writing source file eisodos_capi.c
> ..
> ### Writing header file eisodos_capi.h
> ....................
> ### Writing source file eisodos.c
> .
> ### Writing header file eisodos.h
> ### Writing header file eisodos_types.h
> ### Writing header file rtwtypes.h
> .
> ### Writing header file eisodos_private.h
> ### Writing header file rtmodel.h
> ### TLC code generation complete.
> .### Creating project marker file: rtw_proj.tmw
> .
> ### Processing Template Makefile: /vol/opt/etherlab/rtw/etherlab/etherlab_hrt.tmf
> ### Creating eisodos.mk from /vol/opt/etherlab/rtw/etherlab/etherlab_hrt.tmf
> ### Building eisodos: /usr/local/MATLAB/R2012a/bin/glnx86/gmake -f eisodos.mk  GENERATE_REPORT=0 EXT_MODE=0 EXTMODE_STATIC_ALLOC=0 EXTMODE_STATIC_ALLOC_SIZE=1000000 EXTMODE_TRANSPORT=0
> ln -s eisodos.mk Makefile
>     CC  eisodos_capi.o
> In file included from eisodos_capi.c:17:0:
> eisodos.h:763:1: error: expected identifier or ‘(’ before ‘/’ token
> eisodos.h:770:3: warning: data definition has no type or storage class [enabled by default]
> eisodos.h:872:24: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘eisodos_B’
> eisodos_capi.c:104:4: error: ‘eisodos_B’ undeclared here (not in a function)
> gmake: *** [eisodos_capi.o] Error 1
> ### Build procedure for model: 'eisodos' aborted due to an error.
> 
> 
> 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.
> 
> Thanks in advance!
> Penteridis Lazaros
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.etherlab.org/pipermail/etherlab-users/attachments/20140105/3cb635dd/attachment-0002.htm>


More information about the Etherlab-users mailing list