Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Analog triggered counter

Solved!
Go to solution

Hello,

 

I am attempting to use analog edge detection to increment a counter, which I will then read from at a regular interval. I keep hitting brick walls when trying to run/adapt the examples on NI's site. 

 

I'm using a cDAQ-9174 chassis and a NI9223 analog input card with LabVIEW 2014 SP1. 

 

Any suggestions would be greatly appreciated. 

 

Thanks,

 

Emach

0 Kudos
Message 1 of 6
(5,541 Views)
Solution
Accepted by topic author Emach

Hello Emach

 

First of all I will share with you one link where you can see all the function each device can use so, see below:

http://zone.ni.com/reference/en-XX/help/370471Y-01/TOC40.htm

http://zone.ni.com/reference/en-XX/help/370471Y-01/cdaqmxsupp/ni_9223/ (For 9223)

 

On the other hand I was thinking you can create a VI where you acquire the analog signal and when that signal has a specific value you can increase a counter (by software).

 

Regards

0 Kudos
Message 2 of 6
(5,520 Views)

David,

 

Thank you for posting the link to the reference documents. Too bad NI does not list the cards that have a specific property instead of properties by card. 

 

So long story short the 9223 does not support analog edge triggering. My signal is a fast, 45 us long, pulse. I'm trying to catch the rising edge so I can count pulses. I really needed the 1MHz sample rate of the 9223 to ensure I always caught the rising edge of the pulse. 

0 Kudos
Message 3 of 6
(5,514 Views)

Hello Emach

 

I really apologize for that. I would like to know if you are able to read the signal every time. If the answer was yes you can create a counter by software.

 

On the other hand is that a TTL signal. Have you considered to use a counter module?

0 Kudos
Message 4 of 6
(5,502 Views)

When sampling at 1MHz, I am able to reconstruct the pulse when viewing the TDMS data in Excel. The test in question is about a minute long, resulting in 180 MB TDMS files. I ended up using another VI to post process the data in chunks. According to my down sampled data I do not miss pulses. 

 

It is not a TTL signal, the low voltage is ~1V and the high voltage is ~2.2V. I can always use a microcontroller to serve as an A/D and then feed that pulse data into a DI counter card. 

0 Kudos
Message 5 of 6
(5,496 Views)

Hi Emach

 

That might be a great workaround then use then a counter module. Another option it is use a module which support the analog trigger like: http://zone.ni.com/reference/en-XX/help/370471Y-01/cdaqmxsupp/ni_9205__dsub/

 

Regards

0 Kudos
Message 6 of 6
(5,476 Views)