Use the DAQmx Timing properties to configure the sample timing and duration of a task.