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

4 views (last 30 days)
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..:)

Accepted Answer

TAB
TAB on 12 Jul 2012
Edited: TAB on 12 Jul 2012
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.

More Answers (0)

Categories

Find more on Simulink Environment Customization in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!