04-08-2021 07:26 PM
hello Veristand users
I'm currently working for Battery Management Controller HIL.
So If anyone is familiar with Simulink compilation especially Simscape, could I have some advice for it.
I would like to use Simscaple & Simscape Electrical to simulate battery pack.
Simscape seems to support Simulink coder to compile C program.
I have experience Veristand with native simulink code but not with Simscape.
[Question]
- Are there any limitation to compile Veristand DLL for Simscape?
- if anyone have rule of thumb to use veristand with Simscape, please share it.
Any advices and comments would be greatly appreciated.
thanks regard
05-31-2022 09:11 PM
I now use matlab2017b and Veristand 2019. After the simscape model is built, an error is reported when I compile. Does Veristand 2019 not support compilation?
05-31-2022 09:28 PM
hello skygongye
Simscape model successfully compiled on my Veristand enviroment.
Veristand 2020 and Simulink 2019b.
The link blow mentioned
"For VeriStand 2018 SP1, VeriStand 2019 SP1 Model Framework f1 patch is necessary to compile models in Simulink R2017b."
It's better to check your version and f1 patch.
06-01-2022 04:34 PM
VeriStand 2019 uses the VeriStand Model Framework to compile models. While some customers in the past have had success compiling Simscape models and integrating in VeriStand, the VeriStand Model Framework does not officially support it so there may be caveats.
As of VeriStand 2021, NI offers a new toolbox for compiling Simulink models https://www.mathworks.com/matlabcentral/fileexchange/106420-veristand-model-generation-support. This toolbox does support Simscape models.
06-02-2022 03:55 AM
06-03-2022 09:44 PM
06-08-2022 03:59 AM