How can I tell MATLAB that a testbench is in a subdirectory?
3 ビュー (過去 30 日間)
古いコメントを表示
I am using embedded coder to generate c-code from my MATLAB function. I am also using -double2single option for the codegen command. In my coder.SingleConfig object I define a testbench. The file of the testbench is in a subdirectory of my project (I added the subdirectory to my working directory with addpath(...)).
When I start code generation process it can not find the testbench. I always get the message "Could not open file <path to testbench>. No such file or directory." I also changed the name to the absolute testbench file path, but it still can not find the file. Instead it even removed the subdirectory name from the path and tried to look for the file in the root of my working directory.
How can I tell MATLAB to use the testbench file in the subdirectory?
0 件のコメント
回答 (1 件)
Navan Ruthramoorthy
2019 年 7 月 25 日
For double2single conversion, currently the test bench file needs to be present in the same directory as the design file. Please store your test bench files in the same directory as design files to work around this issue. We will consider supporting test bench in a different directory in path for a future release.
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!