[etherlab-users] Etherlab 2.1 Simulink-Blocks for windows

Costa Pavlides costa at pavlides.de
Mon Feb 17 16:24:08 CET 2014


Hello,

I'm trying to install the Simulink-Blocks in windows.
At first I compile the Etherlab with cmake in linux and copy the folder 
rtw to my windows pc. But wenn I run setup in Matlab it abort with this 
error:

ec_slave3.c
ec_slave3.c(217) : warning C4005: 'max' : macro redefinition
         c:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\INCLUDE\stdlib.h(854) : see previous definition of 'max'
ec_slave3.c(337) : warning C4273: 'vsnprintf' : inconsistent dll linkage
         c:\Program Files (x86)\Microsoft Visual Studio 
10.0\VC\INCLUDE\stdio.h(354) : see previous definition of 'vsnprintf'
ec_slave3.c(557) : warning C4267: '=' : conversion from 'size_t' to 
'uint_T', possible loss of data
ec_slave3.c(576) : warning C4267: '=' : conversion from 'size_t' to 
'uint_T', possible loss of data
ec_slave3.c(632) : warning C4244: '=' : conversion from 'real_T' to 
'uint_T', possible loss of data
ec_slave3.c(636) : warning C4244: '=' : conversion from 'real_T' to 
'uint_T', possible loss of data
ec_slave3.c(640) : warning C4244: '=' : conversion from 'real_T' to 
'uint_T', possible loss of data
ec_slave3.c(644) : warning C4244: '=' : conversion from 'real_T' to 
'uint_T', possible loss of data
ec_slave3.c(673) : warning C4244: '=' : conversion from 'real_T' to 
'uint16_T', possible loss of data
ec_slave3.c(677) : warning C4267: '=' : conversion from 'size_t' to 
'uint_T', possible loss of data
ec_slave3.c(696) : warning C4244: '=' : conversion from 'const real_T' 
to 'uint16_T', possible loss of data
ec_slave3.c(697) : warning C4244: '=' : conversion from 'const real_T' 
to 'uint8_T', possible loss of data
ec_slave3.c(698) : warning C4244: '=' : conversion from 'const real_T' 
to 'uint_T', possible loss of data
ec_slave3.c(726) : warning C4244: '=' : conversion from 'real_T' to 
'uint16_T', possible loss of data
ec_slave3.c(736) : warning C4267: '=' : conversion from 'size_t' to 
'uint_T', possible loss of data
ec_slave3.c(791) : warning C4267: 'function' : conversion from 'size_t' 
to 'uint_T', possible loss of data
ec_slave3.c(792) : warning C4244: '=' : conversion from 'real_T' to 
'uint16_T', possible loss of data
ec_slave3.c(796) : warning C4267: 'function' : conversion from 'size_t' 
to 'uint_T', possible loss of data
ec_slave3.c(797) : warning C4244: '=' : conversion from 'real_T' to 
'int16_T', possible loss of data
ec_slave3.c(806) : warning C4267: 'function' : conversion from 'size_t' 
to 'uint_T', possible loss of data
ec_slave3.c(807) : warning C4244: '=' : conversion from 'real_T' to 
'size_t', possible loss of data
ec_slave3.c(810) : warning C4267: 'function' : conversion from 'size_t' 
to 'int', possible loss of data
ec_slave3.c(853) : warning C4244: '=' : conversion from 'real_T' to 
'uint_T', possible loss of data
ec_slave3.c(859) : warning C4267: '=' : conversion from 'size_t' to 
'uint_T', possible loss of data
ec_slave3.c(865) : warning C4244: '=' : conversion from 'real_T' to 
'uint8_T', possible loss of data
ec_slave3.c(929) : warning C4267: 'function' : conversion from 'size_t' 
to 'uint_T', possible loss of data
ec_slave3.c(930) : warning C4244: '=' : conversion from 'real_T' to 
'uint16_T', possible loss of data
ec_slave3.c(933) : warning C4267: 'function' : conversion from 'size_t' 
to 'int', possible loss of data
ec_slave3.c(947) : warning C4267: 'function' : conversion from 'size_t' 
to 'int', possible loss of data
ec_slave3.c(964) : warning C4244: '=' : conversion from 'real_T' to 
'uint8_T', possible loss of data
ec_slave3.c(1009) : warning C4244: '=' : conversion from 'const real_T' 
to 'uint16_T', possible loss of data
ec_slave3.c(1014) : warning C4244: '=' : conversion from 'const real_T' 
to 'int32_T', possible loss of data
ec_slave3.c(1015) : warning C4244: '=' : conversion from 'const real_T' 
to 'int32_T', possible loss of data
ec_slave3.c(1016) : warning C4244: '=' : conversion from 'const real_T' 
to 'int32_T', possible loss of data
ec_slave3.c(1017) : warning C4244: '=' : conversion from 'const real_T' 
to 'int32_T', possible loss of data
ec_slave3.c(1019) : warning C4244: '=' : conversion from 'const real_T' 
to 'int32_T', possible loss of data
ec_slave3.c(1020) : warning C4244: '=' : conversion from 'const real_T' 
to 'int32_T', possible loss of data
ec_slave3.c(1021) : warning C4244: '=' : conversion from 'const real_T' 
to 'int32_T', possible loss of data
ec_slave3.c(1022) : warning C4244: '=' : conversion from 'const real_T' 
to 'int32_T', possible loss of data
ec_slave3.c(1063) : warning C4244: '=' : conversion from 'real_T' to 
'uint32_T', possible loss of data
ec_slave3.c(1067) : warning C4244: '=' : conversion from 'real_T' to 
'uint32_T', possible loss of data
ec_slave3.c(1095) : warning C4267: '=' : conversion from 'size_t' to 
'uint_T', possible loss of data
ec_slave3.c(1111) : warning C4267: 'function' : conversion from 'size_t' 
to 'int', possible loss of data
ec_slave3.c(1192) : warning C4267: 'function' : conversion from 'size_t' 
to 'int', possible loss of data
ec_slave3.c(1210) : warning C4267: '+=' : conversion from 'size_t' to 
'int_T', possible loss of data
ec_slave3.c(1224) : warning C4267: '=' : conversion from 'size_t' to 
'int32_T', possible loss of data
ec_slave3.c(1323) : warning C4244: 'initializing' : conversion from 
'double' to 'uint_T', possible loss of data
ec_slave3.c(1372) : warning C4244: '+=' : conversion from 'const real_T' 
to 'uint_T', possible loss of data
ec_slave3.c(1396) : warning C4267: 'function' : conversion from 'size_t' 
to 'int', possible loss of data
ec_slave3.c(1416) : error C2065: 'ssize_t' : undeclared identifier
ec_slave3.c(1416) : error C2146: syntax error : missing ')' before 
identifier 'val'
ec_slave3.c(1417) : error C2059: syntax error : ')'
ec_slave3.c(1433) : error C2065: 'ssize_t' : undeclared identifier
ec_slave3.c(1433) : error C2146: syntax error : missing ')' before 
identifier 'val'
ec_slave3.c(1434) : error C2059: syntax error : ')'
ec_slave3.c(1444) : error C2065: 'ssize_t' : undeclared identifier
ec_slave3.c(1444) : error C2146: syntax error : missing ')' before 
identifier 'val'
ec_slave3.c(1445) : error C2059: syntax error : ')'
ec_slave3.c(1466) : warning C4244: '=' : conversion from 'real_T' to 
'size_t', possible loss of data
ec_slave3.c(1472) : error C2065: 'ssize_t' : undeclared identifier
ec_slave3.c(1472) : error C2146: syntax error : missing ')' before 
identifier 'val'
ec_slave3.c(1489) : warning C4267: 'function' : conversion from 'size_t' 
to 'uint_T', possible loss of data
ec_slave3.c(1493) : warning C4267: 'function' : conversion from 'size_t' 
to 'uint_T', possible loss of data
ec_slave3.c(1493) : warning C4267: 'function' : conversion from 'size_t' 
to 'uint_T', possible loss of data
ec_slave3.c(1495) : warning C4267: 'function' : conversion from 'size_t' 
to 'uint_T', possible loss of data
ec_slave3.c(1495) : warning C4267: 'function' : conversion from 'size_t' 
to 'uint_T', possible loss of data
ec_slave3.c(1499) : warning C4267: 'function' : conversion from 'size_t' 
to 'uint_T', possible loss of data
ec_slave3.c(1499) : warning C4267: 'function' : conversion from 'size_t' 
to 'uint_T', possible loss of data
ec_slave3.c(1502) : warning C4244: '+=' : conversion from '__int64' to 
'int_T', possible loss of data
ec_slave3.c(1508) : warning C4267: 'function' : conversion from 'size_t' 
to 'uint_T', possible loss of data
ec_slave3.c(1533) : error C2061: syntax error : identifier 
'get_port_config'
ec_slave3.c(1533) : error C2059: syntax error : ';'
ec_slave3.c(1533) : error C2059: syntax error : 'type'
ec_slave3.c(1620) : warning C4013: 'get_port_config' undefined; assuming 
extern returning int
ec_slave3.c(1736) : warning C4244: '=' : conversion from 'double' to 
'unsigned int', possible loss of data
ec_slave3.c(1746) : warning C4244: 'function' : conversion from 
'__int64' to 'int_T', possible loss of data
ec_slave3.c(1755) : warning C4244: 'function' : conversion from 
'__int64' to 'int_T', possible loss of data
ec_slave3.c(1759) : warning C4244: '=' : conversion from '__int64' to 
'int_T', possible loss of data
ec_slave3.c(1849) : warning C4244: 'initializing' : conversion from 
'__int64' to 'uint_T', possible loss of data
ec_slave3.c(1854) : warning C4018: '>' : signed/unsigned mismatch
ec_slave3.c(1901) : warning C4244: '=' : conversion from '__int64' to 
'int_T', possible loss of data
ec_slave3.c(2090) : warning C4267: '=' : conversion from 'size_t' to 
'uint32_T', possible loss of data
ec_slave3.c(2236) : warning C4244: 'initializing' : conversion from 
'__int64' to 'uint_T', possible loss of data
ec_slave3.c(2267) : warning C4244: '=' : conversion from '__int64' to 
'uint32_T', possible loss of data

   C:\PROGRA~1\MATLAB\R2013B\BIN\MEX.PL: Error: Compile of 'ec_slave3.c' 
failed.

Unable to complete successfully.
Error in setup (line 11)
mex ec_slave3.c
Error in run (line 63)
evalin('caller', [script ';']);
Error in setup (line 16)
run EtherCAT/setup.m
Error in run (line 63)
evalin('caller', [script ';']);
Error in setup_etherlab (line 11)
run blocks/setup.m


I also try it with the sourec from etherlab, but it also abort with the 
same error.

I use Windows 7 64 bit, Matlab R2013b and my mex compiler is Windows SDK 
7.1.

Can someone help me?

Thanks

Costa Pavlides



More information about the Etherlab-users mailing list