フィルターのクリア

Passing a filename as a matlab function input

2 ビュー (過去 30 日間)
GLW
GLW 2013 年 8 月 5 日
I am developing a verification environment where I want to be able to capture with file I/O some text status messages for each different test that is run.
I have a Matlab function block that handles the file I/O, one of the inputs to this function is the output filename for each test that is run. This value is set as a workspace variable, which gets updated each time a new test is run.
In the 'edit data' field for the function, I have set the scope of the filename input to 'Parameter'.
when I compile the design, I get the following error: "Expression 'TestName' for initial value of data 'TestName' (#28) must evaluate to a numeric or logical."
Is it possible to pass a filename set as a workspace variable into a function this way?
Many thanks in advance

回答 (0 件)

カテゴリ

Help Center および File ExchangeStructures についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by