How can I measure the time between the two edges of successive increase, using digital input...

Hello

I'm trying to measure the time in seconds between each two successive rising edges on a digital input.

So far I managed to detect the rising edge, increment a counter at each rising edge and take the time during which the increase is edge

all I need now is subtract edge currently rising from the previous era of edge rising to calculate (T), which can be 1/frequency and display in real time for the user.

but I do not know how to do this

Can someone help me please!

Note: while I am in a position varies between 200 ms - 2 seconds


Tags: NI Software

Similar Questions

  • How can I measure the Max delay

    Hi guys,.

    I'm trying to add the module to the pulse to my VI. To do this, I guess I need to measure delay Max.

    In my class VI, I have some instruments of the current driver, LED, spectrometer, camera and temperature controller. In addition, current is the variable I can change all the time during the execution of the VI.

    I was wondering how can I measure the delay between the one and the other, and when I change the value of the current, how long will take to capture the right data

    I knew that the number of cycles to measure VI all the time but how can I do for several parts

    Thank you

    Time required for the execution of some code can be done using 'Tick counts' now if you do not want it for full code but you want for specific elements of the code, then you must use the same function (i.e. "Tick count" separately for each section of the code.

  • How can I measure the output of a sensor pwm ultrasound using the module or 9403

    How can I measure the output of a sensor pwm ultrasound using the module or 9403

    Khalil,

    When you say 'measure' the PWM signal, exactly what to tell you?

    You're looking to measure the frequency or cycle of the signal function? You count the edges of the PWM output increase? Looking to control the waveform?

    With reconfigurable FPGA hardware, it is up to the user to define the function of the physical i/o on the FPGA chip. By connecting the signals as Adam suggests your digital pulse will be brought to the cRIO. In your FPGA program, you define the function. You can set a base counter or transfer digital data from single point to welcome you cRIO for floating-point more complex treatment. Example FPGA programs are located in the http://www.ni.com/IPnet.

    Hope this helps, please post any additional questions.

  • How can I measure the length of the lines written with the Paint program?

    I know that an earlier version of the painting software was able to measure the length of the lines written with the Paint program.   I don't know what version it was.   I have the Windows 7 Home Premium Version 6/1 (Build 7601 Service Pack 1, Copywright@2009.  How can I measure the length of the lines that I have the project using paint software?   Do I need to get the previous version?   How can I get?   PLEASE ANSWER!

    Hi Ralph,

    The description of the problem seems a little unclear and I wish I had a better understanding before you start working on it. I would really appreciate if you could answer the following questions:

    1. What is the name of the paint program?

    2 have you tried to install the software of paint in Windows 7?

    3. are you able to install it? If this is not the case, do you have an error code or message?

    4. in what version of Windows was fine paint software work?

    Please provide us with more information on the specific question to help you to fix as soon as possible.

    Your response is very important for us to ensure a proper resolution. Please get back to us with the information above to help you accordingly.

  • I have 2 phones on my ID Apple how can I keep the two devices to receive the same iMessages?

    I have 2 phones on my ID Apple how can I keep the two devices to receive the same iMessages?

    How to use several devices iPhone, iPad or iPod with a computer

    Using more an iDevice on the same computer

    This mainly applies to couples who add another device and don't want their electronic mail, messages, etc. being duplicated on both devices. To start reading: How to use several iPhone, iPad or iPod devices with one computer. You must create a login separate Apple and password for anyone who will use the new iDevice. See Apple - my Apple ID and frequently asked questions about the Apple ID. The easiest way is to do it on the computer using iTunes: iTunes - how to set up an Apple ID iTunes.

    On the computer, create a new user account for the person with the new iDevice. This is the user account always uses this person. He or she will no longer use the other user account. This way the person will have a separate iTunes library. Note When finished, do not 'share' apps under a single Apple ID. Each of you must buy your own applications under your own Apple ID. When you decide to divide like this you will have to buy new applications they want to use.

    First, transfer the new devices to a new account as well as all your data.  Save pictures of flow picture you want to keep for your camera (unless they are already in the camera roll) by opening your Photos app, tap Albums icon at the bottom. Now press the album My Photo Stream; Press Select; tap the photo you want to select. tap the share (box with the face up arrow) in the lower left corner icon; in the film, and then click Save.

    If you synchronize notes with iCloud, you want to keep, you must open each of your notes and email it to yourself. Later, you can copy and paste the text into the new notes created in your new account.

    Tap Settings > iCloud > remove account (removes it only from this device, not iCloud; the person who maintains the current account is not affected) provide the password to disable find my phone and choose to keep on my iDevice when prompted.  Sign in with another Apple ID to create your new account. Choose merge to download your data.

    Once you are on separate accounts, you can each go to icloud.com and remove data from the other person to your account.

    The above was created by the user randers4. Changes were made to improve the readability and the syntax.

  • How can I add the speaker notes to a slide using applescript?

    How can I add the speaker notes to a slide using applescript? I am able to create slides, add a title and bullet points, but when I try to add the speaker notes, it does not work.

    say thisSlide

    -set the title

    set the text of the object to the default title at "TITLE" element

    -create a bulleted list

    the text of the object of the item to the default body ¬

    "Bullet Point 1" & return & "Bullet Point 2" & return & "Bullet Point 3"»»

    -put the presenter notes

    ¬ the text value of the object of the presenter notes

    '' Here is my presenter notes.

    How can I add the speaker notes to a slide using applescript?

    Maybe like this:

    say thisSlide

    -put the presenter notes

    Set presenter notes to "here is my presenter notes.

    end say

  • How can I get the amount of free disk space using the space using windows 7 Please share example using GetDiskSpace

    How can I get the amount of disk space by using windows 7 Please share example using GetDiskSpace I already studied http://digital.ni.com/public.nsf/allkb/9958B8E473C4EF1786256BBC0053B64F

    Reading your question a little more in detail, I doubt if you are using the Win32 GetDiskFreeSpace API function (including my previous post is the solution) of the function GetDiskSpace from the Toolbox of the programmer.

    With respect to the other, it works even with capacity greater than 2 GB disks, but you must use the appropriate formatting code to display the returned value. I updated my example to display the total of free space in the debug output window and added a comparison with the value of 3 GB using UInt64TypeCompareUInt box to tools programming interface.

  • How can I prevent the access denied message when you use the shutdown command?

    I use shutdown /m \\computername/s

    I have "Access denied (5)" as an answer.
    I am admin on all my computers. Same username and password on each of them.
    How can I get this shutdown command to work remotely, so I can't access every computer command prompt via Remote Desktop?
    How can I prevent the access denied message when you use the shutdown command?

    Hello

    I suggest you to report this issue in TechNet Forums for Windows 7 networks: http://social.technet.microsoft.com/Forums/en-US/w7itpronetworking/threads

    Thank you.

  • When I drag a file audio and video of the source on the timeline monitor, only the video file is transferred. How can I move the two files on the timeline? Adobe first Pro 2015 CC only!

    When I drag a file audio and video of the source on the timeline monitor, only the video file is transferred. How can I move the two files on the timeline? Adobe first Pro 2015 CC only!

    Please make sure that the audio and video tracks are highlighted.

  • How can I change the email address that appears in my digital signature?

    How can I change the email address that appears in my digital signature?

    Hi Duncan,.

    In Adobe Acrobat / Reader, it is not possible to change the email address in the Digital Signature, but you can delete it and create a new digital signature.

    Let me know if you have additional questions, we will be happy to help you.

    Kind regards

    Nicos

  • I have two script. one for indesign and another for photoshop. How can I combine the two scripts?


    Hi all

    I have a script for indd that convert a table selected user in JPG format (1276 px width, height varies). Second script photoshop asking to select jpg file and then check if the height in pixels is less than 1018 pixel, can he expand canvas size (height) to 1018 px.

    How can I combine the two script, tip, or how to start would be useful? The workflow must be:

    • the user select table in the indd document
    • export table in jpg format
    • script you will be asked to select the file table jpg or if it is possible to automate this would be awesome.
    • enlarge the height of the canvas to 1018 px

    Thank you

    Marie rosine

    PS: I have already read the Java script tool guide pdf but unable to understand

    Yes and the documentation is pretty self-explanatory.

    However, here is an excerpt:

    function callPhotoshop(file) {
       var bt = new BridgeTalk;
    
       bt.target = "photoshop";
    
       bt.body = "function main (){ return confirm('Am I in Photoshop?'); }; main();";
    
      bt.onResult = function(resObj)
      {
      var myResult = resObj.body;
      alert( myResult? "PS code was correctly executed" : "Something wrong happened" );
      }
    
       bt.send();
    }
    
    callPhotoshop();
    

    HTH,

    Loïc

    http://www.ozalto.com

  • When I drag a file audio and video of the source on the timeline monitor, only the video file is transferred. How can I move the two files on the timeline? Thank you for your help in advance

    When I drag a file audio and video of the source on the timeline monitor, only the video file is transferred. How can I move the two files on the timeline? Thank you for your help in advance

    You must set the source patch:

  • Push Notifications / how can I measure the results?

    Hello

    I have send notifications of text every week for my magazine. How can I know the number of users who have launched the application through the notification? I need a third party? If so, any recommendations?

    Thank you!

    Do us the same thing and follow push them on Omniture. You must have an analytical account and make sure that the application is linked and has its own dashboard.

  • What is READ the array returned by the DAQmx meter? How can I know the two functions DAQmx READ data stream in the same WHILE loop?

    I have a question about the order of execution.  In the WHILE loop, I have two things to measure, period and tension using the DAQmx READ functions for voltage and the meter.  In the end, I want to collect these data as points almost simultaneously as possible, as a pair and then send them together to another piece of code (not shown here) which them will result in some sort of command for an engine.  It would be run, and then I want to perceive the tension and the period at a time later and do the same thing.

    (1.) I'm a little confused on what the meter of the READ function is back because it's a table.  What is a picture of?  I thought that it was up to the value of the individual periods between rising edges.  The output of the counter 1 DBL d's a table. How many elements in this table, and what determines the size of this table?  Are the elements of the array the individual delays between the edges?  How many values are stored in the array by executing?   We take the AVERAGE of the last 15 items, but do not know if we are throwing some of the data or what.  How to understand the composition of this painting?  How can I change the composition of this painting?  Is it possible to measure only one period at a time, for example the time between TWO edges?

    2.) Will this WHILE loop execute as it gathers tension and a "period table ' (remains to be understood by me) by TIME running in a loop?  In particular, we want that the value of the tension associated with the value of the AVERAGE of the period "array", so we can use two data items to create orders of next control every time that the two values are reported.  The structure for the delivery of vi will be attached data in pairs like this?  I understand that one of the READING functions run not before the other function of READING in the WHILE loop.  I want that the period "means" and "strain (Volt) collected at the same pace. This vi will he?

    Thank you

    Dave

    Hi David,

    I suggest including the DAQmx Start Task function. If it does not start before the loop, it starts the loop and work very well, but it is not as fast and efficient. In the model of task status, task wiill go to run the checked each iteration of the loop and then back the time checked running when it restarts.

    The status of the task model: http://zone.ni.com/reference/en-XX/help/370466V-01/mxcncpts/taskstatemodel/

    Kind regards

    Jason D

    Technical sales engineer

    National Instruments

  • How can I retrieve the voice of a track to use as an acapella?

    Hi, just like the title says I would like to know how to extract voice from a song so I can then use it as an acapella with Audition CS5?

    Also while I'm here, using audition CS5, how can I determine the tempo of any audio file, I opened, and also how can I so to match the bpm of another sound file to match the bpm of the track I'm trying?

    Thanks for your time

    Dan

    Your success with the voice of a song of isolation depends almost entirely on how the song was mixed and will vary widely.  There is no perfect solution, well repeatedly artifacts that remain can be reduced in a mixture.  Generally, you'll have the best success with the music where the vocals is panned to a specific location in the mix - usually dead center, but the tool can be used to isolate any position in the stereo field - without too much instrumentation to expand in this area.  Bass sounds are usually mixed Center as well, you may need some additional EQ or lower frequencies spectral removal after completing the stage of extraction.

    The tool you'll use in Audition is the effect of Center Channel Extractor , located under the Effects > stereo imagery menu.  Start with the preset Acapella , then change the setting from custom for additional control.  Select the region you want to isolate (it is often preferable to isolate the parts separately as, for example, the verses can be mixed very differently from a choir) and start playback with the open effect.  Use the power to temporarily circumvent the effect, so you can note the differences.

    Adjust the settings of phase shift and Pan to maximize singing with minimal instrumentation.  Use the bandwidth settings to help reduce some of the low-end and high-end mixture that is not associated with the voice.  The two vertical controls on the right allow you to adjust the levels of what is being isolated from all the rest. (Toggle to make a Karaoke mix.)  On the tab of the Discrimination , the most important parameters will be Crossover bleed and Discrimination of Phase controls.  You can set the parameters of the FFT on the Advanced tab, although I wouldn't recommend it until you are comfortable with the tool.  Must necessarily know exactly what that never parameter, but listen carefully while you make adjustments and you will begin to understand how each setting affects the result.

Maybe you are looking for

  • Slow rate of AirPlay

    I use AirPlay to get streaming football online (from the Australia, is not available outside the internet streaming via browser) my MacBook Pro (via the wifi of 5 MHz) to my Apple TV and then (via HDMI) to my TV big screen. When the action on screen

  • Why firefox doesn't include pages recently accessed menu drop-down with the 'back' button?

    This feature is fairly common and useful instead of research in history or up one by one.

  • How to reinstall the Photos app. ?

    He is a previous question I posted about getting the "update not available with this user Id" when you try to install an update of Photos under OS X 10.11.2. Someone sent a response recommending photo backup (done) and then uninstall and reinstallati

  • I forgot my login password

    Hi, I have an iMac with windows xp on it. I forgot my password to log in windows. I d really grateful if someone can help me. Furthermore, how can I go to the start menu? now delete, F10 and F2 did not work. See you soon

  • Why my screensaver sometimes goes real Sun?

    Why my screensaver sometimes goes real Sun? Info: power @ high performance and sleep and Hibernate value ever.