How the LED lights up when a threshold is reached, then turns off only when the value does not reach the threshold for a while?

Hi, I want to write a program that can turn on the LED when a range of value, this is the threshold and only when the value does not reach the threshold for a period of time, say 5 seconds, then the LED will turn off, otherwise it will remain. How can I achieve this in labview? Can someone help me? Really thanks!

I assume that you use a while loop to keep the updated value.

Add a record to offset to your looping it initialize with a U32 (time in ms)

Add the registry to offset to your loop that keeps the previous value of your bool

When your reaches the threshold value => the light and set the current time in your shift register.

In the next iteration of the loop weather check value is still above threshold

=> Y-online previous set to true?

=> Y-online the next iteration

-Online N => turn switch on and set the current time in your shift register.

-Online N => subtract the time current less time shift record-online more then 5 seconds?

=> Is => keep turning on

-Online N => turn given

Tags: NI Software

Similar Questions

  • After turning on my wireless keyboard led green lights, then begins to blink, and then turns off. The batteries are fresh.

    After turning on my wireless keyboard led green lights, then begins to blink, and then turns off. The batteries are fresh.

    Possible explanation.  It is likely that batteries, so fresh, can be irregular in size.   The uncertain connection would therefore tend to lead to a failure to blink and you declare.   Read my thing...

    Batteries.

  • power led on the rear of the computer the power button / stop turns on, then turns off.

    I have a HP TouchSmart 610-1015xt.  The light on the transformer power is on, but not exactly brilliant (I think it's good, but not sure).  The light next to the power input is on.  When I plug in the power, the power led lights up for a couple / few seconds then turns off and does not turn.  At no time the computer capable of running and it does no whether noise (no fans, no beeps, no attempt to start.

    Any suggestions?

    Figured it out.  Apparently I have reset the battery internal and then unplugged the power button circuit and then he started upward.  The only problem is that now it will restart automatically every time it is closed or even sleep.  I'll start another forum on this issue.

    Thank you for your help.

  • How to disable series when your computer does not work?

    How to disable series when your computer does not work?

    and also how to use for computer B that you recently purchased?

    Thank you

    Shine,

    You can install and activate the perpetual software (purchased) two computers of the same type (mac or pc), as long as you use it on one at a time. (lightroom is the exception because it is a product of multi platform, so it can be installed on the pc and mac platforms)

    It is advisable to disable the software on a computer on which it will be is most used, especially before giving away or selling the computer or reformat the hard disk. Please see this link: How to disable the software.  This frees an activation if you have the option to install the software on another computer at any time.

    If you do not have access to your old computer because you have replaced a hard drive, upgraded your operating system to format your computer before you deactivate your software or your computer is dead, you can ask Adobe Support to help you disable from a machine, you cannot access. Have your serial number or Adobe ID ready, then contact us.

    To load the software on another computer, download and install it as you did on the first computer. Then enter your serial number to activate it.

    Guinot

  • I woke up this morning and my iPhone 6 does not light. I tried to reboot it by holding down the button market / stop and the button "home" but the apple logo never appeared and I had on the charger for a while and still nothing. Please leave suggestions!

    I woke up this morning and my iPhone 6 does not light. I tried to reboot it by holding down the button market / stop and the button "home" but the apple logo never appeared and I had on the charger for a while and still nothing. Please leave suggestions! Thank you

    You can make an appointment at the Apple Store - Genius Bar store and bring it into service. You can also search an Apple Store - find a store - Apple.

  • my iphone 5 works if connected to my charger, when I unplug it it stays on for a minute and then turns off, I can activate it after that but it turns off again. you wonder if it's my battery. I have already restored the phone, but it did not work. Help

    my iphone 5 works if connected to my charger, when I unplug it it stays on for a minute and then turns off, I can activate it after that but it turns off again. you wonder if it's my battery. I have already restored the phone, but it did not work. Help

    Most likely, the battery is broken. With AppleCare +, a replacement of the battery is free. However, without AppleCare +, a replacement battery will cost $79.

    Apple-Support - iPhone - battery and power: https://www.apple.com/support/iphone/repair/battery-power/

  • I have not connected to hotmail for a while, 3 months or more, and when I did there is absolutely nothing in my Inbox unless the Hotmail team welcome. Where all my stuff?

    lack of everything in my email account

    I have not connected to hotmail for a while, 3 months or more, and when I did there is absolutely nothing in my Inbox unless the Hotmail team welcome. Where all my stuff?
    That's happened?

    Darling
    Just a step: none forum available choices apply to this question.

    Hello CherieBurns,

    The best place to ask your question of Windows Live is inside Windows Live help forums. Experts specialize in all things, Windows Live, and would be delighted to help you with your questions. Please choose a product below to be redirected to the appropriate community:

    Windows Live Mail

    Windows Live Hotmail

    Windows Live Messenger

    Looking for a different product to Windows Live? Visit the home page Windows Live Help for the complete list of Windows Live forums to www.windowslivehelp.com.

  • mouse Bluetrack 4000 light turns on normally and then turns off on problem is not the battery

    mouse Bluetrack 4000 light turns on normally and then turns off on problem is not the battery.

    Hello

    1. your wireless mouse does not work?

     
    I suggest that you follow all the steps of the article which will help you solve the problem
     

    Troubleshoot a wireless mouse that does not correctly
    http://support.Microsoft.com/kb/321122

  • I can't open the system when he was sht down. But the system was the heat and I have to remove the battery for a while and it should re-sttart, what the problem.

    I can't open the system when he was sht down. But the system was the heat and I have to remove the battery for a while and it should re-sttart, what the problem.

    Too generic a question, can you clarify considerably more for us? Your question could be reformulated in the following way and always be true?

    "I can't start my computer once he has had a BSOD. Something overheated, but I don't know. I removed the CMOS battery and replaced in order to asure me that a bad overclock on a core component has not caused the problem. Now, it restarts correctly, what is / was the problem? »
    The foregoing, what I thought you meant. The above statement is correct?
  • When I turn on my laptop and it does not have the startup sound, video, or audio won't work.sound icon shows the audio service is not running.

    Hello
    I'm not a problem with my his laptop. I don't get all the sounds, even start-up noise. the audio icon indicates that the audio service is not running.when I try you trouble shoot the problem. I get the message the windows audio and generator of endpoint audio windows needs to run correctly for audio work for sound. At least one of the device does not work correctly.
    waiting for answer

    Sincerely

    Hello

    Did you of recent changes to the computer that caused the problem?

    What is the brand and model of the computer?

    What issues you're having with videos?

    To solve the problem, see these articles:

    No sound in Windows

    http://Windows.Microsoft.com/en-us/Windows/help/no-sound-in-Windows?T1=tab02

    Tips for solving common audio problems

    http://Windows.Microsoft.com/en-us/Windows7/tips-for-fixing-common-sound-problems

    It will be useful.

  • Help.Trouble with Photoshop 3d for AE. Not seeing the box keep 3d when importing. Does not load simple 3d in AE

    Not seeing the box keep 3d when importing. Does not load simple 3d in AE. (Cube simple 3d in PS. try opening in AE, but it gives me a box keep 3d to import even when the choice of composition.) Any thoughts? Thank you-kevin

    After Effects keep the Photoshop 3D layers.

  • Part of the tree with trigger WHEN MOUSE DOUBLECLICK does not work

    Hello

    I have the element of the tree to the form with dynamic data, these data extend to these point and maybe see the rim under this field, if the tree node show in the tree after scrolling element these point relaxation WHEN MOUSE DOUBLECLICK does not work.

    Any suggestion?

    Thank you

    I would use the WHEN-TREE-NODE-SET-trigger

  • 23 Pallvion all-in-one: the Logo screen then turns off 10 Windows

    I have upgraded to Windows 10 awhile ogo and so far my computer was working fine. Then, I came across a virus if sort so I decided to simply reset my computer. When I tried to reset it, it would be stuck on 1%. So, I then turned my computer off and when I turned it on the logo appeared for about 15 seconds and then turns off. I almost tried everything. I t doesn't let me not reset again without a disc I don't have. And it says there is an error when I try to refresh the pc. I'm stuck and need help fast!

    I didn't say it was the only way, but the most logical.  There are other choices.  You can use the set of diskettes of recovery that you made when the computer was new.  You can use a borrowed from Windows 8 or 8.1 Windows installation disk, but it would be necessary to match the windows that came from HP that was installed.  You could buy or borrow a disc 10 Windows installation to run.  On this day and the social environment, it is rare that you do not find a friend to do the free Windows 10 disc for you, however.

    If these choices do not meet your approval, then I guess there is a problem.

  • Save all the data for a while loop

    I already asked a similar question, but it is perhaps not very clear, and there are a few concepts that I did not understand.

    1. I have a keyboard to generate flow DTMF signal (I call it stream because it contains several shades that consist of a full phone number)

    2. I would like to save it as a wav file, but I guess that another format is correct and because the writing on a wav file does not support add so for this particular case, I use writing waving instead of writing to wav format

    My approach is to have a structure of queue so that I can write each iteration results in a file.

    (i) when I try to retrieve the data, there's nothing but 0.

    (II) my intention is to get 8000 samples per second (fs = 8 000) but he back up data so fast

    I have attached the file so if there is a way to solve problems, please help me.

    This vi includes many elements discussed above. There are no provisions for the intervals 'no signal '.

    Changes: Replaced with native features of LabVIEW Mathscript node. Mechanical Action to latch release button.  Cluster to array replaces Unbundle and table to build. Reshape the table to match the shape of the keyboard. Separate searches for frequencies of line and column. Note that this is easily extensible to handle the 4 x 4 keyboard. Structure of the event added. Added the stop command (but not implemented stop to the loop of the file). Added indicators for diagnostic purposes. Added FFT spectrum and graphic.

    I disabled writing to part of the file for testing.

    Lynn

  • Try power upward and he would keep a black screen for a few seconds then turn off and turn on and repeat until I've done a hard stop. I got a message on the svchost.exe

    Original title: help - csvhost.exe and problems to start

    My sons laptop has problems - try to turn on and it would maintain a black screen for a few seconds and then turned off and turn and repeat until I've done a hard stop.  I am able to navigate to the top after repeated attempts.  I could take a quick and complete hard drive test and it passed... Finally, I restored to factory and spent the last 8 hours going through the update process.  It works fine and restart without problems until recently - I followed the instructions to reboot to perform an update, but he had served in the "shutting down" mode for almost an hour I did a firm hard down.  It took a few attempts so he could begin after that, and when I did I had a message on the svchost.exe and thought that might have something to with him... found a site that has a download that is supposed to fix errors and am curious if that is recommended or whether there is another solution or possible make my misfortunes.  The site is: http://www.exe-error-advisor.com/svchost-exe.  I don't know what's happening - the computer works very well when it turns - to be fair, I did also made an update of "HP Total Care Advisor" who has nothing and after I rebooted I could not make it work... "HP Advisor has stopped working"

    Any ideas or advice?

    replied in the other thread

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-system/help-svchostexe-and-problems-booting/cd6ef667-7833-4f34-B976-ffded620a208

Maybe you are looking for