How to connect a Basler camera to MATLAB

35 views (last 30 days)
Samuel
Samuel on 18 Oct 2025 at 22:15
Commented: Samuel on 22 Oct 2025 at 14:26
Hi everyone,
I have a Basler acA1920-155um that I am trying to connect to MATLAB using USB 3.0. This has proven more difficult than anticipated.
I've followed this (outdated) guide:
My understanding of what should happen is this:
1. Install the current version of the Basler Pylon Software Suite
2. Install the Image Acquisition toolbox
3. Download the GenTL support package via MATLAB
and....it should work. I open the image acquisition app in MATLAB and it does not find any cameras. I checked using imacqhwinfo and it does show that the GenTL diver is present, but no devices.
What I've tried:
I've attempted to download the Pylon SDK, and the GenTL drivers to replace them, to no avail.
The camera runs fine in Basler Pylon Viewer so I know it's not a physical connection problem.
Any guidance is appreciated.

Answers (1)

Image Analyst
Image Analyst on 19 Oct 2025 at 14:47
Did you call videoinput()? You need to instantiate that before you will see any devices. Can you run the attached gentl demo program? Open it in AppDesigner.
  5 Comments
Image Analyst
Image Analyst on 20 Oct 2025 at 2:24
Does it work if you use winvideo? Though you may lose some capabilities, such as white balancing. Do you still have tech support for the toolbox? If so, call them.
Samuel
Samuel on 22 Oct 2025 at 14:26
Nothing with winvideo, sadly. I wil reach out to support. I'll update this if we solve the problem. Thanks for trying.

Sign in to comment.

Products


Release

R2025a

Community Treasure Hunt

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

Start Hunting!