Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Acquire data continuously (buffered semiperiod) with the 6602 board

Hello,

I post this qestion again because I think in my previous thread it will be wraped. 🙂

I use an PCI6602 card and 3 or 5 counters on it in buffered-semiperiod measurement.

The planned measurement can last one day or longer so there will be a lot of values.

What is the best way to process the values? Maybe calculate something and
write these results to a file.

I've read something about double buffered acquisition. Also something about
a circular buffer.
In the document "Lab VIEW Data Acquisition Basic Manual" the circular buffer is described.
But I can't find any examples for double buffered acquisition and circular buffers.
Has someone an example?

Will I need such a t
echnique? Or is there an other possible solution to handle the
amount of data continuously?

And when will be the best point of time to do the analyses of the data.
Inside the while-loop or outside?

Is it a problem to do this with the 3 counters simultaneously?

I would be thankful for any tipps.
I attached an file (library), where you can see the configuration (Measure Buffered SemiPeriod.vi).

thanks in advance

Peter
0 Kudos
Message 1 of 3
(3,368 Views)
Peter,

If your measurement will last for a day, you will need to log the data to file. Otherwise, it is very likely that you program will be unable to store that quantity of data. A double-buffered acquisition and a circular-buffered acquisition are the same operation. They refer to a continuous acquisition where a finite buffer is used in a circular fashion (new data is continually written over the current data as the buffer is filled). Of course, this requires the user to read data from the buffer before it is overwritten. In the program you attached to this post, you are already performing a double-buffered acquisition because you have the Buffer Mode controls set to "Continuous". With regards to analyzing this data, it would be best to do this
after the acquisition is complete. Furthermore, you should be able to do this with three counters without any problems. Of course, if you need to perform more than three buffered measurements simultaneously, the additional counters will need to use interrupts.

Good luck with you application.

Spencer S.
0 Kudos
Message 2 of 3
(3,368 Views)
Hello Spencer S.,

thanks a lot for the good explanation. It was very useful.

Regards Peter
0 Kudos
Message 3 of 3
(3,368 Views)