Get exact value from Scope cursor in Simulink
23 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Jonas
el 30 de Ag. de 2021
Comentada: Jack
el 29 de Ag. de 2024
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.
0 comentarios
Respuesta aceptada
Sahil Jain
el 2 de Sept. de 2021
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.
2 comentarios
Controls Engineer
el 2 de Ag. de 2023
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.
Más respuestas (0)
Ver también
Categorías
Más información sobre Event Functions en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!