My simulink scopes are blank - not even axes are showing

44 次查看(过去 30 天)
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 个评论
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