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

 Risposta accettata

TAB
TAB il 12 Lug 2012
Modificato: TAB il 12 Lug 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.

Più risposte (0)

Categorie

Scopri di più su Block and Blockset Authoring in Centro assistenza e File Exchange

Prodotti

Richiesto:

il 12 Lug 2012

Community Treasure Hunt

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

Start Hunting!

Translated by