09-14-2005 12:48 PM
09-14-2005 01:00 PM
Blog for (mostly LabVIEW) programmers: Tips And Tricks
09-14-2005 01:15 PM
09-14-2005 04:12 PM
thanks for the reply .The reason i want to store more points in a seconds is that i want to do FFT and for this i need more data points.
secondly i want to know what do u mean by placing samples = zero in the AI start as there is no sample input in this VI.
09-14-2005 05:32 PM
09-14-2005 07:43 PM - edited 09-14-2005 07:43 PM
If you set the NUMBER OF SCANS TO ACQUIRE input to AI START to zero, that has a special meaning: acquire data indefinitely. It will not stop on it's own (assuming no errors occur), you have to explicitly stop it.
If you do this, you have to read the data often enough to avoid buffer overflow, which means the incoming data is filling up the buffer faster than you're emptying it.
I have attached a picture of the general idea. If you really want to use the CPU efficiently, then consider the shift-register idea in the picture - you process on batch of data WHILE the next batch is coming in. If you want a simpler solution, forget the shift-reg, and process it directly after reading it. If your buffer is twice the size of your processing size, you'll be OK.
Message Edited by CoastalMaineBird on 09-14-2005 07:45 PM
Blog for (mostly LabVIEW) programmers: Tips And Tricks