Hello Frank,
Are you using Traditional NI-DAQ or NI-DAQmx? If Traditional, try calling Init_DA_Brds() at the beginning of your code; if DAQmx, try calling DAQmxResetDevice(). Both of these functions return the board to an initialized state. Let me know if this does not help.
Regards,
Sean C.