Video Output Simulink block

4 ビュー (過去 30 日間)
arsal javed
arsal javed 2022 年 9 月 8 日
回答済み: Abhinav Aravindan 2025 年 1 月 2 日
hello guys
i want to create a video output in simulink such that there are five values for output 0,1,2,3,4 to each value correspnds an image i want to create a video output in which image are displayed according to their results e.g if output is 1 the image would be different and when output is 2 image different and goes on and on and only stops when simulation is stopped so kindly suggest what kind of blocks or subsytem should i use in this case thnx

回答 (1 件)

Abhinav Aravindan
Abhinav Aravindan 2025 年 1 月 2 日
To create a video in Simulink using images based on specific conditions, you may use the following blocks and achieve the required functionality:
  1. Image from File: This block can be used to read the respective images from a specified location. You may use five such blocks to read each of the images corresponding to the output values.
  2. Multiport Switch: The “Multiport Switch” block can be used to select the image corresponding to the output value.
  3. Video Viewer: This block can be used to output the images from the “Multiport Switch” block to display the respective image.
  4. The “Stop Time” can be set to “inf” to run the simulation continuously until it is stopped.
Please refer to the documentation of the respective blocks by running the following commands in MATLAB R2020a.
Image from File:
web(fullfile(docroot, 'vision/ref/imagefromfile.html'))
Multiport Switch:
web(fullfile(docroot, 'simulink/slref/multiportswitch.html'))
Video Viewer:
web(fullfile(docroot, 'vision/ref/videoviewer.html'))

カテゴリ

Help Center および File ExchangeComputer Vision with Simulink についてさらに検索

製品


リリース

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by