Changed Makefile, the device handle was being overwritten by the start_daq program. Whoops.