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..:)

 Akzeptierte Antwort

TAB
TAB am 12 Jul. 2012
Bearbeitet: TAB am 12 Jul. 2012

3 Stimmen

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.

Weitere Antworten (0)

Kategorien

Mehr zu Block and Blockset Authoring finden Sie in Hilfe-Center und File Exchange

Produkte

Gefragt:

am 12 Jul. 2012

Community Treasure Hunt

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

Start Hunting!

Translated by