I don't what language you are using, but
here is a mostly working driver that I wrote for it in Java. It should be easy to translate to C++, and at least give a little help if you use LabView. It requires some specific code form our libraries, but that should be pretty easy to get rid of. Feel free to ask if you want more explanation of how it works.
I never got it working perfectly, it seemed to filter out many of the small samples, but since we ended up not using it, I stopped working on it.