Digital Frequency Measuremen​t for cRIO

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-stu​ff-cRIO-digital-frequency-measurement/td-p/826656/​... 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

Hello,
A great place to get started when using a cRIO is the NI CompactRIO Developer's Guide.  It will explain both Scan Mode and FPGA.  The difference between them comes down to the functionality and what you would like to complete in the program.  The simpler of the two is Scan Mode but you have more functionality with FPGA.
We offer a lot of good examples in our NI Example Finder by going to Help >> Find Examples.  In here you can narrow the examples by hardware or just browse to different categories.  We do have a counter example that will work with the NI 9403 you can get to the example by going to Hardware Input and Output >> NI Scan Engine >> Module Specific >> Digital Input >> “Digital Line Input – cRIO.lvproj.” 
Regards,
M. Whitaker
ni.com/support

Similar Messages

  • Frequency measuremen​ts using NI cRIO 9073 and NI 9425 or NI 9422 modules

    Hi everyone!
    I'm trying to measure two frequency signals using a cRIO 9073.
    I'm already using a NI 9425 module for digital inputs.
    I need to measure two (2) frequency signals.
    Is it possible to use this module (NI 9425) or NI 9422 for frequency measurements either in Scan Engine or FPGA mode?
    In case it is, if you could point me to any example, it would be appreciated.
    I'll try to be more explanatory:
    These two frequency signals are in completely different ranges.
    The first is a frequency signal from a DC motor tachometer and the second one is from a mass flow meter.
    So the frequency ranges vary from KHZ for the tachometer output, to Hz for the MFM output.
    The rest of the channels on the module are simple Digital Inputs.
    Also, I have the option to use a NI 9422 module if NI 9425 is not appropriate.
    Thanks in advance,
    t81

    t81,
    It is possible to make frequency measurements with either the 9422 or the 9425 but each will have its own limitations in the range of frequency it will be able to accurately measure.  
    A few things to know:  
    1. What are the frequency ranges for each sensor (tach and MFM)? More than just knowing Hz/kHz will be helpful.
    2. To what accuracy do you need to measure these signals?
    The 9422 supports a specialty digital configuration counter input that can be configured for frequency measurement (see link)
    http://zone.ni.com/reference/en-XX/help/372603F-01​/riohelprt/crio-9422_rt/
    The specialty mode is only available when using Scan Interface mode, not with FPGA.  
    But the max clock rate in the specifications for the 9422 is 4kHz so this may not be sufficient for the tachometer.  I believe this is the max rate at which the module will update its state no matter how fast the underlying software (RT controller) is running.
    The 9425 has a higher clock rate (~140kHz) but doesn't support the specialty digital mode mentioned above.  It is also a software timed only device but this shouldn't be a problem if you use FPGA.
    Dan

  • PCI-6280 (M-series) digital frequency measurement

    Hello,
    I am trying to use a PCI-6280 board with NI-DAQmx and C++ to measure the frequency of an approximately 36kHz external digital clock source.
    I have been playing with the "Dig Freq-Low Freq 1 Ctr" example in the NI-DAQmx ANSI C examples directory, trying to get it to work. All I have gotten so far is error -200474 -- "Specified operation did not complete, because the specified timeout expired" -- in response to the call to the DAQmxReadCounterScalarF64() function.
    I think I am connecting the external clock source to the wrong input terminal.
    I am connecting the external clock source to pin 37, which the documentation says is the Ctr0 source terminal. I have also tried the other Ctr0 terminals (gate, aux, and out) and no luck.
    What am I doing wrong? Where should I connect the input signal so I can successfully measure the digital frequency?
    Any help will be appreciated! Thanks,
    Markus Svilans.

    Hi Markus,
    In order to measure frequency you need to connect your signal to the GATE of the counter (in your case this is pin 3). All counters use the Gate to take time measurements (for example period and frequency). Here is a good resource on this.
    Hope this helps!
    Abhinav T
    Applications Engineer
    National Instruments
    Abhinav T.
    Applications Engineering
    National Instruments India
    LabVIEW Introduction Course - Six Hours
    Getting Started with NI-DAQmx
    Measurement Fundamentals

  • Measuring digital frequency

    Dear,
    I am working on a test stand that will be used for fatigue tests for a suspension, chassis etc. De vehicle components will be charged by hydraulic cylinders. These hydraulic cylinders are controlled by an AO and DO module (NI9263 & NI9401). Feedback is given by load cells. These load cells are connected with AI module (NI9201). When a cylinder reaches a certain force (certain amplitude load cell NI9201) the cylinders stops pulling and will make an outward movement. This signal is 0 when outgoing and 1 when certain force is reached. A green led starts to burn (signal is 1) when the force is reached. Now I want to count the amount of times that the signal is 1 so that I can make a security system that will limit the amount of ingoing and outgoing movements of the cylinders. Can you help me?
    Kind regards,
    Michael Tielemans
    Solved!
    Go to Solution.
    Attachments:
    test stand juli 2010 (dynamisch).vi ‏4087 KB

    Dear,
    I am still unable to count the digital frequency. The signal from the load cells (0 or 1) can not be added to the digital frequency block diagram that was sented by Bas van Dijke. Which wires do I have to connect? I also have tried to manipulate the signal from the load cell, but this didn't work either. Can you look at the attached VI?
    Attachments:
    test stand juli 2010 (dynamisch).vi ‏4089 KB

  • FPGA size calculatio​n for cRIO

    A customer wants to know do they need the 3M Gate FPGA Chassis for cRIO instead of the 1 M Gate.  The 4x difference in cost is getting their attention.  I found this on NI’s site:
    Not all applications require the 3M gate FPGA. Unfortunately, it is difficult to determine whether an application or program will require a 1M or 3M gate FPGA. The following can be used as a general guideline when deciding whether to use a 1M or 3M gate FPGA for your application.
    Is there a way to accurately determine the size of FPGA needed? 
    This is our requirements for the cRIO system. 
    4 Digital Inputs
    20 Digital Outs (PWMs)
    24 Analog Inputs
    3 quadrature encoders (Using 9411 card)
    Matthew Fitzsimons
    Certified LabVIEW Architect
    LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison

    If you already have LV FPGA installed on your system you can develop the necessary VI and compile it for either target (without the hardware present) to see if the VI will fit on the FPGA. In the LabVIEW Project you can configure any of the RT and FPGA targets without needing the hardware.
    Christian Loew, CLA
    Principal Systems Engineer, National Instruments
    Please tip your answer providers with kudos.
    Any attached Code is provided As Is. It has not been tested or validated as a product, for use in a deployed application or system,
    or for use in hazardous environments. You assume all risks for use of the Code and use of the Code is subject
    to the Sample Code License Terms which can be found at: http://ni.com/samplecodelicense

  • I have a 250GB western digital external hard drive for my time machine backups. if i just want to backup and recover my photos and movies how do i do that with time machine?

    I have a 250GB western digital external hard drive for my time machine backups. I did not download the software that came with the external HD. If I only want to backup my photos and movies from my Macbook how do I do that in Tme Machine with my external HD?

    Format the HDD in Disk Utility>Erase to Mac OS Extended (Journaled) and the open System Preferences>Time Machine and set up the external disk as the Time Machine HDD.  Then look at the Options, and exclude what you do not want backed up.
    Ciao.

  • Access to serial and ethernet port in FPGA for cRIO-9068

    hi
    i want to know if i can Access to serial and ethernet port in FPGA for cRIO-9068 like camera IP
    thanks for help

    dalyto wrote:
    thanks
    but how i can i acquire image with IP camera and fpga ???
    The Ethernet hardware interface in the cRIO is not directly connected to the FPGA backplane in a way that you could directly access it. Even if you could it would be a pretty bad idea to try to do. A fully operational TCP/IP network stack implementation in the FPGA would not leave much resources for anything else even on the biggest FPGAs available. That doesn't include support for the typical image compression algorithmes which are even more complicated to implement on FPGA. Even if you would go to highly optimized VHDL code directly it would be a pretty difficult thing to do!
    In fact implemenintg the MAC and PHY of an ethernet interface on the FPGA is totally trivial in comparison. The IP level could also be implemented fairly easily in the FPGA but anything above that is going to give you bad headaches and still will be very limited in number of connections and packet sizes it can support.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Digital frequency measurement

    Hi,
    I'd like to measure the frequency of a digital input signal with my PXIe-6358.
    I have found examples and codes like  Help » Find Exampels » Hardware Input and Output » DAQmx » Counter Measurements » Digital Frequency » Meas Dig Frequency-Low Freq 1 Ctr.vi
    and
    http://decibel.ni.com/content/docs/DOC-6271
    however the problem is that this digital signal connects to one of the pins of the port0.
    Is there an efficient way to measure the signal frequency directly from port0?
    Thanks.

    Hi Krivan
    Port zero is a digital input output.
    To mesure input frequency using digital input
    lines. There is an example on haw to do this using two counters in DAQmx.
    You will also have to define the port as input as
    well this can be done in MAX in the test panel tab.
    http://decibel.ni.com/content/docs/DOC-11420
    Regards
    Robert
    National Instruments UK & Ireland

  • Is there a Digital AV HDMI Adapter for the iPad 2(30pin) that works with iOS8?

    Is there a Digital AV HDMI Adapter for the iPad 2(30pin) that works with iOS8? I had one that connected my Ipad2 to my tv so I can stream netflix on a TV that does not have the internet. As soon as I updated my iPad to iOS8 it no longer works Help!

    You can speak & make notes. Get Dragon Dictation app.
     Cheers, Tom

  • Digital Signature sign off for PM work order operations

    Hello Experts ,
    We are have a requirement for digital signature sign off for operation. I've done all the setting mentioned in SAP Help
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/da/49d9c433ff4985b2484b7b911123cf/frameset.htm and SAP Note
    700495 - Digital Signature implementation by using signature tool.
    But still the Digital signature functionality is not working. Note 700495 give a sample program  DSIG_BOOKING_EX, do we need to have a similar program for operations as well or once the setting is done for operation sign off w.r.t order type and plant the digital signature will automatically work.
    Have any one worked on the same required. pls help.
    Thanks in adavance.

    Would you like to share the answer with us??
    PeteA

  • When will Adobe digital Edition be available for Microsofts Surface (Wondows RT)?

    When will Adobe digital Edition be available for Microsofts Surface (Wondows RT)?

    Probaly never.  It isn't available on any other tablet OSs. 
    You need to install 3rd party apps such as Bluefire, Aldiko, Overdrive or similar to read eBooks. (sometimes they have something pre-installed).
    Unfortuately some of these apps are not yet available for Microsoft Surface; 
    I guess they will be made available when/if Windows RT becomes a mainstream tablet OS.

  • Creative SB0410 digital out only works for dd/dts, not for stereo or web videos...

    Creative SB0410 digital out only works for dd/dts, not for stereo or web videos...
    Hi all,
    Need some suggestions here.
    I have an old Creative sb0410 7.1 channel card and after reading few long threads, I am able to output dd/dts via 3.5mm to rca connector.
    However, the problem is I only hear sound if the video has dd or dts sound. When I play normal MP3 or youtube videos, there is no sound.
    Is there a way to configure the digital out so it sends all sound to the receiver whether it's dd or dts or regular stereo?
    Thanks

    As a workaround, I used another 3.5mm stereo to RCA adapter on stereo LR output of sound card and hooked to a different input in my receiver.
    Problem, is I have to switch input in receiver for non DTS/DD sounds.
    It's disappointing that my upscaling dvd player sends all sound signals via coax but this card does not.
    Isn't it supposed to send all sound signals via coax regardless whether it is DTS/DD or normal stereo/mono etc?

  • Frequency of use for an ABAP object  ?

    Hi all,
    i need in ABAP to get the frequency of use for an ABAP object like a program or function module. For example, for a program i would like if it's used often (by week, by month, day) or not.
    Cheers.

    Hi,
    You can use transaction STAT or STAD for finding the statistics of usage regarding report or transaction.
    You can also use the Function module <b>SAPWL_WORKLOAD_GET_STATISTIC</b> for getting the statistics of reports executed.
    You need to get the dir from Function module <b>SAPWL_WORKLOAD_GET_DIRECTORY</b> and loop through the dir returned by the and pass the dir(internal table ) fields to the Function module SAPWL_WORKLOAD_GET_STATISTIC for getting the details
    Hope this helps.

  • Digital Filter Design Toolkit for LabVIEW 8.0

     I need Digital Filter Design Toolkit for LabVIEW 8.0 and I cannot find it on the site.Where can I get it from?

    Contact your local NI representative. He might just sent you one.

  • Digital waveform reference library for windows 7

    Hi,
    Where can i find digital waveform reference library for JTAG/SPI/I2C for windows 7 I was only able to find it for windows vista/XP
    Thanks
    chintan

    Hi chintan,
    What reference libraries are you referring to that are only for XP/Vista and not Win 7? Can you point me to where you found that?  When I searched, I found these three links. Are these the libraries you're inquring about?
    - JTAG Digital Waveform Reference Library
    http://zone.ni.com/devzone/cda/epd/p/id/6157
    - I2C Digital Waveform Reference Library
    http://zone.ni.com/devzone/cda/epd/p/id/6080
    - SPI Digital Waveform Reference Library
    http://zone.ni.com/devzone/cda/epd/p/id/6163
    The VI's listed on these pages were originally written for LabVIEW 8.2, 8.5, and 8.6, but they should still work all versions of LabVIEW up to the most current version 2010 SP1. Are you having problems opening these? Any specific errors you're seeing?
    Also, I'm not sure if you've seen this document yet or not, but this is a tutorial addressing exactly what you're describing.
    - Serial Protocol Communication Reference Design for Digital Waveform Devices
    http://zone.ni.com/devzone/cda/epd/p/id/6200

Maybe you are looking for

  • What ARE the options for these fan-disabled iMacs?

    I have started this as a new topic so as not to upset the members contributing to the below subject re. fast running fans :- http://discussions.apple.com/thread.jspa?threadID=2372777&tstart=0 The aim is to gain some practical advice for myself and ot

  • Out of Memory error on some PDF's, not all PDF's.

    Hi there, I have read most of the posts in the forums that relate to 'Out of Memory' issues with PDF's and I have to say that there is still no solution that I have found. I have tried reinstalling Adobe Reader, Flash Player and tried clearing my Tem

  • Sql Loader - Parallel Direct Path Loading

    Hi, I want to load a few million records into a table. I read from OTN site that we can make use of Parallel Direct Loading Option. As given in the site, I split my source file into two and tried loading the file from two different sqlldr sessions si

  • Ipad Crashes with blue screen and now wont turn on

    After updating the ios 8.2.1 any app I would use, a blue screen would come up covering the whole screen then crash, I would have to restart, and do the whole thing all over again. I then thought to try to reset all settings but as soon as I opened th

  • Convert from utf16 to utf8 ?? er?

    Dear list, I have recently seen a sample to convert a utf16 string to utf8. I am a little bit confused. I thought utf16 was a superset of utf8. Could please someone explain why this is necessary sometimes ? regards Ben