Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help on simulink real-time

308 views
Skip to first unread message

Kun

unread,
May 16, 2017, 9:16:08 PM5/16/17
to
I was running the confidence test on xPC target configuration (>>slrttest), and it stopped at Test 4. Any ideas what I did wrong? Thanks!

The following is the log from Diagnostic Viewer:

### Starting Simulink Real-Time build procedure for model: slrttestmdl
Code Generation 2 1
Elapsed: 19 sec
### Generating code into build folder: C:\Work\Mid Tier\slrttestmdl_slrt_rtw
### Invoking Target Language Compiler on slrttestmdl.rtw
### Using System Target File: C:\Program Files\MATLAB\R2017a\toolbox\slrt\rtw\slrt.tlc
Warning: This model contains blocks that do not handle sample time
changes at runtime. To avoid incorrect results, only change
the sample time in the original model, then rebuild the model.
### Loading TLC function libraries
### Initial pass through model to cache user defined code
.
### Caching model source code
### Generating TLC interface API.
### Writing source file slrttestmdl_capi.c
### Writing header file slrttestmdl_capi.h
### Writing header file slrttestmdl.h
### Writing header file slrttestmdl_types.h
.
### Writing header file rtwtypes.h
### Writing header file builtin_typeid_types.h
### Writing header file multiword_types.h
### Writing header file zero_crossing_types.h
### Writing source file slrttestmdl.c
### Writing header file slrttestmdl_private.h
### Writing header file rtmodel.h
.
### Writing source file slrttestmdl_data.c
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
### Writing header file rt_defines.h
### Writing header file rtGetInf.h
### Writing source file rtGetInf.c
### Writing header file rtGetNaN.h
.
### Writing source file rtGetNaN.c
### TLC code generation complete.
### Creating xPC Options Header file xpcoptions.h.
### Creating xPC Definition File xpcvcdll.def
### Creating model Hierarchy xml slrttestmdl.xml
### Creating model slrttestmdl_ref.m
### Create mapping files
### Patch xml-file
.
### Processing Template Makefile: C:\Program Files\MATLAB\R2017a\toolbox\slrt\rtw\slrt_vc.tmf
### slrttestmdl.mk which is generated from C:\Program Files\MATLAB\R2017a\toolbox\slrt\rtw\slrt_vc.tmf is up to date
### Building slrttestmdl: .\slrttestmdl.bat

C:\Work\Mid Tier\slrttestmdl_slrt_rtw>call "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\VCVARSALL.BAT " x86

Microsoft (R) Program Maintenance Utility Version 14.00.24210.0
Copyright (C) Microsoft Corporation. All rights reserved.

### Compiling slrttestmdl.c
cl -D_MT -MT /wd4996 /fp:fast /arch:SSE2 /W3 /Z7 /c /nologo /O2 /Oy- -DMODEL=slrttestmdl -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -DHAVESTDIO -DXPCMSVISUALC -DXPCCALLCONV=__cdecl -DUSE_RTMODEL -DERT_CORE slrttestmdl.c
slrttestmdl.c
### Compiling rtGetInf.c
cl -D_MT -MT /wd4996 /fp:fast /arch:SSE2 /W3 /Z7 /c /nologo /O2 /Oy- -DMODEL=slrttestmdl -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -DHAVESTDIO -DXPCMSVISUALC -DXPCCALLCONV=__cdecl -DUSE_RTMODEL -DERT_CORE rtGetInf.c
rtGetInf.c
### Compiling rtGetNaN.c
cl -D_MT -MT /wd4996 /fp:fast /arch:SSE2 /W3 /Z7 /c /nologo /O2 /Oy- -DMODEL=slrttestmdl -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -DHAVESTDIO -DXPCMSVISUALC -DXPCCALLCONV=__cdecl -DUSE_RTMODEL -DERT_CORE rtGetNaN.c
rtGetNaN.c
### Compiling rt_nonfinite.c
cl -D_MT -MT /wd4996 /fp:fast /arch:SSE2 /W3 /Z7 /c /nologo /O2 /Oy- -DMODEL=slrttestmdl -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -DHAVESTDIO -DXPCMSVISUALC -DXPCCALLCONV=__cdecl -DUSE_RTMODEL -DERT_CORE rt_nonfinite.c
rt_nonfinite.c
### Compiling slrttestmdl_capi.c
cl -D_MT -MT /wd4996 /fp:fast /arch:SSE2 /W3 /Z7 /c /nologo /O2 /Oy- -DMODEL=slrttestmdl -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -DHAVESTDIO -DXPCMSVISUALC -DXPCCALLCONV=__cdecl -DUSE_RTMODEL -DERT_CORE slrttestmdl_capi.c
slrttestmdl_capi.c
### Compiling slrttestmdl_data.c
cl -D_MT -MT /wd4996 /fp:fast /arch:SSE2 /W3 /Z7 /c /nologo /O2 /Oy- -DMODEL=slrttestmdl -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -DHAVESTDIO -DXPCMSVISUALC -DXPCCALLCONV=__cdecl -DUSE_RTMODEL -DERT_CORE slrttestmdl_data.c
slrttestmdl_data.c
### Compiling xpc_datatype_ground.c
cl -D_MT -MT /wd4996 /fp:fast /arch:SSE2 /W3 /Z7 /c /nologo /O2 /Oy- -DMODEL=slrttestmdl -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -DHAVESTDIO -DXPCMSVISUALC -DXPCCALLCONV=__cdecl -DUSE_RTMODEL -DERT_CORE xpc_datatype_ground.c
xpc_datatype_ground.c
### Compiling xpctarget.c
cl -D_MT -MT /wd4996 /fp:fast /arch:SSE2 /W3 /Z7 /c /nologo /O2 /Oy- -DMODEL=slrttestmdl -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -DHAVESTDIO -DXPCMSVISUALC -DXPCCALLCONV=__cdecl -DUSE_RTMODEL -DERT_CORE C:\PROGRA~1\MATLAB\R2017a\toolbox\rtw\targets\xpc\target\build\src\xpctarget.c
xpctarget.c
### Compiling appmappingData.c
cl -D_MT -MT /wd4996 /fp:fast /arch:SSE2 /W3 /Z7 /c /nologo /O2 /Oy- -DMODEL=slrttestmdl -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=2 -DMT=0 -DHAVESTDIO -DXPCMSVISUALC -DXPCCALLCONV=__cdecl -DUSE_RTMODEL -DERT_CORE appmappingData.c
appmappingData.c
### Linking ...
C:\PROGRA~1\MATLAB\R2017a\sys\perl\win32\bin\perl C:\PROGRA~1\MATLAB\R2017a\rtw\c\tools\mkvc_lnk.pl slrttestmdl.lnk slrttestmdl.obj rtGetInf.obj rtGetNaN.obj rt_nonfinite.obj slrttestmdl_capi.obj slrttestmdl_data.obj xpc_datatype_ground.obj rt_logging_mmi.obj rtw_modelmap_utils.obj rt_logging.obj xpctarget.obj appmappingData.obj legacy_stdio.obj
link /NOLOGO /DLL /SUBSYSTEM:CONSOLE /DEF:xpcvcdll.def /Include:_malloc /MAP /DEBUG C:\PROGRA~1\MATLAB\R2017a\toolbox\rtw\targets\xpc\target\build\lib\libatlas.a C:\PROGRA~1\MATLAB\R2017a\toolbox\rtw\targets\xpc\target\build\lib\libcblas.a xpcruntime.lib @slrttestmdl.lnk @slrttestmdl_ref.rsp -out:slrttestmdl_slrt.dll
LINK : program database C:\Work\Mid Tier\slrttestmdl_slrt_rtw\slrttestmdl_slrt.pdb missing; performing full link
Creating library slrttestmdl_slrt.lib and object slrttestmdl_slrt.exp
### Created DLL slrttestmdl_slrt.dll
C:\PROGRA~1\MATLAB\R2017a\toolbox\rtw\targets\xpc\xpc\bin\mkusrdlm -c+ -q+ slrttestmdl_slrt.dll ..\slrttestmdl
RTTarget-32 DLM Processor 6.05 (c) 1996,2016 On Time Informatik GmbH
### Created DLM ..\slrttestmdl.dlm
### Successful completion of build procedure for model: slrttestmdl
### Created MLDATX ..\slrttestmdl.mldatx
### Looking for target: TargetPC1
The call to slrt_make_rtw_hook, during the exit hook generated the following error:
TargetPC1: TCP/IP timeout while receiving data

The build process will terminate as a result.
Caused by:
TargetPC1: TCP/IP timeout while receiving data
Component:Simulink | Category:Block diagram error
### Download model onto target: TargetPC1

Kun

unread,
May 17, 2017, 12:22:08 PM5/17/17
to

hoxuant...@gmail.com

unread,
Apr 8, 2018, 11:16:23 PM4/8/18
to
Are you able to fix this problem?
I got the same error on TCP/IP timeout
0 new messages