LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simulation Interface Toolkit 3.0.2 with Matlab 7.3 (RTW 6.5)

Hello !!

I wonder if I can use Simulation Interface Toolkit 3.0.2 with Matlab 7.3 an Microsoft Visual C/C++ version 6.0, because I cannot build the .dll file of the simplest example (sinewave.mdl).
I donn't know if I need a patch or something.


Here I send you the .mdl file and the error messages:

Error building Real-Time Workshop target for block diagram 'sinewave'. MATLAB error message:
Error using ==> RTW.genMakefileAndBuild
### Unable to find build success string: "*** Created" in build log.

-----------------------------------------------------------------------------------------------------------------------------------


### Starting Real-Time Workshop build procedure for model: sine_2007
### Generating code into build directory: C:\Archivos de programa\MATLAB\R2006b\work\Labview_2007\sine_2007_nidll_rtw
### Invoking Target Language Compiler on sine_2007.rtw
    tlc
    -r
    C:\Archivos de programa\MATLAB\R2006b\work\Labview_2007\sine_2007_nidll_rtw\sine_2007.rtw
    C:\SimulationInterfaceToolkit\ModelInterface\tmw\nidll.tlc
    -OC:\Archivos de programa\MATLAB\R2006b\work\Labview_2007\sine_2007_nidll_rtw
    -IC:\SimulationInterfaceToolkit\ModelInterface\tmw
    -IC:\SimulationInterfaceToolkit\UserInterface\tlc_c
    -IC:\Archivos de programa\MATLAB\R2006b\work\Labview_2007\sine_2007_nidll_rtw\tlc
    -IC:\Archivos de programa\MATLAB\R2006b\rtw\c\tlc\mw
    -IC:\Archivos de programa\MATLAB\R2006b\rtw\c\tlc\lib
    -IC:\Archivos de programa\MATLAB\R2006b\rtw\c\tlc\blocks
    -IC:\Archivos de programa\MATLAB\R2006b\rtw\c\tlc\fixpt
    -IC:\Archivos de programa\MATLAB\R2006b\stateflow\c\tlc
    -aEnforceIntegerDowncast=0
    -aFoldNonRolledExpr=0
    -aInlineInvariantSignals=0
    -aInlineParameters=0
    -aLocalBlockOutputs=0
    -aRollThreshold=5
    -aGenerateReport=0
    -aGenCodeOnly=0
    -aRTWVerbose=1
    -aIncludeHyperlinkInReport=0
    -aLaunchReport=0
    -aForceParamTrailComments=0
    -aGenerateComments=1
    -aIgnoreCustomStorageClasses=1
    -aIncHierarchyInIds=0
    -aMaxRTWIdLen=31
    -aShowEliminatedStatements=0
    -aPrefixModelToSubsysFcnNames=1
    -aIncDataTypeInIds=0
    -aInsertBlockDesc=0
    -aSimulinkBlockComments=1
    -aInlinedPrmAccess="Literals"
    -aTargetFcnLib="ansi_tfl_tmw.mat"
    -aIsPILTarget=0
    -aLogVarNameModifier="rt_"
    -aGenerateFullHeader=1
    -p10000


### Loading TLC function libraries

....
### Initial pass through model to cache user defined code
.
### Caching model source code
......................
### Writing header file sine_2007_types.h
### Writing header file sine_2007.h
### Writing source file sine_2007.cpp
### Writing header file sine_2007_private.h
.
### Writing header file rtmodel.h
### Writing source file sine_2007_data.cpp
### Writing header file rt_nonfinite.h
### Writing source file rt_nonfinite.cpp
.
### TLC code generation complete.
### Generating TLC interface API.
..
## SIT 3.0 Modified sine_2007.c file
## SIT 3.0 Modified sine_2007.h file

## SIT 3.0 Generated Ports Readme file



.
### Processing Template Makefile: C:\SimulationInterfaceToolkit\ModelInterface\tmw\nidll_vc.tmf
### sine_2007.mk which is generated from C:\SimulationInterfaceToolkit\ModelInterface\tmw\nidll_vc.tmf is up to date
### Building sine_2007: .\sine_2007.bat
 
C:\Archivos de programa\MATLAB\R2006b\work\Labview_2007\sine_2007_nidll_rtw>set MATLAB=C:\Archivos de programa\MATLAB\R2006b 
 
C:\Archivos de programa\MATLAB\R2006b\work\Labview_2007\sine_2007_nidll_rtw>set MSVCDir=c:\archivos de programa\microsoft visual studio\vc98 
 
C:\Archivos de programa\MATLAB\R2006b\work\Labview_2007\sine_2007_nidll_rtw>set MSDevDir=c:\archivos de programa\microsoft visual studio\common\msdev98 
 
C:\Archivos de programa\MATLAB\R2006b\work\Labview_2007\sine_2007_nidll_rtw>"C:\Archivos de programa\MATLAB\R2006b\rtw\bin\win32\envcheck" INCLUDE "c:\archivos de programa\microsoft visual studio\vc98\include" 
 
C:\Archivos de programa\MATLAB\R2006b\work\Labview_2007\sine_2007_nidll_rtw>if errorlevel 1 goto vcvars32 
 
C:\Archivos de programa\MATLAB\R2006b\work\Labview_2007\sine_2007_nidll_rtw>"C:\Archivos de programa\MATLAB\R2006b\rtw\bin\win32\envcheck" PATH "c:\archivos de programa\microsoft visual studio\vc98\bin" 
 
C:\Archivos de programa\MATLAB\R2006b\work\Labview_2007\sine_2007_nidll_rtw>if errorlevel 1 goto vcvars32 
 
C:\Archivos de programa\MATLAB\R2006b\work\Labview_2007\sine_2007_nidll_rtw>goto make 
 
C:\Archivos de programa\MATLAB\R2006b\work\Labview_2007\sine_2007_nidll_rtw>cd . 
 
C:\Archivos de programa\MATLAB\R2006b\work\Labview_2007\sine_2007_nidll_rtw>nmake -f sine_2007.mk  GENERATE_REPORT=0 ADD_MDL_NAME_TO_GLOBALS=1 VISUAL_VER=6.0 
Open Watcom C/C++ NMAKE Clone for 386  Version 1.6
Portions Copyright (c) 1995-2002 Sybase, Inc. All Rights Reserved.
Source code is available under the Sybase Open Watcom Public License.
See http://www.openwatcom.org/ for details.
mkdir C:\SimulationInterfaceToolkit\ModelInterface\\tmw\lib
Ya existe el subdirectorio o el archivo C:\SimulationInterfaceToolkit\ModelInterface\\tmw\lib.
        1 archivos copiados.
        1 archivos copiados.
 
cl -Ot  -DUSE_RTMODEL -DNI_ROOTMODEL_sine_2007 -DMODEL=sine_2007 -DRT -DNUMST=2 -DTID01EQ=1 -DNCSTATES=0 -DMT=0 -DHAVESTDIO -DNATIONAL_INSTRUMENTS_SIT  -Ox -c -W3 -DCRTAPI1=_cdecl -DCRTAPI2=_cdecl -nologo -D_X86_=1 -D_WINNT -D_WIN32_WINNT=0x0400 -D_WIN32_IE=0x0300 -DWINVER=0x0400 -DWIN32  -D_WIN32 -D_MT -D_DLL -MD -DRVE sine_2007.c
sine_2007.c
model_info.h(57): Warning! W138: No newline at end of file
C:\SimulationInterfaceToolkit\ModelInterface\SIT_API.h(283): Warning! W138: No newline at end of file
sine_2007.c(20): Error! E1022: Missing or misspelled data type near 'sine_2007_rtModel'
sine_2007.c(20): Warning! W305: Type 'int' assumed in declaration of 'S'
sine_2007.c(27): Error! E1011: Symbol 'ExternalInputs_sine_2007' has not been declared
sine_2007.c(27): Error! E1011: Symbol 'rtIN' has not been declared
sine_2007.c(27): Error! E1063: Missing operand
sine_2007.c(27): Error! E1009: Expecting ';' but found 'S'
sine_2007.c(27): Error! E1063: Missing operand
sine_2007.c(27): Warning! W111: Meaningless use of an expression
sine_2007.c(31): Error! E1033: Expression for '->' must be 'pointer to struct or union'
sine_2007.c(31): Error! E1011: Symbol 'real_T' has not been declared
sine_2007.c(31): Error! E1009: Expecting ';' but found 'data'
sine_2007.c(31): Error! E1063: Missing operand
sine_2007.c(31): Warning! W302: Expression is only useful for its side effects
sine_2007.c(31): Error! E1009: Expecting ';' but found ']'
sine_2007.c(32): Error! E1063: Missing operand
sine_2007.c(32): Warning! W111: Meaningless use of an expression
sine_2007.c(32): Error! E1009: Expecting ';' but found 'else'
sine_2007.c(26): Warning! W202: Symbol 'count' has been defined, but not referenced
sine_2007.c(43): Error! E1022: Missing or misspelled data type near 'ExternalOutputs_sine_2007'
sine_2007.c(43): Warning! W132: No storage class or type specified
sine_2007.c(43): Warning! W305: Type 'int' assumed in declaration of 'ni_extout'
sine_2007.c(48): Error! E1011: Symbol 'ExternalOutputs_sine_2007' has not been declared
sine_2007.c(48): Error! E1011: Symbol 'rtOUT' has not been declared
sine_2007.c(48): Error! E1063: Missing operand
sine_2007.c(48): Error! E1009: Expecting ';' but found 'S'
sine_2007.c(48): Error! E1063: Missing operand
sine_2007.c(48): Warning! W111: Meaningless use of an expression
sine_2007.c(54): Error! E1032: Expression for '.' must be a 'structure' or 'union'
sine_2007.c(54): Error! E1147: Too many errors: compilation aborted
Error(E42): Last command making (sine_2007.obj) returned a bad status
Error(E02): Make execution terminated
 
C:\Archivos de programa\MATLAB\R2006b\work\Labview_2007\sine_2007_nidll_rtw>exit /B 0 
### Real-Time Workshop build procedure for model: 'sine_2007' aborted due to an error.



0 Kudos
Message 1 of 4
(5,010 Views)

Hello,

according to the SIT 3.0.2 readme file, it supports:

The MathWorks, Inc. MATLAB® / Simulink® application software R2006a.

The MathWorks, Inc. Real-Time Workshop® R2006a.

That is MATLAB 7.2 but not 7.3. So, it is not possible to use our SIT toolkit with the latest versions of MATLAB. Try with MATLAB 7.2 and let me know if you have the same probmem

Sorry for the inconvenience.

Cristobal Rus

National Instruments

 

 

0 Kudos
Message 2 of 4
(4,977 Views)
FYI, I am using  SIT 3.0.2, MATLAB 7.4, RTW 6.6.1, and MS VC++ 6.0 and it is working fine.
 
good luck,
 
Jim
0 Kudos
Message 3 of 4
(4,950 Views)

I am using Matlab 7.3 (R2006b) with SIT 3.0.2. and VC 6.0 and have no problems.

 

You might try building the model with one of the other RTW templates (grt) to see if maybe something is wrong with your compiler installation and setup under Matlab.

0 Kudos
Message 4 of 4
(4,943 Views)