added return value
somehow i had to recompile the pvcamacq - probably an ABI changed. The indicator was that matlab always crashed when i used this function