07-25-2007 05:58 PM
07-26-2007 02:13 PM
Hi Squallbob,
I'm not sure what you are doing in your current program, but there are some example VIs that ship with LabVIEW which I would suggest you take a look at. From your description of your application, you should be able to use one of these examples with little or no modifications to do what you are wanting to do. See the VIs at C:\Program Files\National Instruments\LabVIEW 8.2\examples\DAQmx\Counter\Count Digital Events.llb.
Let me know if you have any questions about these examples!
07-26-2007 04:19 PM
07-26-2007 04:46 PM
for a short period of time. but I need the Program to take the measurement more than 200 times per second (which is like 10 samples (1ms sample) per second). <-----------------Sorry It's confused here
I mean I need 200 times measurement (include reset after each measurement) per second but Right now my program just give me 10 measurements per second. ...
Sorry for the confusing
07-27-2007 01:43 AM
07-27-2007 03:14 PM
Hi Fang,
I should have mentioned, you will want to use the example that performs buffered edge counting. This is important because you can count much faster with a buffered edge count task since it is using hardware timing. If you aren't familiar with what buffered event counting is, you may want to read NI Developer Zone: Buffered Event Counting.
Were you using the buffered edge counting example before, or one of the others?
07-30-2007 05:19 PM
07-31-2007 10:47 AM
Hello Fang,
It sounds like you may not be configuring the buffered edge count task correctly. The sample clock source for this task should be a pulse train (you may want to generate this with your other counter). Every time there is a pulse on the sample clock, the count register value will be read. This pulse train can certainly run at a rate of 10 kHz to achieve 0.1 ms sampling.
I suggest you read the tutorial Buffered Event Counting to learn more about how to correctly configure your task.
Please let me know if any of this is unclear and I would be happy to go into more detail.
07-31-2007 05:44 PM