Error while building Simulink model
Show older comments
I had prepared the simulink model in other user account on PC and tried to run it on some other account. It gave me an error. I am pasting the whole build text here
### Generating code into build directory: C:\Documents and Settings\ec250-1\Desktop\Temperature_Control\rt_sens2_quarc_windows
### Invoking Target Language Compiler on rt_sens2.rtw
tlc
-r
C:\Documents and Settings\ec250-1\Desktop\Temperature_Control\rt_sens2_quarc_windows\rt_sens2.rtw
C:\Program Files\Quanser\QUARC\quarc\quarc_windows.tlc
-OC:\Documents and Settings\ec250-1\Desktop\Temperature_Control\rt_sens2_quarc_windows
-IC:\Program Files\Quanser\QUARC\quarc
-IC:\Program Files\Quanser\QUARC\blocks\hil
-IC:\Documents and Settings\ec250-1\Desktop\Temperature_Control\rt_sens2_quarc_windows\tlc
-IC:\MATLAB\R2009a\rtw\c\tlc\mw
-IC:\MATLAB\R2009a\rtw\c\tlc\lib
-IC:\MATLAB\R2009a\rtw\c\tlc\blocks
-IC:\MATLAB\R2009a\rtw\c\tlc\fixpt
-IC:\MATLAB\R2009a\stateflow\c\tlc
-aEnforceIntegerDowncast=1
-aFoldNonRolledExpr=1
-aInlineInvariantSignals=0
-aInlineParameters=0
-aLocalBlockOutputs=1
-aRollThreshold=5
-aZeroInternalMemoryAtStartup=1
-aZeroExternalMemoryAtStartup=1
-aInitFltsAndDblsToZero=0
-aForceBlockIOInitOptimize=0
-aGenerateReport=0
-aGenCodeOnly=0
-aRTWVerbose=1
-aIncludeHyperlinkInReport=0
-aLaunchReport=0
-aGenerateTraceInfo=0
-aForceParamTrailComments=0
-aGenerateComments=1
-aIgnoreCustomStorageClasses=1
-aIncHierarchyInIds=0
-aMaxRTWIdLen=31
-aShowEliminatedStatements=0
-aIncDataTypeInIds=0
-aInsertBlockDesc=0
-aIgnoreTestpoints=0
-aSimulinkBlockComments=1
-aInlinedPrmAccess="Literals"
-aTargetFcnLib="ansi_tfl_table_tmw.mat"
-aIsPILTarget=0
-aLogVarNameModifier="rt_"
-aGenerateFullHeader=1
-aExtMode=1
-aExtModeStaticAlloc=0
-aExtModeTesting=0
-aExtModeStaticAllocSize=1000000
-aExtModeTransport=0
-aRTWCAPISignals=0
-aRTWCAPIParams=0
-aGenerateASAP2=0
-aQuarcMatFileLogging=0
-aStopOnOverrun=0
-aFastSystemTimer=0
-aHaveStdio=1
-aDynamicReconfiguration=0
-aDebug=0
-aDebugHeap=0
-aAssertionAction="Stop model with an error"
-aMinimumThreadPriority=2
-aStackSize=0
-aPermissibleCPUs="[]"
-aConfigurationVariables=""
-aGenerateTraceInfo=0
-aIgnoreTestpoints=0
-p10000
### Loading TLC function libraries
.....
### Initial pass through model to cache user defined code
.
### Caching model source code
.................................................
### Writing header file rt_sens2_types.h
### Writing header file rt_sens2.h
.
### Writing source file rt_sens2.c
### Writing header file rt_sens2_private.h
### Writing header file rtmodel.h
.
### Writing source file rt_sens2_data.c
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.c
### Writing header file rtGetInf.h
.
### Writing source file rtGetInf.c
### Writing header file rtGetNaN.h
### Writing source file rtGetNaN.c
### TLC code generation complete.
### Generating TLC interface API.
.......................
### Creating data type transition file rt_sens2_dt.h
..
### Processing Template Makefile: C:\Program Files\Quanser\QUARC\quarc\R2009a\quarc_windows.tmf
### rt_sens2.mk which is generated from C:\Program Files\Quanser\QUARC\quarc\R2009a\quarc_windows.tmf is up to date
### Building rt_sens2: .\rt_sens2.bat
C:\Documents and Settings\ec250-1\Desktop\Temperature_Control\rt_sens2_quarc_windows>set MATLAB=C:\MATLAB\R2009a
C:\Documents and Settings\ec250-1\Desktop\Temperature_Control\rt_sens2_quarc_windows>set MSVCDir=c:\program files\microsoft visual studio .net 2003\vc7
C:\Documents and Settings\ec250-1\Desktop\Temperature_Control\rt_sens2_quarc_windows>"C:\MATLAB\R2009a\rtw\bin\win32\envcheck" INCLUDE "c:\program files\microsoft visual studio .net 2003\vc7\platformsdk\include"
C:\Documents and Settings\ec250-1\Desktop\Temperature_Control\rt_sens2_quarc_windows>if errorlevel 1 goto vcvars32
C:\Documents and Settings\ec250-1\Desktop\Temperature_Control\rt_sens2_quarc_windows>set VSINSTALLDIR=c:\program files\microsoft visual studio .net 2003\common7\ide
C:\Documents and Settings\ec250-1\Desktop\Temperature_Control\rt_sens2_quarc_windows>set VCINSTALLDIR=c:\program files\microsoft visual studio .net 2003
C:\Documents and Settings\ec250-1\Desktop\Temperature_Control\rt_sens2_quarc_windows>set FrameworkSDKDir=c:\program files\microsoft visual studio .net 2003\FrameworkSDK
C:\Documents and Settings\ec250-1\Desktop\Temperature_Control\rt_sens2_quarc_windows>set FrameworkDir=c:\program files\microsoft visual studio .net 2003\Framework
C:\Documents and Settings\ec250-1\Desktop\Temperature_Control\rt_sens2_quarc_windows>call "C:\MATLAB\R2009a\toolbox\rtw\rtw\private\vcvars32_710.bat"
Setting environment for using Microsoft Visual Studio .NET 2003 tools.
(If you have another version of Visual Studio or Visual C++ installed and wish
to use its tools from the command line, run vcvars32.bat for that version.)
C:\Documents and Settings\ec250-1\Desktop\Temperature_Control\rt_sens2_quarc_windows>cd .
C:\Documents and Settings\ec250-1\Desktop\Temperature_Control\rt_sens2_quarc_windows>nmake -f rt_sens2.mk GENERATE_REPORT=0 MAT_FILE=0 DEBUG=0 DEBUG_HEAP=0
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
### Compiling rt_sens2.c
cl -Ox -DNDEBUG -DEXT_MODE -DMODEL_URI="shmem://rt_sens2:1" -DVERBOSE -DUSE_RTMODEL -DMODEL=rt_sens2 -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=1 -DMULTITASKING=0 -DHAVESTDIO -DVXWORKS -DQUARC -DTARGET_TYPE=windows -D_CRT_SECURE_NO_DEPRECATE -DASSERTIONS=1 -DDOASSERTS -DNDEBUG -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -DWIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DWINVER=0x0500 -D_MT -D_DLL -MD rt_sens2.c
rt_sens2.c
### Compiling rtGetInf.c
cl -Ox -DNDEBUG -DEXT_MODE -DMODEL_URI="shmem://rt_sens2:1" -DVERBOSE -DUSE_RTMODEL -DMODEL=rt_sens2 -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=1 -DMULTITASKING=0 -DHAVESTDIO -DVXWORKS -DQUARC -DTARGET_TYPE=windows -D_CRT_SECURE_NO_DEPRECATE -DASSERTIONS=1 -DDOASSERTS -DNDEBUG -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -DWIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DWINVER=0x0500 -D_MT -D_DLL -MD rtGetInf.c
rtGetInf.c
### Compiling rtGetNaN.c
cl -Ox -DNDEBUG -DEXT_MODE -DMODEL_URI="shmem://rt_sens2:1" -DVERBOSE -DUSE_RTMODEL -DMODEL=rt_sens2 -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=1 -DMULTITASKING=0 -DHAVESTDIO -DVXWORKS -DQUARC -DTARGET_TYPE=windows -D_CRT_SECURE_NO_DEPRECATE -DASSERTIONS=1 -DDOASSERTS -DNDEBUG -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -DWIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DWINVER=0x0500 -D_MT -D_DLL -MD rtGetNaN.c
rtGetNaN.c
### Compiling rt_nonfinite.c
cl -Ox -DNDEBUG -DEXT_MODE -DMODEL_URI="shmem://rt_sens2:1" -DVERBOSE -DUSE_RTMODEL -DMODEL=rt_sens2 -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=1 -DMULTITASKING=0 -DHAVESTDIO -DVXWORKS -DQUARC -DTARGET_TYPE=windows -D_CRT_SECURE_NO_DEPRECATE -DASSERTIONS=1 -DDOASSERTS -DNDEBUG -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -DWIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DWINVER=0x0500 -D_MT -D_DLL -MD rt_nonfinite.c
rt_nonfinite.c
### Compiling rt_sens2_data.c
cl -Ox -DNDEBUG -DEXT_MODE -DMODEL_URI="shmem://rt_sens2:1" -DVERBOSE -DUSE_RTMODEL -DMODEL=rt_sens2 -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=1 -DMULTITASKING=0 -DHAVESTDIO -DVXWORKS -DQUARC -DTARGET_TYPE=windows -D_CRT_SECURE_NO_DEPRECATE -DASSERTIONS=1 -DDOASSERTS -DNDEBUG -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -DWIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DWINVER=0x0500 -D_MT -D_DLL -MD rt_sens2_data.c
rt_sens2_data.c
### Compiling rt_sens2_main.c
cl -Ox -DNDEBUG -DEXT_MODE -DMODEL_URI="shmem://rt_sens2:1" -DVERBOSE -DUSE_RTMODEL -DMODEL=rt_sens2 -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=1 -DMULTITASKING=0 -DHAVESTDIO -DVXWORKS -DQUARC -DTARGET_TYPE=windows -D_CRT_SECURE_NO_DEPRECATE -DASSERTIONS=1 -DDOASSERTS -DNDEBUG -c -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -DWIN32 -D_WIN32 -W3 -D_WINNT -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0500 -DWINVER=0x0500 -D_MT -D_DLL -MD rt_sens2_main.c
rt_sens2_main.c
rc /r rt_sens2.auto
fatal error RC1110: could not open rt_sens2.auto
NMAKE : fatal error U1077: 'rc' : return code '0x1'
Stop.
C:\Documents and Settings\ec250-1\Desktop\Temperature_Control\rt_sens2_quarc_windows>echo The make command returned an error of 2
The make command returned an error of 2
C:\Documents and Settings\ec250-1\Desktop\Temperature_Control\rt_sens2_quarc_windows>An_error_occurred_during_the_call_to_make
'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command,
operable program or batch file.
As you can see im using a Quanser board(HIL) qith QUARC 2.1 . I also not able not run model made on other computers.I then tried running the model on other computer but i still get the same error.
1 Comment
Kaustubha Govind
on 7 Oct 2011
I would recommend contacting QuaRC support regarding this issue. It looks like the file rt_sens2.auto is specific to the QuaRC Windows Target and not generated by Simulink Coder.
Answers (0)
Categories
Find more on Block and Blockset Authoring in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!