07-11-2024 03:12 AM
As I understand, if I set the Sample mode as Continuous, Sample Rate as 100kHz, and Number of Samples as 100k,
1. While loop will act when time spend 1second. (to wait for refresh)
2. The output array data of 'DaQmx Read.vi function' which is in the while loop would contain 100k samples.
3. If new loop start, the past output array data does not store in any buffer. It is completely deleted.
4. But if WaveformChart is in the while loop, and connects to the output array data, then the buffer of WaveformChart saves that data (depends on a x scale of the chart.)
Is this concept right?
Solved! Go to Solution.
07-11-2024 03:23 AM
Hi ginnyv,
@GINNYV wrote:
As I understand, if I set the Sample mode as Continuous, Sample Rate as 100kHz, and Number of Samples as 100k,
1. While loop will act when time spend 1second. (to wait for refresh)
2. The output array data of 'DaQmx Read.vi function' which is in the while loop would contain 100k samples.
3. If new loop start, the past output array data does not store in any buffer. It is completely deleted.
4. But if WaveformChart is in the while loop, and connects to the output array data, then the buffer of WaveformChart saves that data (depends on a x scale of the chart.)
Is this concept right?
Not all items are right…
07-11-2024 04:15 AM
A subtle point is the DAQmx Read function has an (optional) input for # Samples to read. It is not always present (depends on the polymorphic version of the DAQmx Read function), but if present, it should be wired, often with the # Samples specified in the preceding DAQmx Timing function.
Bob Schor