I am using the NI-DAQmx C API with the simulated PCIe6353. If I set the rate twice using DAQmxCfgSampClkTiming before starting my task , the acquisition stops as soon as it is started. If I set the rate only once, the acquisistion seems to run fine.
I have a algorithm that sets the rate for different devices. This works fine for all USB X-series and also M-Series devices.The code shown below is a small snippet of my algorithm to show the issue:
I do not see a reason why the code is stop, as if you call the timing function twice over the same task, the second time you call the function it will override the setting from the previous call, my guessing is that another error occurs ( coould be a buffer overflow or under flow? ) that generates an error and stops the program, can you verify if some error is ocurring ?