[Embedded Workflow — acados documentation]
first,I installation of MATLAB interfaces,and the s-function can works well in simulink.
(Embedded Workflow — acados documentation)
then, I followed the above process, but I encountered some problems when in Matlab or press Ctrl+B in Simulink.
I used this file Toolchain-dSpaceDS1401.cmake.(MABX2)
(W) C0174-D; “C:\Users\acados_solver_sfunction_MPC_Speed.c”, line 66 pos 5; expression has no effect
ssSetInputPortVectorDimension(S, 0, 2);
^
(W) C0174-D; “C:\Users\acados_solver_sfunction_MPC_Speed.c”, line 68 pos 5; expression has no effect
ssSetInputPortVectorDimension(S, 1, 2);
^
what did you try to link to the model? Do you have external dependencies / libraries?
Were you able to successfully cross compile the acados and solver builds for the MABX2 with the toolchain file? Are you replacing the existing libraries of your host machine with the new compiled ones for the MABX when you are trying to build for the MABX? @bmasterk did the toolchain for MABX2, maybe he can help.
The warning should not have an effect on this I guess.