Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I get the DAQ assistant counter to wait for 1st trigger pulse to begin counting?

Hi,

 

I am attempting to build a counting VI to count pulses in an interval controlled by an external trigger.  I have the counter counting but my 1st two data points are random.  How do I get the counter daq to wait until it receives a trigger pulse before it begins adding counts to the buffer?  Right now I am feeding the DAQ square wave pulses at 100Hz and triggering the counter to output everytime it receives a trigger (10Hz square wave). 

 

My outputed data looks like this:

3147
-120
30
30
30
30
 

I should be seing all 30s.

 

Below is a pic of my setup.  Thanks for your help!

 

untitled.JPG

0 Kudos
Message 1 of 2
(5,696 Views)

Hi Matt99eo,

 

Have you configured your device for triggering?  Although you have not mentioned your device specifically, the M series user manual provides a great explanation of digital triggering.  Using the DAQ Assistant, this can be configured from the triggering tab.  Hopefully this helps!

 

trigger.png

Regards,


h_baker
National Instruments
Applications Engineer
0 Kudos
Message 2 of 2
(5,683 Views)