06-11-2015 02:06 PM
I have a USB 6003 DAQ produc tthat i am programming wiht DAQmx. Is there a way to start an acquisition with a TDMS log and the change the sample rate of the device wihtout stoppping the acquisition or logging operations?
06-11-2015 02:25 PM
Definitely not for the 6003. I'm pretty confident no DAQmx device can as that information is required to verify a task, and that stage is before the task starts running. (verify->reserve->commit->start)
06-11-2015 02:27 PM
So I have to stop the acquisition, change the clock rate, then restart the acquisition...is the log file still open and ok to append to for the tdms file when i go through this restart process?
06-11-2015 07:20 PM
Another option might be to always acquire at the highest rate and when lower rate data is desired, simply discard the unwanted data. Then you never need to stop and start the tasks. Depending on the process, averaging blocks of data (or other appropriate processing) to get the lower rate points might improve performance.
Lynn
06-11-2015 08:19 PM
@johnsold wrote:
Another option might be to always acquire at the highest rate and when lower rate data is desired, simply discard the unwanted data. Then you never need to stop and start the tasks. Depending on the process, averaging blocks of data (or other appropriate processing) to get the lower rate points might improve performance.
That will not work if they are using the DAQmx Configure Logging.
Because of the time information, you have to stop your task and then restart it. I see no reason you couldn't just append to your current TDMS file.