Boolean indicator toggle cancellation??

Hi there,
I have a voltage input coming from a daq usb 6009. I wrote a program to detect for the amplitude of the signal as soon as the input signal goes over a certain threshold. however it seems that sometimes the boolean output of the detection toggles "T-F-T-F" which modifies the amplitude calculation, and gives a wrong answer.
My question is, how can I ignore this toggling and only take the first true for a period of 0.5 sec (the period of the input signal). I want something like a software debounce circuit. 
I hope I was clear.
Thank you

Did you try a search?
E.g.: http://forums.ni.com/t5/LabVIEW/Software-debouncing-DI/m-p/400543#M199206

Similar Messages

  • Why do boolean indicator outputs toggle when true is written repeatedly?

    Hi,
    I'm using an LED boolean indicator in a sub vi connected to an output terminal.
    If TRUE is repeatedly written to it then it toggles between ON and OFF as though it were a push button switch and each TRUE received was someone pushing the switch.
    If I disconnect it from the output terminal then it behaves as expected, staying ON if TRUE is repeatedly received.
    Why does it do this, how can I fix it?
    Also, how can I turn all breakpoints off collectively without removing them?
    Thanks,
    Dave G
    (LabView V7.0)

    Hi Dave,
    go to File>>VI Porperties>>Execution and check if "Clear indiators if called" is checked.
    If this is checked it clears the indicator when the VI is called. If you set the value to TRUE this value will be given back to the calling VI.
    This behaviour was introduced to allow simpler programming. Think of a programm with various cases. There is only one case where you want to set the indicator to TRUE. If you haven't the above flag you need to set it to FALSE in all other cases. This forces to move the terminal outside of the case and to wire a lot of FALSE constants to the tunnel (nowadays we have the "use default if unwired" mechanism which makes the flag unnesseccary).
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Digital Input VI boolean indicator

    I am using the Example VI Digital Input as part of Fieldpoint.
    It works fine on its own.
    That is, I can place a voltage across the terminals of the DI module and the respective Boolean LED lights up on the front panel.
    I'd like to use the VI as a subVI for another program.
    I wired the connectors of Digital Input.VI connector pane such that the Fieldpoint IO Input and Boolean indicator array have connectors.
    I placed the Digital Input.VI in the block diagram of another VI and created an indicator on that VI to see the status of the array within the Digital Input.VI.
    Running the higher level VI and the boolean array on it is disabled (greyed out) but the boolean array on the Digital Input.VI is working properly.
    Any ideas?
    I'm just looking for a way to obtain a status bit type response to be used elsewhere.
    If one of the DI module channels is set high then the bit would be set (LED on) in my higher level VI.

    Alright, found that if I just take out the guts (Fieldpoint IO, FP Read, Type, Boolean indicator) and use that in my VI all works well.
    Now all I need to do is determine what bits are set and act on set bits.

  • I want to add boolean indicator

    i wan to add boolean indiactor please help me frnds
    Solved!
    Go to Solution.

    Create a boolean indicator.  Put it in a single frame flat sequence structure with the List Names property node and wire a True constant to the indicator.  Now when that frame of the sequence structure executes, the boolean will be set true the same time the data is going into the property node.
    Of course you need to have a way to reset the boolean indicator to false at the beginning of the program.  So wire a False constant into a local variable of the indicator and be sure that piece of code executes at the beginning your VI's execution.

  • Remove shading of boolean indicator

    I have created a boolean indicator which has some default shading to it.  Is there a way to get rid of the shading (plain color, unshaded) using the property nodes.  The help file doesn't really appear to address shading.
    Message Edited by mclaugb on 12-08-2009 02:07 PM
    Attachments:
    booleanindicator.vi ‏5 KB

    The trick is to copy the images from the Modern control to the images of a classic control.You do this using Customize Control...
    See attached file.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness
    Attachments:
    booleanindicator 1.vi ‏5 KB

  • Odd even number and Boolean indicator

    Hi all,
    For example, I have these numbers from 0 to 112233. It will start counting from 0 and shown it on an output indicator. When it is even number (0,2 or 4,...) the Boolean indicator will become false, but when it is odd number (1,3 or,...) the Boolean indicator will become true.
    I'd like to ask if it is possible to detect the values changing in output indicator when it start counting numbers from 0, and then the Boolean indicator will become false or true depending on even or odd number shown on an output indicator? How can I do that?
    Thank you!

    johnsold wrote:
    It may not be that much faster. In the little test VI Q&R takes 581 ms for 10^8 iterations while AND takes 503 ms. That is 78 ps difference. Hardly enough time for a coffee break. Unless you drink really fast.
    Yes, both are "fast enough" for all practical purpose. Even thought they are nealy identical in speed, the Q&R shows more variability in execution time (10% variability), while the AND is singificantly more stable (>1% variability).
    (Make sure you disable debugging for a 10x speedup overall)
    It also seems that the AND code folds better. If we change the control to a diagram constant, the AND version speeds up by a factor of two, even though no folding is shown anywhere inside the sequence structure. I have no idea what that means.
    LabVIEW Champion . Do more with less code and in less time .

  • System style boolean indicator

    Experts,
    Does anyone have a nice tidy way of displaying a boolean indicator in a system style? A checkbox does not seem like a good idea to me as it implies the user is able to click on it and change it. I could disable and grey it but again this implies something different.
    What I am after is a simple and neat method of displaying a boolean status to the user. I am using a small-ish boolean off the modern pallette at the moment, but it does not really fit in with the rest of the system scheme.
    Thanks
    Neil
    nrp
    CLA
    Solved!
    Go to Solution.

    Another option takes a bit of digging around in the control editor:
    1. Create a new custom control, starting with a system listbox. Once dropped, change to Customize Mode (click the wrench/spanner in the toolbar), right click on the border of the list box and choose to copy to clipboard.
    2. Create another new custom control, this time starting with a modern LED. Switch to the customize mode and right click on the border of the control and choose to paste from clipboard at the same size. 
    3. Repeat for false as well as true and resize parts to suit.
    4. I ended up with something like this:
    Attachments:
    System LED.ctl ‏4 KB

  • Boolean indicator come on and stay on if only one data point outside of limits

    Okay, here goes my second rookie question.  My first one was solved in a matter of hours after posting here, so I am going to give it another shot.  This has probably been posted elsewhere, but I just am not familiar enough with the terminology and know how to find it in this forum... sorry for that.
    Currently, I have a setup where I am using an In Range and Coerce function in the Comparison Pallette to check the output of my source and compare it with a user inputted upper and lower limit.  I have hooked up an LED indicator to the Index Array and then to the In Range output.  Right now, if my data goes outside of the limit, the LED Indicator will light up, but it will immediately turn off if the data goes back within the limits.  I want my LED indicator to come on and STAY on if even 1 data point goes outside of the limit.  What can I connect between my LED Indicator and my In Range Comparison to make this happen?  
    Sorry for being so new to this!!

    Hi Spsuengr,
    I have attached a boolean toggle vi for you. You can insert this vi in between your led indicator and in range output. It will latch the output by default. You can use the latch(t) input to disable the latch feature (to perhaps reset).
    Above is the boolean latch vi
    Above is how you need to insert it into your code. If you leave the Latch(t) input unconnected it defaults to a latch output. Only wire a control to this if you want to either change the output so it follows the input or if you need to reset the output.
    Rgs,
    Lucither
    Message Edited by Lucither on 04-15-2010 05:22 AM
    "Everything should be made as simple as possible but no simpler"
    Attachments:
    Boolean Latch.vi ‏18 KB

  • Get indicator while cancelling an Invoice

    Hi Experts
    While cancelling the invoice VBRK-FKSTO is not 'X' in RV60AFZZ. VBRK-FKSTO changed to X after execution of RV60AFZZ.So suggest some alternative to derive some indicator or flag for cancellation of an invoice before we click on the save button.
    Thanks in Advance!!!

    HI ,
    I am trying to get the indicator via user exit RV60AFZA, but unable to identify what indicator of  XVBRK  can be used for this.
    It would be great help if you can provide me  the exact logic .
    Thanks & Regards,
    Saurav

  • Animated Boolean Indicator

    I would like to create boolean indictor to show the status of a motor fan.
    The indicator will show a static fan if the input is false.
    It will show an animation of the fan turning i.e. moving when the input is True.
    Would appreciate if anyone could offer some advice me on how to carry out the implementation.
    Would it be easier to implement the control using the picture control toolkit or the picture ring control?
    I was unable to locate any help on picture control toolkit from the Labview Help files. The only documentation which I have was an obsolete Labview Picture Control Toolkit Reference manual dated back April 1994. It was downloaded from the NI website.
    Please share with me any websites or books which you may know th
    at provides more help or info on how to use the current version of the Picture Control Toolkit.
    My current Labview version is Labview 6.0.2
    Please feel free to email me at [email protected] if you have any advice or vi to share. Thanks.

    If you want to be really fancy, then upgrade to LabVIEW 6.1 which supports gifs(or rather the generic gif standard). This includes animated images. What you would need to do is to drop a classic square button in LabVIEW 6.1. The classic buttons have none of the 3d stuff. You then right click on the buttons >> advanced >> customize. This launches the control editor. Edit the control and import the animated gif from file for one state of the boolean button and you can import a static image for the other state. Now you have a boolean that will toggel between a staic image and an animated one. It will be tough to figure it out at first but learning how to customize controls is very rewarding.
    You can learn more about the editor by looking at the
    shipping doc "LabVIEW Custom Controls. Indicators, and Type definitions" This is found by opening LabVIEW >> help >> search the LabVIEW bookshelf. This launches a pdf of the shipping docs. A link to "LabVIEW Custom Controls. Indicators, and Type definitions" will be found there.
    I have attached an example I wrote for LabVIEW 6.1
    Jeremy
    Attachments:
    lew_logo.ctl ‏18 KB

  • How do i get a boolean indicator to trigger a event structure

    I have two parallel loops running, and i need to use a boolean value, one that comes out from an OR gate, to trigger an event in the parallel, event structure loop.  I've attached a simplified version of the loop.  Is there a way to get this done?  I've tried using local variables, value(signaling), etc. and they haven't worked
    Solved!
    Go to Solution.
    Attachments:
    Parallel Loop Trigger.vi ‏10 KB

    Here is a revised version of your VI. I modified the mechanical actino of the stop button so it kept it's value until it was read. In addition, I added a delay to your upper loop. Without a delay it was running too fast to actually see the button press. I modifed the event in the the event structure to trigger on a value change of Boolean.
    You don't really need the outer loop since it will only run a single time in all instances. On the first execution of that loop it will be sitting in the turn inner loops. Once you exit the two inner loops your outer loop will always exit. Therefore, it serves no purpose.
    Your OR in the upper loop is completely uses. It serves no purpose since the result will always be equal to the value of the Stop button.
    There are better ways of triggering events. a preferred method would be to use a user event and simply generate the event at the appropriate time. This has the advantage of not requiring additional controls/indicators simply to cause an event to occur.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot
    Attachments:
    Parallel Loop Trigger.vi ‏12 KB

  • Boolean indicator operation?

    Dear all,
    I have one question to ask. I have written a small example to illustrate my point. I have one indicator that is triggered by a condition. This condition can happen anytime.
    Once it happens, it will enter a case and display a message. Inside this case, it will be delay by about 20 sec delay. The problem is if the condition occurs within the interval of 20 sec delay, the message will only be diaplayed only once. 
     I am wondering is there a way to display the message  a few times if the indicator is "on" a few times during the 20 sec delay? Example, if the condition occurs 5 times, the message should display 5 times only. It is more like queueing.
    Thanks and hope someone can help out!
    Attachments:
    Untitled 1.vi ‏22 KB

    newbieboy wrote:
    Dear Raven,
    By right, it should be only an indicator, just ignore the local variable. 
    You can't ignore the Local Variable, as it is not needed and causes erratic behavior in your code.
    Let's go through some iterations:  (LI = loop iteration number based on "i")
    Run the code.  
    LI0:  Local =Last value in memory (could be True or False) If True, code executes True Case, the popup appears.
    LI1:  Reads the value of test.  If False, passes the value to the Local.  Local = False, code goes to False Case.
    note that there is no delay in the loop iteself, so it is spinning very fast...
    LI2588: Click on test.  Local= True, code executes True Case, the popup appears.  Click ok on popup, it dissappears. It waits 10 seconds.
    LI2589: Race Condition:  Which one will execute first?  Let's vote for Local.  Local still True.  Code executes True Case, popup appears. It waits 10 seconds.  It reads the test button. Local = False.
    do I need to go further?

  • Change boolean indicator type across entire VI

    I have a VI with hundreds of round boolean indicators.  I would like to change them to rectangular.  The only way I know to do this right now is to right click, then choose Replace and navigate to the rectangular type.  If I select several indicators at a time, this right-click context menu is no longer avaialble.
    Is there a way to do this across the entire VI, either by editing a params file somewhere or by being able to select many at the same time/

    bmishoe wrote:
    thank you, I'll see what I can do...
    Here's a Quick Drop plugin that'll do what you describe.  Change the style constant in the For loop to change what it replaces the selected objects with.
    This VI is in LabVIEW 2012 and was not made pretty.
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice
    Attachments:
    QD_ReplaceIndicator.vi ‏34 KB

  • Write data to a logbook file only when a boolean indicator changes

    Hello
    I need to write my local variable state to a simple txt file only when it's true or false state changes.
    for example, when my local variable 'temperature too high' is true, I need something like: temperature too high.
    When it changes back to false i need: temperature OK. This with a date stamp.
    It already worked to get a date stamp and to write the true or false state down but it always gets stuck in a while loop so the program keeps writing the same sentence.
    Solved!
    Go to Solution.

    I had to take a picture with my phone because we're not allowed to connect the computers with an usb drive, I hope you can see it clear.
    I know this while loop causes the program to write the same sentence over and over again but I don't know an other way to do it right.
    Thanks 
    Attachments:
    11166065_887284134650745_1225026485_n.jpg ‏46 KB

  • Boolean indicator showing fileglobals

    Hi!
    I´m using this OI in my projectsince it has (almost) all we need:
    http://www.ni.com/example/31278/en/
    However, I´m having a hard time understanding how to add stuff on the interface. The only thing i need is four LED:s for four specific test step results. I was thinking about using Fileglobals and the get property vi but how do I get the seqcontext for that inside the top-level vi of the OI? If anyone could supply a specific example for that I´d be very grateful!
    Thanks!

    I would use a Functional Global Variable (FGV) to store a reference to the control on the frontpanel.  Then in the callback VI you can call the FGV and set the control to the desired value.
    Or you can explicitly pass the reference to the front panel control around and as a parameter to the callback.
    This example kind of shows it but it's a little hard to follow: http://zone.ni.com/reference/en-XX/help/370052N-01/tsexamples/infotopics/handleuimessage_labview/
    Hope this helps,

Maybe you are looking for

  • Why does the iPhone randomly exit out of apps??

    Hello what should I do about my iPhone 4S randomly exiting out of apps? I've held the top and middle buttons at the same time many of times and its not helping! It's still occurring! Help!!!

  • Organizing albums per year in my iPod

    Friends, I find that organizing albums per year is much more convenient than by alphabetical order. And makes much more sense, to me. Now this is no problem when you're in iTUnes, as you can visualize all your music both ways, per year, alphabeticall

  • SM30 authorization

    Hello all, Is it possible to add an authorization object to a generated maintainance table view (to be used in sm30) so that the users can only see or add speficic entries to the table? Thank you Nuno Silva

  • Can Premiere Elements 13 export videos at 60 FPS?

    I am currently using Premiere Elements 10, and the highest quality video I am able to export for any file type is only 30 Frames Per Second. Does Premiere Elements 13 allow you to export videos at 60 Frames Per Second? I am trying to export high qual

  • Embed an iframe in a cell?

    I realize this is a long shot, but is it possible to embed an iframe in a Numbers document? I'm assembling datasheets on websites to potentially advertise on, and analytics companies (quantcast.com, compete.com) provide embeddable iframes so you can