SDL Video Display not working in Simulink (MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms)
Mostrar comentarios más antiguos
Hello,
SDL Video Display block doesn't work on Simulink (see screenshot below)

When I deploy it into a NVIDIA Jetson AGX Xavier (from Simulink) it makes the screen complitely black.
I've checked if the SDL Video Display works compiling a code from a MATLAB script (no Simulink), and it works!

How can I make it works also from Simulink? I suppose it's an implementation bug of the Simulink block itself.
Check this video to see the bug behaviour: https://youtu.be/ziGx2ferEU4
Thank you in advance
6 comentarios
Paolo Rosettani
el 1 de Oct. de 2022
Editada: Paolo Rosettani
el 1 de Oct. de 2022
Hariprasad Ravishankar
el 10 de Oct. de 2022
Hi Paolo,
We are looking into this issue and we wil get back with any findings.
Hari
Paolo Rosettani
el 11 de Oct. de 2022
Ramakrishna Mandalapu
el 11 de Oct. de 2022
Hi Paolo,
Sorry for the inconvinience. The display package might have updated recently because of which some settings are behaving differently. We will fix this in our monthly update. For now, you can skip this error by using the below workaround.
On target: Step#1
Get the display environment by running the following command
>> echo $DISPLAY #copy the output of this command
localhost:1.0
On host: Step#2
hwobj = jetson('IPAddress','username','password');
hwobj.setDisplayEnvironment('localhost:1.0'); % output of the command from target as input to this function.
Step#3: Deploy&Run the model.
Please let us know if there are any other issues.
Thanks,
Ramakrishna
Paolo Rosettani
el 15 de Oct. de 2022
Editada: Paolo Rosettani
el 15 de Oct. de 2022
ohrum cha
el 15 de Sept. de 2023
i have same issue
Respuestas (1)
Ramakrishna Mandalapu
el 17 de En. de 2023
Editada: Ramakrishna Mandalapu
el 17 de En. de 2023
0 votos
Hi Paolo,
Please try the follwing the steps to get rid off the blank screen issue.
on target: Step#1
Get the display environment by running the following command
>> echo $DISPLAY #copy the output of this command
localhost:1.0
On host: Step#2
hwobj = jetson('IPAddress','username','password');
hwobj.setDisplayEnvironment('localhost:1.0'); % output of the command from target as input to this function.
Step#3: Deploy&Run the model.
Thanks,
Ramakrishna
Categorías
Más información sobre Deployment en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
