View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
Send Video from Simulink diretly to MATLAB GUI - Example.

Join the 15-year community celebration.

Play games and win prizes!

» Learn more

2.0
2.0 | 1 rating Rate this file 10 Downloads (last 30 days) File Size: 155 KB File ID: #38007 Version: 1.0
image thumbnail

Send Video from Simulink diretly to MATLAB GUI - Example.

by

Roni Peer (view profile)

 

This simple example shows how you can take a Simulink signal (Video feed), and disply it in a GUI.

| Watch this File

File Information
Description

The GUI loads the Simulink Model, sets up a feed of 320x240 images, and shows them in the GUI.
The feed is from a webcam.
Please note that if you don't have a camera that runs on "winvideo" adapter you would have to setup the block "From Video Device" in the Simulink model.

The zip file contains the GUI, Simulink model, a START_HERE m-file.

The example uses the LEVEL-2 S-Function template given by MathWorks, and adds some to it.

You need the license for image processing and image acquisition only if you want to read the video from a webcam, and do some procesing to the image. I've added some "Edge Detection" so it would be interesting...

Required Products Image Acquisition Toolbox
Image Processing Toolbox
Simulink
MATLAB
MATLAB release MATLAB 7.14 (R2012a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (1)
19 Aug 2016 Bego

Bego (view profile)

Thank you for uploading these files.
I've tried to run your program but I keep getting a lot of errors, specially around simpleGUI_imaq>pushbutton1_Callback (line 89).
My wild guess is that since the model was made with a rather old version of Simulink my Matlab R2015a is struggling to get it right.

Do you have any updates of your code in newer versions of Matlab?

Looking forward to your answer.

Contact us