[simulink] execution error on SIL

13 visualizzazioni (ultimi 30 giorni)
seo hyeongkyeong
seo hyeongkyeong il 23 Lug 2015
Risposto: Rohit Jain il 27 Lug 2015
This is model I made.
And this is setting for executing SIL.
But this error is occurred. How can I solve this error?
>> sim('untitled')
### Starting Real-Time Workshop build procedure for model: untitled ### Generating code into build directory: C:\SimulinkIntegration\simpleVnV\model\test\untitled_ert_rtw ### Invoking Target Language Compiler on untitled.rtw ### Using System Target File: c:\MATLAB\R2010a\rtw\c\ert\ert.tlc ### Loading TLC function libraries ..... ### Initial pass through model to cache user defined code . ### Caching model source code ................. ### Writing header file untitled.h ### Writing header file untitled_types.h . ### Writing header file rtwtypes.h ### Writing source file untitled.c . ### Writing header file untitled_private.h ### Writing source file untitled_data.c . ### Writing source file ert_main.c ### TLC code generation complete. ### Creating project marker file: rtw_proj.tmw . ### Processing Template Makefile: c:\MATLAB\R2010a\rtw\c\ert\ert_vcx64.tmf ### Creating untitled.mk from c:\MATLAB\R2010a\rtw\c\ert\ert_vcx64.tmf ### Building untitled: .\untitled.bat
C:\SimulinkIntegration\simpleVnV\model\test\untitled_ert_rtw>call "C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\Tools\..\..\VC\vcvarsall" AMD64 Setting environment for using Microsoft Visual Studio 2005 x64 tools.
Microsoft® Program Maintenance Utility Copyright (C) Microsoft Corporation. All rights reserved.
### Compiling untitled.c cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS -D_AMD64_=1 -DWIN64 -D_WIN64 -DWIN32 -D_WIN32 /FIPRE64PRA.H -Wp64 -W4 -D_WINNT -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DWINVER=0x0500 -D_MT -MT -D_CRT_SECURE_NO_WARNINGS /Od /Oy- -DMODEL=untitled -DNUMST=1 -DNCSTATES=0 -DMAT_FILE=0 -DINTEGER_CODE=0 -DONESTEPFCN=1 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DMT=0 untitled.c untitled.c untitled.c(37) : warning C4244: '=' : 'int'에서 'boolean_T'(으)로 변환하면서 데이터가 손실될 수 있습니다. ### Compiling untitled_data.c cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS -D_AMD64_=1 -DWIN64 -D_WIN64 -DWIN32 -D_WIN32 /FIPRE64PRA.H -Wp64 -W4 -D_WINNT -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DWINVER=0x0500 -D_MT -MT -D_CRT_SECURE_NO_WARNINGS /Od /Oy- -DMODEL=untitled -DNUMST=1 -DNCSTATES=0 -DMAT_FILE=0 -DINTEGER_CODE=0 -DONESTEPFCN=1 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DMT=0 untitled_data.c untitled_data.c ### Created executable "ObjectModulesOnly" ### Successful completion of Real-Time Workshop build procedure for model: untitled ### Preparing to start SIL simulation ... . ### Processing Template Makefile: c:\MATLAB\R2010a\rtw\c\ert\ert_vcx64.tmf ### Creating untitled.mk from c:\MATLAB\R2010a\rtw\c\ert\ert_vcx64.tmf ### Building untitled: .\untitled.bat
C:\SimulinkIntegration\simpleVnV\model\test\untitled_ert_rtw\pil>call "C:\Program Files (x86)\Microsoft Visual Studio 8\Common7\Tools\..\..\VC\vcvarsall" AMD64 Setting environment for using Microsoft Visual Studio 2005 x64 tools.
Microsoft® Program Maintenance Utility Copyright (C) Microsoft Corporation. All rights reserved.
### Compiling c:\MATLAB\R2010a\toolbox\rtw\targets\pil\c\pil_interface_lib.c cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS -D_AMD64_=1 -DWIN64 -D_WIN64 -DWIN32 -D_WIN32 /FIPRE64PRA.H -Wp64 -W4 -D_WINNT -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DWINVER=0x0500 -D_MT -MT -D_CRT_SECURE_NO_WARNINGS /Od /Oy- -DMODEL=untitled -DNUMST=1 -DNCSTATES=0 -DMAT_FILE=0 -DINTEGER_CODE=0 -DONESTEPFCN=1 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DMT=0 c:\MATLAB\R2010a\toolbox\rtw\targets\pil\c\pil_interface_lib.c pil_interface_lib.c c:\matlab\r2010a\toolbox\rtw\targets\pil\c\pil_interface_lib.c(272) : warning C4701: 초기화되지 않았을 수 있는 'pilTID' 지역 변수를 사용했습니다. ### Compiling pil_interface.c cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS -D_AMD64_=1 -DWIN64 -D_WIN64 -DWIN32 -D_WIN32 /FIPRE64PRA.H -Wp64 -W4 -D_WINNT -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DWINVER=0x0500 -D_MT -MT -D_CRT_SECURE_NO_WARNINGS /Od /Oy- -DMODEL=untitled -DNUMST=1 -DNCSTATES=0 -DMAT_FILE=0 -DINTEGER_CODE=0 -DONESTEPFCN=1 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DMT=0 pil_interface.c pil_interface.c ### Compiling c:\MATLAB\R2010a\toolbox\rtw\targets\pil\c\pil_rtio_data_stream.c cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS -D_AMD64_=1 -DWIN64 -D_WIN64 -DWIN32 -D_WIN32 /FIPRE64PRA.H -Wp64 -W4 -D_WINNT -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DWINVER=0x0500 -D_MT -MT -D_CRT_SECURE_NO_WARNINGS /Od /Oy- -DMODEL=untitled -DNUMST=1 -DNCSTATES=0 -DMAT_FILE=0 -DINTEGER_CODE=0 -DONESTEPFCN=1 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DMT=0 c:\MATLAB\R2010a\toolbox\rtw\targets\pil\c\pil_rtio_data_stream.c pil_rtio_data_stream.c c:\MATLAB\R2010a\toolbox\rtw\targets\pil\c\pil_rtio_data_stream.c(75) : warning C4267: '함수' : 'size_t'에서 'uint32_T'(으)로 변환하면서 데이터가 손실될 수 있습니다. c:\MATLAB\R2010a\toolbox\rtw\targets\pil\c\pil_rtio_data_stream.c(149) : warning C4267: '-=' : 'size_t'에서 'uint32_T'(으)로 변환하면서 데이터가 손실될 수 있습니다. ### Compiling c:\MATLAB\R2010a\toolbox\rtw\targets\pil\c\pil_host_main.c cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS -D_AMD64_=1 -DWIN64 -D_WIN64 -DWIN32 -D_WIN32 /FIPRE64PRA.H -Wp64 -W4 -D_WINNT -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DWINVER=0x0500 -D_MT -MT -D_CRT_SECURE_NO_WARNINGS /Od /Oy- -DMODEL=untitled -DNUMST=1 -DNCSTATES=0 -DMAT_FILE=0 -DINTEGER_CODE=0 -DONESTEPFCN=1 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DMT=0 c:\MATLAB\R2010a\toolbox\rtw\targets\pil\c\pil_host_main.c pil_host_main.c ### Compiling c:\MATLAB\R2010a\rtw\c\src\rtiostream\rtiostreamtcpip\rtiostream_tcpip.c cl -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -GS -D_AMD64_=1 -DWIN64 -D_WIN64 -DWIN32 -D_WIN32 /FIPRE64PRA.H -Wp64 -W4 -D_WINNT -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DWINVER=0x0500 -D_MT -MT -D_CRT_SECURE_NO_WARNINGS /Od /Oy- -DMODEL=untitled -DNUMST=1 -DNCSTATES=0 -DMAT_FILE=0 -DINTEGER_CODE=0 -DONESTEPFCN=1 -DTERMFCN=1 -DHAVESTDIO -DMULTI_INSTANCE_CODE=0 -DMT=0 c:\MATLAB\R2010a\rtw\c\src\rtiostream\rtiostreamtcpip\rtiostream_tcpip.c rtiostream_tcpip.c ### Linking ... c:\MATLAB\R2010a\sys\perl\win32\bin\perl c:\MATLAB\R2010a\rtw\c\tools\mkvc_lnk.pl untitled.lnk pil_interface_lib.obj pil_interface.obj pil_rtio_data_stream.obj pil_host_main.obj rtiostream_tcpip.obj link /RELEASE /INCREMENTAL:NO /NOLOGO -subsystem:console,5.02 kernel32.lib ws2_32.lib mswsock.lib advapi32.lib bufferoverflowu.lib ..\untitled.obj ..\untitled_data.obj @untitled.lnk @untitled_ref.rsp -out:untitled.exe ### Created executable untitled.exe ### Starting SIL simulation for model: untitled ??? An error occurred while calling into the PIL implementation.
Caused by: Error using ==> Utils.Utils>Utils.getChildPidWithTimeout at 218 Assertion failed.
>>

Risposte (1)

Rohit Jain
Rohit Jain il 27 Lug 2015
I suspect that the issue is particular to the installation of MATLAB. As a first step I would suggest you to follow the below link and check if you are able to generate code for demo models in SIL mode.
If you are unable to generate code for demo models in SIL mode then perhaps there is some issue in installation of MATLAB and you can try reinstalling it and then check if that helps.

Categorie

Scopri di più su Test Model Components in Help Center e File Exchange

Tag

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by