My simulink scopes are blank - not even axes are showing

조회 수: 57 (최근 30일)
Matthew Davis
Matthew Davis 2016년 4월 29일
댓글: Achraf 2024년 1월 15일
I just installed R2016a on my Linux Mint machine.
When I try to look at a signal on a scope in Simulink, I see nothing. The curves are absent and the axes are absent. I know the simulation itself is working, because the Simulation Data Inspector is showing the right curves.
In the top left of the following printscreen you can see a minimum working example. It's just a source going into a scope.
On the right you can see the Simulation Data Inspector showing the correct curve.
On the bottom left is the scope. The contents of the scope is just black. There are no axes or curves.
I have tried tinkering around with the settings on the scope, but to no avail.
Is there something simple I'm missing, or is there a problem with my installation?

채택된 답변

Matthew Davis
Matthew Davis 2016년 4월 29일
I found the solution to my own problem.
There was an error code in the main Matlab console.
MATLAB has experienced a low-level graphics error, and may not have drawn correctly.
Read about what you can do to prevent this issue at Resolving Low-Level Graphics Issues then restart MATLAB.
To share details of this issue with MathWorks technical support,
please include this file with your service request.
The error message had a link to this page. I followed the instructions on there.
Typing
opengl info
gave:
Version: ''
Vendor: ''
Renderer: 'None'
RendererDriverVersion: ''
RendererDriverReleaseDate: ''
MaxTextureSize: 0
Visual: ''
Software: 1
HardwareSupportLevel: 'none'
SupportsGraphicsSmoothing: 0
SupportsDepthPeelTransparency: 0
SupportsAlignVertexCenters: 0
Extensions: {}
MaxFrameBufferSize: 0
So clearly there's an issue with opengl and graphics drivers.
I'm fairly sure all my drivers are up to date, so I just resorted to software based opengl. (Which is probably slower, so is not ideal.)
To do that, I typed
opengl('save','software')
Then I restarted Matlab. Scopes now work as exptected.
Typing
opengl info
Now gives
Version: '2.1 Mesa 10.5.2'
Vendor: 'Brian Paul'
Renderer: 'Mesa X11'
MaxTextureSize: 16384
Visual: 'Visual 0x5d, (RGBA 32 bits (8 8 8 8), Z depth 16 bits, Hardware acceleration, Double buffer…'
Software: 'true'
HardwareSupportLevel: 'none'
SupportsGraphicsSmoothing: 0
SupportsDepthPeelTransparency: 1
SupportsAlignVertexCenters: 0
Extensions: {156x1 cell}
MaxFrameBufferSize: 16384
  댓글 수: 4
Avey
Avey 2023년 7월 26일
That solution worked great for me. Thanks
Achraf
Achraf 2024년 1월 15일
Thank you! it solved the problem for me with Windows 11 Pro

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by