Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Counter operations in PXI 6722

Hi,
 
What I want to do :
*********************
My application requires generating an analog output, after some time the DUT responds with a pulse of 1.5ms duration. I need to find the time between the point where I genrate the AO and the point where I get the pulse.
 
What I am planning to do :
*****************************
I plan to start a counter at the moment I start the AO, the input pulse to counter would be a pulse train from an external clock or another counter output. I would like to stop the counter using the pulse from the DUT by connecting it to the GATE terminal. The idea is derived from the example vi, Count Digital Events-Pause Trig.vi. Based on the number of counts and the pulse train frequency, the time can be measured.
 
Problems Faced and queries:
*********************************
1. I tried to test the idea by generating a continuous pulse train from counter_0 and feeding it to the source of counter_1 and use the above example to count the pulses. Here I can only pause the count using the gate input. How do I stop the counting and get the count value using the Pause trigger property?
 
2. If I want to use the internal clock base instead of using another counter, how should I enable this?
 
3. Is there any other option to measure the time I need?
 
4. When Iam using the generate finite pulse train vi in counter_0 and connecting it to Counter_1 source. Using the count digital event, I try to count the events. Error is generated with a reason that there is a hardware conflict. Can I not use different counters in the same card for generating a finite pulse train and counting them on the other counter input?
 
Regards
Gopal
0 Kudos
Message 1 of 4
(4,279 Views)
Hi,
I would like to know whether it is possible to start and stop data acquistion using triggers. For example I start the acquistion on a pulse and want to stop the acquistion on another pulse.
 
Same think is it possible to extend it to counters. I start the counter with a pules and stop the counting based on a signal.
 
Regards
Gopal
0 Kudos
Message 2 of 4
(4,249 Views)

Hi Gopal,

 

Thank you for posting to the NI forums.  You can use a digital start trigger and a reference trigger to get the functionality that you need.  There is a nice Knowledge Base article on this exact issue.  The link is below.

 

How Do I Use a Digital Trigger in LabVIEW to Start and Stop Acquiring Data?

 

Using the information in this KB, as well as the info in the related links, you should be application to program your application in LabVIEW, but please post back if you have further questions.

 

Ed W.

Applications Engineer

National Instruments

0 Kudos
Message 3 of 4
(4,191 Views)
Hi,
 
I checked the example vi DigitalStartandStopTrigger.vi from ni website. Is it possible use the start and stop trigger for a multichannel Analog generation?
 
Iam using PXI-6722 for analog generation.
 
Regards
Gopal
0 Kudos
Message 4 of 4
(3,984 Views)