how can i set deffirent path directory for specific S_funtion block?

i want to run a simulink file with a variety S-function block. which must call their -mex file from different path. Is it possible to add directory of source name to each S-funtion block ?How?...if it is not possible specifically for each block, is it possible, add variety path for whole simulink file? best regard..:)

 채택된 답변

TAB
TAB 2012년 7월 12일
편집: TAB 2012년 7월 12일

3 개 추천

AFAIK, it is not possible to set the mex file name with directory path in a s-function block.
You can place all the mex files in same directory as the model and refer any one file in s-function block.
And if it is specifically required to place each mex file in different directories, just add the path of each mex file to matlab path list. After that you can use these mex files in the model located at any directory.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Block and Blockset Authoring에 대해 자세히 알아보기

제품

질문:

2012년 7월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by