How to connect a Basler camera to MATLAB
Mostra commenti meno recenti
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:
https://www2.baslerweb.com/media/downloads/documents/application_notes/AW00134303000_Application_Note_Basler_pylon_GenTL_Producers_with_....pdf
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.
Risposta accettata
Più risposte (2)
Image Analyst
il 19 Ott 2025
0 voti
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.
6 Commenti
Samuel
il 19 Ott 2025
Samuel
il 19 Ott 2025
Samuel
il 19 Ott 2025
Image Analyst
il 20 Ott 2025
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
il 22 Ott 2025
Image Analyst
il 2 Nov 2025
What did they say? Is it solved yet?
Jonathan
il 31 Ott 2025
Spostato: Walter Roberson
il 1 Nov 2025
0 voti
Matlab may not be able to find the GenTL Producer .cti files, which are .dll like drivers that translate to/from the GenTL standard. Pylon setup typically installs those at:
C:\Program Files\Basler\pylon\Runtime\x64
Then for Matlab to find the producer file: ProducerU3V.cti
It looks at the environment variable :
GENICAM_GENTL64_PATH = C:\Program Files\Basler\pylon\Runtime\x64\;
Use these at the Matlab command prompt to help diagnose:
getenv
imaqsupport
If indeed GENICAM_GENTL64_PATH does not point to the path of the Basler .cti files, then you'll need to set it correctly, which in Windows may be done through the control panel.
4 Commenti
Samuel
il 1 Nov 2025
Image Analyst
il 2 Nov 2025
So I guess when you called Tech Support last week they weren't able to solve it?
Samuel
il 3 Nov 2025
Samuel
il 3 Nov 2025
Categorie
Scopri di più su GenICam Interface in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!