Simulink models for HIL testing with NI Veristand
Show older comments
This is directed to people who are converting Simulink models for HIL testing with NI Veristand.
If successful, are original models made with Simulink or Simscape and Simscape Libraries? Personally, some of my Simscape models are not willing to undergo the .dll conversion process without errors popping up. I'm currently trying to figure out why and curious about other peoples experiences.
3 Comments
Carlos Martinez
on 12 Jun 2015
I am having the same problem. I have to include the following directories when compiling with Visual C++ Prof 10
C:\MATLAB\R2012b\toolbox\physmod\network_engine\c
C:\MATLAB\R2012b\toolbox\physmod\common\foundation\core\c
C:\MATLAB\R2012b\toolbox\physmod\simscape\compiler\core\c
C:\MATLAB\R2012b\toolbox\physmod\simscape\engine\core\c
C:\MATLAB\R2012b\toolbox\physmod\simscape\engine\sli\c
and then the hell breaks loose by linking:
### Linking ...
C:\MATLAB\R2012b\sys\perl\win32\bin\perl C:\MATLAB\R2012b\rtw\c\tools\mkvc_lnk.pl hydraulics_model.lnk hydraulics_model.obj NIVeriStand_main.obj hydraulics_model_5df1fb13_1.obj hydraulics_model_5df1fb13_1_ds.obj hydraulics_model_data.obj rtGetInf.obj rtGetNaN.obj rt_backsubrr_dbl.obj rt_forwardsubrr_dbl.obj rt_logging.obj rt_lu_real.obj rt_matrixlib_dbl.obj rt_nonfinite.obj rt_sim.obj hydraulics_model.res
link /RELEASE /INCREMENTAL:NO /NOLOGO -entry:_DllMainCRTStartup@12 -dll kernel32.lib advapi32.lib wsock32.lib @hydraulics_model.lnk /dll -out:hydraulics_model.dll
Bibliothek "hydraulics_model.lib" und Objekt "hydraulics_model.exp" werden erstellt.
hydraulics_model.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_neu_create_diagnostic_tree_printer" in Funktion "_hydraulics_model_projection".
hydraulics_model.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_ne_default_allocator" in Funktion "_hydraulics_model_projection".
hydraulics_model_5df1fb13_1.obj : error LNK2001: Nicht aufgelöstes externes Symbol "_ne_default_allocator".
hydraulics_model.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_neu_create_diagnostic_manager" in Funktion "_hydraulics_model_initialize".
hydraulics_model.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_nesl_register_simulator_group" in Funktion "_hydraulics_model_initialize".
hydraulics_model.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_neu_get_csparse_linear_algebra" in Funktion "_hydraulics_model_initialize".
hydraulics_model.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_nesl_get_registry" in Funktion "_hydraulics_model_initialize".
hydraulics_model.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_neu_create_int_vector" in Funktion "_nesl_create_simulation_data".
hydraulics_model.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_neu_create_real_vector" in Funktion "_nesl_create_simulation_data".
hydraulics_model.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_neu_destroy_int_vector" in Funktion "_local_sim_data_destroy".
hydraulics_model_5df1fb13_1.obj : error LNK2019: Verweis auf nicht aufgelöstes externes Symbol "_ne_dae_create" in Funktion "_hydraulics_model_5df1fb13_1_dae".
hydraulics_model.dll : fatal error LNK1120: 10 nicht aufgelöste externe Verweise.
*** Created DLL C:\svn\TriVAX\SoftwareTests\Model_FS_hydraulic_signal_based\hydraulics_model_niVeriStand_rtw\hydraulics_model.dll
C:\svn\TriVAX\SoftwareTests\Model_FS_hydraulic_signal_based\hydraulics_model_niVeriStand_rtw>exit /B 0
### Successful completion of Real-Time Workshop build procedure for model: hydraulics_model
### Generating code into build folder: C:\svn\TriVAX\SoftwareTests\Model_FS_hydraulic_signal_based\hydraulics_model_niVeriStand_rtw
Abe
on 1 Jul 2015
Edgar Gabriel Hernandez Morales
on 29 May 2019
hello abe What have you done to solve your problem? Personally I have problems converting the models to .dll. the problem is when you use a vehicle model that works with variable steps and I need to execute it in Veristand that says it supports fixed steps
Answers (0)
Categories
Find more on Simulink Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!