Error in S-funtion. S-function "Test" does not exist

9 ビュー (過去 30 日間)
Daniel Mérida
Daniel Mérida 2014 年 8 月 7 日
コメント済み: lemzoo 2015 年 4 月 7 日
Could anyone help me out?
Im getting this error while running my simulink model and I dont know why :/
Error in S-function 'untitled/Test ': S-Function 'SPI' does not exist
  1 件のコメント
lemzoo
lemzoo 2015 年 4 月 7 日
Hello,
Before lunching the Simulation or the compilation, you have to compile the C code firstly. For examle, I have a C file nammed test.c that contain the description of my algorithm. And I call the function in the S-Function. I put the "test" name in the S-function name in Simulink. Before we run or execute the simulink, I compile the C code with this syntax in the matlab command mex test.c to create the Mex File. And then, we run the Simulink. I don't have any error about the existing of the function. Be sure your the path of your s-function is setted in the Matlab Path.

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeBlock Authoring and Simulation Integration についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by