How to show a constant value in a Simulink report as both a numeric value and a parameter name?

7 ビュー (過去 30 日間)
Dan Granger
Dan Granger 2015 年 9 月 15 日
回答済み: Dan Granger 2015 年 9 月 16 日
Hi,
In a Simulink System Design Description Report I'm trying to display the value of a constant block as both a numeric value and the parameter name that drives the constant block.
Using the Simulink Property Table I am able to display the numeric value using this snippet:
%<Value>
Is there a way to display the parameter name as well?
In my example a constant block would have the value set to something such as constantVal1 and then constantVal1 would be defined in the base workspace or something similar.
Thank you,

回答 (1 件)

Dan Granger
Dan Granger 2015 年 9 月 16 日
Solve my own problem. Used Simulink Functions and Variables Component instead of Simulink Property Table Component.

カテゴリ

Help Center および File ExchangeReporting and Database Access についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by