07-25-2016 11:12 AM
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
Solved! Go to Solution.
07-26-2016 10:30 AM
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
07-26-2016 02:21 PM
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.
07-27-2016 09:37 AM
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?
07-27-2016 10:13 AM
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.
07-28-2016 03:15 PM
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