Clear Filters
Clear Filters

How can I get [From video device] block to work with usb or gige cameras?

2 views (last 30 days)
Hi,
I am having trouble using a block from the image acquisition toolbox in simulink. I have installed the necessary hardware supports for both usb and gige, disabled Firewall for Matlab, checked that the cameras are working with their respective software, and I used the example here.
The preview feature in [From Video Device] works with the webcam, not with the JAI camera.
Running the model hangs indefinitelly. When I force it to stop, I get the following error:
"An error occurred while running the simulation and the simulation was terminated
Caused by:
  • GETDATA interrupted with ^C (Control-C) before FRAMES were available. "
This tells me that something is wrong acquiring frames.
Any thoughts as to what I am missing?
Info:
- PC Win10, i7, 32Gb RAM, 1Tb HDD
- Matlab 2020a
- Simulink: [From Video Device] + [To video display]
- Cameras: USB webcam; JAI cb-200ge (Gige camera)
- Image Acquisition Toolbox Support Package for OS Generic Video Interface v20.1.1
- Image Acquisition Toolbox Support Package for GigE Vision Hardware v20.1.1
- Image Acquisition Toolbox v6.2

Answers (1)

M.B
M.B on 22 Feb 2021
Update: Removing the GigE adapter solved some of the issues. The webcam (without the adapter installed) works great with the USB webcams support package.
My GigE camera "works" with the GenICam support package. The issue is that it stops randomly, either in preview or in recording. The longest I got it to work was 17s. This happens in both Simulink and matlab/Image Acquisition toolbox app.

Products


Release

R2020a

Community Treasure Hunt

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

Start Hunting!