07-12-2019 01:50 AM
Hello,
i have a probleme when i tyry to compile my Simulink model ( in Simulink 2016b) with Veristand 2018 SP1.
i have this error :
Error: File: C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NiBusLib.tlc Line: 231 Column: 49
Unable to find Members within the CGType scope
Main program:
==> [00] C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NiBusLib.tlc:NiLibBusGetFlatSignalHierarchy_MF2018(231)
[01] C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NiBusLib.tlc:NiLibBusGetFlatSignalHierarchy(83)
[02] C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NiBusLib.tlc:NiLibBusGetSignalRecord(414)
[03] C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NiSignalLib.tlc:NiSignalsMapping(172)
[04] C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NIVeriStand_codegen.tlc:<NONE>(443)
Error: File: C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NiBusLib.tlc Line: 231 Column: 57
The left-hand side of a . operator must be a valid scope identifier
Main program:
==> [00] C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NiBusLib.tlc:NiLibBusGetFlatSignalHierarchy_MF2018(231)
[01] C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NiBusLib.tlc:NiLibBusGetFlatSignalHierarchy(83)
[02] C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NiBusLib.tlc:NiLibBusGetSignalRecord(414)
[03] C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NiSignalLib.tlc:NiSignalsMapping(172)
[04] C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NIVeriStand_codegen.tlc:<NONE>(443)
Error: File: C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NiBusLib.tlc Line: 231 Column: 64
The argument for an [] operation must be a repeated scope symbol, a vector, or a matrix
Main program:
==> [00] C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NiBusLib.tlc:NiLibBusGetFlatSignalHierarchy_MF2018(231)
[01] C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NiBusLib.tlc:NiLibBusGetFlatSignalHierarchy(83)
[02] C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NiBusLib.tlc:NiLibBusGetSignalRecord(414)
[03] C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NiSignalLib.tlc:NiSignalsMapping(172)
[04] C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NIVeriStand_codegen.tlc:<NONE>(443)
Error: File: C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NiBusLib.tlc Line: 235 Column: 54
The left-hand side of a . operator must be a valid scope identifier
Main program:
==> [00] C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NiBusLib.tlc:NiLibBusGetFlatSignalHierarchy_MF2018(235)
[01] C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NiBusLib.tlc:NiLibBusGetFlatSignalHierarchy(83)
[02] C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NiBusLib.tlc:NiLibBusGetSignalRecord(414)
[03] C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NiSignalLib.tlc:NiSignalsMapping(172)
[04] C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NIVeriStand_codegen.tlc:<NONE>(443)
### Aborted due to an error in the build procedure for model: EP6FADTX_ATn8
Error: File: C:\Veristand_2016b\2018\ModelInterface\tmw\codegen\NiBusLib.tlc Line: 238 Column: 17
The left-hand side of a . operator must be a valid scope identifier
Nota : i have change the name of the folder, but i have the same error with the original folder c:\Veristand .
My model is configure in Fixed-step (fixed step size at 1e-3 ) with solver at Ode1.
if you have an idea ...
07-12-2019 09:20 AM
hello, i have found a solution :
Uncheck the option :
Configuration parameters>Code Gneration>Ni Configuration> Disable exporting of Bus Arrays
but now i have another error, if i try to compile in C++ :
error C2668: 'pow' : ambiguous call to overloaded function c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\math.h(583): could be 'long double pow(long double,int)' c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\math.h(535): or 'float pow(float,int)' c:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\math.h(497): or 'double pow(double,int)' while trying to match the argument list '(int, int)'
or in C :
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019YqNSAU&l=fr-FR
But for th C i can not select the C89/C90 code replacement library
And for C++, i don't know exactly the component of my model taht give this error ( to put a Datatypeconversion before.
if you have a solution for the C or C++ Complitaion ...
thanks