Added in function to get data from pydaq