フィルターのクリア

SDL Video Display not working in Simulink (MATLAB Coder Support Package for NVIDIA Jetson and NVIDIA DRIVE Platforms)

15 ビュー (過去 30 日間)
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 件のコメント
Paolo Rosettani
Paolo Rosettani 2022 年 10 月 15 日
編集済み: Paolo Rosettani 2022 年 10 月 15 日
Is it normal if i've this output?
:0
I've tried with this:
hwobj.setDisplayEnvironment(':0');
But I've the same issue.

サインインしてコメントする。

回答 (1 件)

Ramakrishna Mandalapu
Ramakrishna Mandalapu 2023 年 1 月 17 日
編集済み: Ramakrishna Mandalapu 2023 年 1 月 17 日
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

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by