Get exact value from Scope cursor in Simulink

조회 수: 29 (최근 30일)
Jonas
Jonas 2021년 8월 30일
댓글: Controls Engineer 2023년 8월 2일
I am using the vertical Cursors in a Scope window to find the signal value. However, the value only displays three significant numbers behind the comma. In my example, it shows 2.202e+07:
Can I get the signal value with more significant numbers somehow? The signal in this case is actually a uint32 signal where each bit represents something, so I need to get the exact uint32 value.

채택된 답변

Sahil Jain
Sahil Jain 2021년 9월 2일
Hi Jonas. As of R2021a, it is not possible to increase the number of digits shown in the Scope block window. As a workaround, you can export the signals to the workspace (see "to workspace" block) and use the "format" function to set the format style to 'long' and print the values to the console.
  댓글 수: 1
Controls Engineer
Controls Engineer 2023년 8월 2일
Hi Sahil, is there a plan to meet this requirement in a future release? Given the number of views within the last 30 days, it would seem many people are disappointed in this loss of functionality and have searched for a solution. "to workspsace" is not a viable long term solution when needing to quickly analyze signals.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Scopes and Data Logging에 대해 자세히 알아보기

태그

제품


릴리스

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by