Hi,
I am having an issue using DAQmxGetWriteAttribute to get the DAQmx_Write_TotalSampPerChanGenerated attribute. The function works just fine, BUT whenever I open a file in a different part of the program to record data, calling this function closes the file. I can't figure out why this function would do this (they seem to be completely unrelated), or how to fix this. Any ideas?