Displaying signal value on the masked block
2 次查看(过去 30 天)
显示 更早的评论
How can I access a signal measured inside a masked block, assign its RMS value to an internal variable of the block & then display the value of the variable on the mask (using Icon drawing commands in the Mask Editor )?
There could be two options and any of them would do:
1) Signal-access during the simulation & display the RMS on the mask as simulation runs.
2) Signal-access after the simulation & display on mask.
Essentially, how to assign signal values to an internal variable of a block? [Then I can use " fprintf(Signal_RMS); " inside Mask Editor, where " Signal_RMS " is an internal variable for the block]. Using the sink 'To Workspace' is not an option since there could be multiple blocks showing their own RMS. Is it possible to access signal-data (not just the name) of a block using get_param() ?
A memory efficient solution using MATLAB alone would be great. If possible, we can discard the past RMS values as only one RMS value will be displayed on the block's mask. Thank you.
Edit : Maybe the question can be reduced to this - How to programmatically access the value displayed in the sink "Display", which is placed inside a masked block?
0 个评论
回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Electrical Sensors 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!