Discussion:
SIT (nidll) Unterminated String Error
(too old to reply)
RichardJarvis
2008-08-05 09:10:10 UTC
Permalink
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
RichardJarvis
2008-08-05 09:40:06 UTC
Permalink
I regret I will be unable to provide the model source or generated code
JamesC
2008-08-11 07:40:06 UTC
Permalink
Hi Richard, I know you have already verified you can built a Generic Real-Time model, however did you run the model without creating a make-file?In the log, an error message that results is a problem with the simulink model first and fore most. Have you determined what all the warnings are related to?Are you sure there is not a problem in the Simulink model?Please can you answer these questions and I will see what I can do for you.RegardsJamesCNIUK and IrelandIt only takes a second to rate an answer :)
RichardJarvis
2008-08-11 07:40:07 UTC
Permalink
Thank you for the reply. Since posting I discovered the issue was fixed by bizarrely replacing a standard Simulink saturation block with a fresh copy (copying the parameters exactly). I cannot provide an explanation for this.
 
Interestingly I can now build a DLL fine, however when trying to run in LV the model will not step and implies that it has reached its last step (flag set true) despite having an "Inf" stop time. Further investigation ongoing! I will post results here for reference (it might help someone eventually!)
 
Many thanks for your help though.

Loading...