12-20-2007 07:48 AM
12-20-2007 09:14 AM
12-21-2007 07:48 AM
12-26-2007 04:40 PM - edited 12-26-2007 04:44 PM
Hello all,
When you are performing a finite generation, there are two options for timing. One option is to use the Use Waveform instance for the DAQmx Timing VI. This option automatically uses the length of the waveform attribute Y to determine the total number of sample clock pulses to generate the waveform. It also uses the attribute dt to determine the frequency of the sample clock. The other option is to use the Sample Clock instance of the DAQmx Timing VI. This allows you to independently set the sample rate and number of samples to generate. If your waveform is of length 500 and you set samples per channel to be 100, the task will only generate 100 sample clock pulses. This will only generate the first 100 points of the waveform sent to the DAQmx Write VI.
During a continuous output task, the samples per channel input does not affect buffer allocation or the number of samples that are generated since the output clock is continuous. The Use Waveform and Sample Clock instances of the timing VI are used to set the output frequency. For both finite and continuous generation, the buffer is configured when the DAQmx Write VI is called. More detail on this topic can be found in the section How Is Buffer Size Determined? in the NI DAQmx Help.
01-02-2008 01:20 PM