How to control legacy_code generated file placement?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Gergely
am 11 Dez. 2015
Beantwortet: Vidya Viswanathan
am 24 Dez. 2015
Usual Simulink.fileGenControl 'CodeGenFolder' setting does not influence the path where the files are generated when calling:
legacy_code('sfcn_cmex_generate', def);
legacy_code('compile', def);
legacy_code('slblock_generate',def);
I could only achieve to modify the path by changing the cwd in the script, but that seems ugly. Is there a proper way?
0 Kommentare
Akzeptierte Antwort
Vidya Viswanathan
am 24 Dez. 2015
The functionality to directly control the build path for Legacy Code Tool is currently unavailable with MATLAB. As a workaround, you can navigate into the desired folder, generate the files there and navigate out. This is a manual approach. Alternately, you could use scripting to achieve the same. I cannot think of a simpler workaround.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!