LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SIT (nidll) Unterminated String Error

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: 76
File: C:\SimulationInterfaceToolkit\ModelInterface\tmw\R14\..\nidll_codegen.tlc Line: 508 Column: 57
Unterminated string
Error: Inside: EXPRESSION Line: 8 Column: 105
File: C:\SimulationInterfaceToolkit\ModelInterface\tmw\R14\..\nidll_codegen.tlc Line: 508 Column: 57
Unterminated string
Error: Inside: EXPRESSION Line: 8 Column: 77
File: C:\SimulationInterfaceToolkit\ModelInterface\tmw\R14\..\nidll_codegen.tlc Line: 508 Column: 57
syntax error
Error: Inside: EXPRESSION Line: 8 Column: 76
File: C:\SimulationInterfaceToolkit\ModelInterface\tmw\R14\..\nidll_codegen.tlc Line: 508 Column: 57
Unterminated 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.0
MS VC++ 6.0
 
 
Any ideas most welcome and received with thanks!
 
Regards,
 
Rich
0 Kudos
Message 1 of 4
(2,734 Views)
I regret I will be unable to provide the model source or generated code
0 Kudos
Message 2 of 4
(2,730 Views)
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.

Regards
JamesC
NIUK and Ireland

It only takes a second to rate an answer 🙂

Message 3 of 4
(2,701 Views)
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.
Message 4 of 4
(2,696 Views)