'From Video Device' Block Error: '...' is not a valid enumeration choice for data type 'VideoFormatMenu'
Show older comments
I created with Matlab 2016a a Simulink model with a 'From Video Device' Block. I installed the OS Generic Video Interface package which allows me to select my webcam as input device. When I change the 'Video format' Block parameter, the following error appears:
'...' is not a valid enumeration choice for data type 'VideoFormatMenu'
It happens independently of the selected format. If I start the simulation, I'll get the error:
Component: Simulink | Category: Block warning
No format is selected or available.
The camera works fine in Matlab with
vidobj = videoinput('winvideo');
snapshot = getsnapshot(vidobj);
1 Comment
Román Cifuentes
on 22 Sep 2016
I'm having exactly the same problem. Did you happen to find any solution?
Answers (1)
vic wang
on 29 Jun 2017
1 vote
When the hardware support packages were installed, You should restart your PC. Then the problem will be solved.
Categories
Find more on Image Acquisition Support Packages for Hardware Adaptors (Generic Video Interface) in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!