Why the editor of the mask initialization code is disabled

조회 수: 7 (최근 30일)
Lorenzo
Lorenzo 2022년 11월 15일
댓글: Silvio Traversaro 2023년 5월 24일
I am playing with a really simple masked subsystem, and I want to add some code to initiatize the masked block.
But, it seems that code editor is disabled, and I cannot add any code:
I would like to add some code within the function "initialization".
Is there something I have to do to enable it? Or am I missing something?
Note that I am working on Ubuntu 22.04.
Thanks for your help!
  댓글 수: 4
Daniel Francisco
Daniel Francisco 2022년 12월 2일
Hi, same problem here.
Furthermore, I sended my .slx file to my Windows PC (also running Matlab2022b) and I could write in the mask window. I don't know how to solve it.
Lorenzo
Lorenzo 2023년 2월 23일
It seems like also other parts of the mask editor are not writable (for example the property of edit boxes, ...)

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

답변 (2개)

Lorenzo
Lorenzo 2023년 5월 24일
If anyone is experiencing this error, a solution could be to switch from wayland to x11.
  댓글 수: 1
Silvio Traversaro
Silvio Traversaro 2023년 5월 24일
To do so, at least on Ubuntu 22.04 you can go edit the /etc/gdm3/custom.conf and change the line:
#WaylandEnable=false
to
WaylandEnable=false
to verify that you are actually running x11, you can run:
cat $XDG_SESSION_TYPE

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


Bhavana Ravirala
Bhavana Ravirala 2022년 11월 18일
You are not required to enable anything to add code to the “initialization” function.
Also, Could you share the errors or warnings that you are getting when you try to add code to the “initialization” function.
  댓글 수: 4
Bhavana Ravirala
Bhavana Ravirala 2023년 2월 24일
Hi Lorenzo
Are you able to add code to the parameter callback? Is the rest of maskeditor working fine? Can you please provide more information regarding options which you can't access.
Lorenzo
Lorenzo 2023년 2월 24일
Nope, it seems also the rest of Mask Editor is not working fine.
For example, if I add a edit box, and then I try to change its name property, I cannot.
Thanks

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

카테고리

Help CenterFile Exchange에서 Author Block Masks에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by