How can I show all block parameters in my project ?

I have changed in "Block properties" the "Block annotation" to show the parameter, but the change in my lib doesnt change my projects to show it - it dows only when I place a new block.

답변 (3개)

Kaustubha Govind
Kaustubha Govind 2012년 8월 24일
편집: Kaustubha Govind 2012년 8월 24일

1 개 추천

Sorry, your question is not clear to me. What property did you change exactly under Block Properties>Block Annotation? Please see Creating and Working with Linked Blocks for information about linked (library) blocks. Are the library links disabled by any chance?
Stephan Moeller
Stephan Moeller 2012년 8월 24일
편집: Stephan Moeller 2012년 8월 24일

0 개 추천

when I have a project with blocks, by example Resistors - i see the reference designators only , and if I click on the resistor I can change the parameter R to 1000 by exaample. Now I like to see the paramter value in my project beside every resistor to see immediatly its values. So I go and change in my Lib the "Block annotation" to show the parameter R. But I can't make it work that the change in my lib will change all resistors in my project to show the parameter.

댓글 수: 5

Stephan: I'm still not sure how you control the visibility of "R" from Block Annotation. Could you please provide more detail? Also, note that changes in parameter value in the library won't change the value in other existing instances of the block, because the setting within them will override the value in the library.
I can annotate blocks by using the Block Annotation Pane in the Block Properties dialog box - by example a resistor ( simscape ) I can scroll down to R and double click, and then the parameter R ( a value ) will be shown in the model if I place the block R in it.
Ah! Now I understand what you meant by "visibility of R" - I see now that you meant that R shows up in the annotation (not on the dialog). It appears that library blocks do not propagate changes to the Block Annotation pane by design. The block annotations are supposed to be instance-specific. If you'd like this functionality to be added in a future release, please submit an enhancement request via MathWorks Tech Support.
Are you really sure that block annotations are supposed to be instance-specific ?
Yes, I'm fairly certain, but please confirm with MathWorks Tech Support.

댓글을 달려면 로그인하십시오.

Stephan Moeller
Stephan Moeller 2012년 8월 27일

0 개 추천

anybody there to help ?

카테고리

제품

질문:

2012년 8월 24일

Community Treasure Hunt

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

Start Hunting!

Translated by