Quantcast
Channel: Counter/Timer topics
Viewing all articles
Browse latest Browse all 1250

Digital Frequency Measurement for cRIO

$
0
0

Hi,

 

I'm new to LabView, and I'm having problems setting up a VI for frequency measurement. Any tips would be greatly appreciated!

 

Task: I am using a cRIO with a digital I/O module (NI 9403). My goal is to connect the sensor that I am using (a MAXIM 6576 temperature sensor with period/frequency output in the form of a square wave) to the cRIO and have a VI measure and output its current frequency or period. 

 

I've tried working with the Count and Period.vi, but when I tried to compile I found out the 9403 module does not support SCTL. I also looked at a thread that was posted in 2009 (http://forums.ni.com/t5/Counter-Timer/beginner-stuff-cRIO-digital-frequency-measurement/td-p/826656/highlight/true) that discussed a similar problem, but when I tried using the Host VI I got the multiple error messages saying "Function not supported in current target". This happened even when I tried using the original Count and Period (Host).vi with no modifications (but the original Count and Period (FPGA).vi works just fine). 

 

I don't know how to approach this problem - should I be using FPGA or Scan Interface mode? Are there any basic examples of frequency measurement or digital counters that do not involve NI data acquisition devices? For a basic counter, how would you set up the VI so that it could measure the period or frequency based on the counter values? 

 

Thanks a lot for your help!

 

Andrea


Viewing all articles
Browse latest Browse all 1250


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>