07-27-2005 01:35 AM
07-28-2005 07:24 AM
07-28-2005 08:10 AM - edited 07-28-2005 08:10 AM
Hello!
Thank you for your informative message!!!
I have configured my task to continuous! Yoo can see it in my configuration. I have a question because i don*t know where i have to move my start task and stop task vi. I have studied several examples but i am not sure where i have to place the task vi's. Do i have to place them outside from the while loop in the case structure or outside from the main while loop??
I have tried the "generate code" function and it helps me how the acquistion works.
Best regards,
Peter
Message Edited by Steirer on 07-28-2005 03:11 PM
07-29-2005 05:04 AM - edited 07-29-2005 05:04 AM
Message Edited by IngoS on 07-29-2005 12:05 PM
08-02-2005 04:29 AM
HI!
I tried your solution, but when i get the results of my acqusition, a part of my acquistion-dates is missing. I think when i start the acqusition outside of my loop, the computer or the loop is too slow to receive the data. Could that be possible???
Best regards,
Peter
08-02-2005 07:59 AM
If your acquisition is finite (sample mode on the Timing function/VI set to Finite Samples), NI-DAQmx allocates a buffer equal in size to the value of the samples per channel attribute/property. For example, if you specify samples per channel of 1,000 samples and your application uses two channels, the buffer size would be 2,000 samples. Thus, the buffer is exactly big enough to hold all the samples you want to acquire.
If the acquisition is continuous (sample mode on the Timing function/VI set to Continuous Samples), NI-DAQmx allocates a buffer equal in size to the value of the samples per channel attribute/property, unless that value is less than the value listed in the following table. If the value of the samples per channel attribute/property is less than the value in the table, NI-DAQmx uses the value in the table.
Sample Rate | Buffer Size |
---|---|
no rate specified | 10 kS |
0–100 S/s | 1 kS |
100–10,000 S/s | 10 kS |
10,000–1,000,000 S/s | 100 kS |
>1,000,000 S/s | 1 MS |
You can override the default buffer size by calling the Input Buffer Config function/VI.
NI-DAQmx does not create a buffer when the sample mode on the Timing function/VI is set to hardware-timed single point.
Note Using very large buffers may result in diminished system performance due to excessive reading and writing between memory and the hard disk. Reducing the size of the buffer or adding more memory to the system can reduce the severity of these problems. |