Displaying signal value on the masked block

4 visualizzazioni (ultimi 30 giorni)
Krishnanand K.R.
Krishnanand K.R. il 29 Lug 2014
Risposto: Krishnanand K.R. il 31 Ott 2014
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?

Risposte (1)

Krishnanand K.R.
Krishnanand K.R. il 31 Ott 2014
The solution could make the simulation very slow.

Categorie

Scopri di più su Electrical Sensors in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by