I am using the DAQ USB-6215 to measure signals from a photodetector counter, and this signal is triggered by an external digital signal. I expect the DAQ to measure when the external trigger is in a high state, and not to operate when it's in a low state.

After running this code at a rate of 1/1000 s for 10 seconds, the program runs successfully and produces the following result graph.

However, when I attempt to measure data for a duration of 1 hour, the program becomes unresponsive and does not output any data.
Am I misunderstanding the usage of the pause trigger in this program, or could there be other reasons? I am a beginner who has recently started working with DAQmx, and I would greatly appreciate any thoughts and suggestions you may have.