HBadertscher / Matlab_BaslerCamDriver

A universal MATLAB driver for Basler cameras
MIT License
21 stars 5 forks source link

Pylon5 and triggered acquisition #27

Open horsto opened 7 years ago

horsto commented 7 years ago

Hi, for a project I need to enable the acquisition in response to external triggers and I have Pylon5. Are there any recommendations for this? Does the driver work with the newest Pylon versions and can triggers be enabled without problems? Thanks!

HBadertscher commented 7 years ago

Hi,

Unfortunately this project currently still requires Pylon 4 and will not work out-of-the-box with Pylon 5, as there have been some breaking API changes. In #22 there are some hints on porting from Pylon 4 to 5, but it appears that more changes are needed.

I have never used external triggers, so I can't say anything about that, see #14 for more information. It appears that this does not work right now. It should, however, easily be possible to create an additional function baslerGetDataWithTrigger, which is exactly the same as baslerGetData, but sets the TriggerMode accordingly.

In general, the camera support has gotten a lot better in the most recent MATLAB versions, so you could also give that a try first.