07-06-2012 03:41 PM
As instructed in user manual, I am using the GNU Toolchain to create .out file in Matlab and getting the following error. The goal is to run the matlab models on LabVIEW real time target (cRIO 9076) using simulation interface toolkit. I was able create DLL file in Matlab/Real Time Target, but unable to create .out file using GNU Toolchain/VxWorks. Any suggestion is very much appreciated.
### Starting Real-Time Workshop build procedure for model: XYZ
### Generating code into build directory: C:\SIT_Test\XYZ_nidll_vxworks_rtw
### Invoking Target Language Compiler on XYZ.rtw
### Using System Target File:
C:\SimulationInterfaceToolkit\2010\VxWorks\ModelInterface\tmw\R2007b\nidll_vxwor
ks.tlc
Error: File:
C:\SimulationInterfaceToolkit\2010\VxWorks\ModelInterface\tmw\R2007b\nidll_vxwor
ks.tlc Line: 28 Column: 10
Unable to open %include file NI_SIT_shared.tlc
### Loading TLC function libraries
.....
### Initial pass through model to cache user defined code
.
### Caching model source code
..............................
### Writing header file XYZ.h
### Writing header file XYZ_types.h
.
### Writing header file rtwtypes.h
### Writing source file XYZ.c
### Writing header file XYZ_private.h
.
### Writing header file rtmodel.h
### Writing source file XYZ_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.
...
Error: File:
C:\SimulationInterfaceToolkit\2010\VxWorks\ModelInterface\tmw\R2007b\nidll_vxwor
ks.tlc Line: 32 Column: 10
Unable to open %include file nidll_codegen.tlc
### Real-Time Workshop build procedure for model: 'XYZ' aborted due to an error.
NI Software : LabVIEW version 2010 SP1
NI Hardware : RIO (cRIO, R Series, FlexRIO, sbRIO) device CRIO-9076
Driver Version : 4.1
OS : Windows XP
07-09-2012 10:20 AM
Hi ExcelX,
Following up with your conversation with my colleague Joe, I believe changing the hard-coded line in nidll_vxworks.tmf:
SIT_VERSION 5.0
to
SIT_VERSION 2010
helped resolve your issue. Keep us updated if any other changes were required to address this error. Thanks!