RichardJarvis
2008-08-05 09:10:10 UTC
Good day, I'm trying to build a model DLL in Simulink using NI SIT 4.0. The model builds using GRT and ERT (no auto config) fine (warnings galore but they are expected - unconnected inputs/outputs). When trying to build using nidll.tlc (either just autocoding or autocoding and linking to a DLL) I get an error which stops the build process: ### TLC code generation complete.### Generating TLC interface API...................................................................................................................................................................................................................................................## SIT 4.0 Modifying PMS.c file...Error: Inside: EXPRESSION Line: 8 Column: 76File: C:\SimulationInterfaceToolkit\ModelInterface\tmw\R14\..\nidll_codegen.tlc Line: 508 Column: 57Unterminated stringError: Inside: EXPRESSION Line: 8 Column: 105File: C:\SimulationInterfaceToolkit\ModelInterface\tmw\R14\..\nidll_codegen.tlc Line: 508 Column: 57Unterminated stringError: Inside: EXPRESSION Line: 8 Column: 77File: C:\SimulationInterfaceToolkit\ModelInterface\tmw\R14\..\nidll_codegen.tlc Line: 508 Column: 57syntax errorError: Inside: EXPRESSION Line: 8 Column: 76File: C:\SimulationInterfaceToolkit\ModelInterface\tmw\R14\..\nidll_codegen.tlc Line: 508 Column: 57Unterminated string### Real-Time Workshop build procedure for model: 'PMS' aborted due to an error. I am confused as to which file it is referring to when it has the error. nidll_codegen.tlc - At the locations given is either the middle of text or nothing after a comment.PMS.c - looks incomplete (as expected) with a lot of whitespace and the locations reference nothing or a valid line of code (nothing to do with a string). All strings in this file are terminated. As this is the file being generated I doubt it is this file causing issues For reference all other C files and headers are created fine (sub units). We are using: MATLAB 7.4.0 (R2007a)NI SIT 4.0MS VC++ 6.0 Any ideas most welcome and received with thanks! Regards, Rich