'From Video Device' Block Error: '...' is not a valid enumeration choice for data type 'VideoFormatMenu'

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);

Answers (1)

When the hardware support packages were installed, You should restart your PC. Then the problem will be solved.

Asked:

on 31 Mar 2016

Answered:

on 29 Jun 2017

Community Treasure Hunt

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

Start Hunting!