VeriStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to compile dll when using reference models and parameters

Hello,

I have a simple model that uses a reference model and a Simulink Parameter that is intended to be tunable.  The code generated from this looks obviously incorrect and generates build errors during compilation.  If I do not include the Simulink Parameter I get proper code and can compile but that does not meet the needs of my application.

I attached the example models and the a log file that shows the errors.

Here are some lines of code in the ni_pglobals.h that seem obviously incorrect which are being flagged as errors:

 

#define top_level_P.const_1 NI_PARAM_BUFF.top_level_P.const_1
#elif defined(_NI_UNDEFINE_PARAMS_DBL_BUFFER_)
#undef _NI_UNDEFINE_PARAMS_DBL_BUFFER_
#undef top_level_P.const_1
#endif

0 Kudos
Message 1 of 2
(1,085 Views)

I installed the latest toolchain and see different results but it still fails to compile.  I included zip files using 2019 and 2021.

Download All
0 Kudos
Message 2 of 2
(1,050 Views)