필터 지우기
필터 지우기

Manual signal scaling in Simulation Data Inspector

조회 수: 6 (최근 30일)
Marcel Schoch
Marcel Schoch 2022년 9월 12일
댓글: Marcel Schoch 2022년 11월 1일
Hi,
we're using the Simulation Data Inspector to analyze live data that is received from a Speedgoat machine. The signals in the model are not configured with units, but we generally work with SI units.
When plotting a signal in the Simulation Data Inspector, the signals are displayed in SI units, so it is often not very convenient, as for example 80 lpm is displayed as 0.001333, so it's a bit hard to read the plot. Can a scaling factor be manually set for a signal in the Simulation Data Inspector?
I know there is the "Stored Units" and "Display Units", but we don't configure signals with units as it is very cumbersome and we really don't need it. Also, I might want to compare two signals with completely different units to analyze the system behavior, and there I might need a completely custom scaling factor to align those two signals.
Is there such a possibility, to manually set a scaling factor for a signal in the Simulation Data Inspector?

채택된 답변

Sarah Blagdon
Sarah Blagdon 2022년 10월 19일
Hi Marcel,
It sounds like you are looking to manually scale the display of your signal data in the Simulation Data Inspector. In R2022b, there are two properties that you might find helpful: Display Scaling and Display Offset. Display scaling acts as a multiplier. Display Offset allows you to shift the display up or down. Both of these properties affect the appearance of a signal in the Simulation Data Inspector, but don't change the data values.
You can read more about these properties in the reference page for a Simulink.sdi.Signal object. A Simulink.sdi.Signal object contains the data and meta data for a signal in the Simulation Data Inspector.
You can also change these parameters using the Properties pane in the Simulation Data Inspector. For more information about accessing and editing these properties interactively in the Simulation Data Inspector, see the Control Display Scaling and Display Offset section in View Streaming Data in the Simulation Data Inspector.
  댓글 수: 1
Marcel Schoch
Marcel Schoch 2022년 11월 1일
Hi Sarah,
thanks for your answer. That is what I was looking for.
Too bad it is not yet available for R2021b, but good to hear that it has been added in the latest release.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Target Computer Setup에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by