If I were you, I would try Aravis [1] + aravisGigE EPICS Support Module [2] instead of writing any codes. As you see from [3], several Basler
models are supported by aravis.
We have been successfully using these two pieces of software for Prosilica GigE cameras for quite a while at NSLS-II. If you are using (or planning
to use) Debian Linux, we have Debian packages for aravis [4] and you just need to install them (libaravis0.2, aravis-tools, etc.).
I wonder do you still has an areaDetector application for Basler Camera? I am trying to write some codes according to the prosilica Camera, but there are some problems。 I will appreciate if you can give me some help.