This example can perform frequency measurements and triggering.
Counting pulses/edges per time with this example can be used to e.g. determine windspeed from an anemometer or as an alternative for PFI.
Frequency_measurement.PNG
In the following, the block diagram of the variable sample time measurements is described.
DIAdem Base 2012 SP2 with DAC Kit (or compatible)
Decide wether a variable or a constant sample time better suits your application and download your chosen option:
I prefer the variable sample time, as this returns instant frequency measurements everytime a new pulse has been detected.
So now you are ready to grab some nasty measurements!
My example is also compatible to:
www.davisnet.com/product_documents/weather/manuals/07395-240_IM_06312.pdf
http://www.davisnet.com/product_documents/weather/manuals/07395-240_IM_06312.pdf
My example can also substitute the PFI functionality:
PFI Lines - NI Signal Generators Help - National Instruments
https://www.ni.com/docs/en-US/bundle/ni-fgen/page/pfi-lines.html
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
Hi Eric,
thank you for the example. What do I do with your .DAC files? My LabView doesn't seem to read them.
Thanks.
Ivan