Lock elements of array true when the input element becomes true

I am working on a project in which I want to create an alarm for any number of inputs.  Any time that there is a input that is out of range, an alarm will be indicated.  I would like the indicated alarm to persist until the user pushes a reset button, even if the out of range condition is removed.  In addition, new alarm indication may occur and should also persist. 
In the VI below, the Alarm Dummy Control is used to generate alarm(s).  I want the Alarm Indicated array to maintain any element that had or currently has a true (alarm element).  Every alarm will persist until the manual reset is pushed.  
I am sure there is a simple solution, but I am drawing a blank right now.  
Solved!
Go to Solution.
Attachments:
Alarm Test.vi ‏21 KB

You can operate on the array directly, no FOR loop needed.
Here's a very quick draft. See if it can give you some ideas.
LabVIEW Champion . Do more with less code and in less time .
Attachments:
Alarm TestMOD.vi ‏13 KB

Similar Messages

  • Measurement output keeps drifting, even when the input channel are shorted out.

    Dear Technical Engineer,
    Greetings!
    Currently, we are conducting a voltage measuring experiment with your DAQ card "NI PCIe-6353". The voltage we are concerning is a slow variable ranging from 0-20mV.
    However, we met some problems operating your device.
    1.When the input channel is vacant (no connection to any voltage output), the measurement curve displayed in the test panel (built in your driver) keeps drifting (from some point to -10V, then slowly upwards to +10V, then downwards...), but not stays at 0V.
    2.The moment we connect the input channel to a DC stabilized power supply (2V), the measurement curve displays a quick step, but not step to 2V. Then, it continues to drift downwards.
    3.When we short out the input channel (for example, connect “33 A1” with “32 A1 GND”), the measurement output still keeps drifting, but not displays 0. 
    Thus, we wonder if some settings should be regulated, or if there is something wrong with our operations, or there is an additional grounding option that we missed, or the device just breaks down. Could you please give us your valuable suggestions?
    If you need any more informations, please do not hesitate to contact us (email:[email protected]). Thanks for your time and attention! We are looking forward to your kind reply.
    Best,
    Xianke

    Hi Xianke,
    It sounds like you may have your measurement configured in differential mode. If so, then you should read 0V when you short pin 66 AI1- to pin 33 AI1. Do you see this same behavior on other channels?
    It looks like the default input configuration is differential, so you can also leave your wiring as it is, and change to RSE.
    Trevor B.
    PSE
    National Instruments

  • Knowing when the input on aJFormattedTextField is done

    I'd like to know when the user finished entering the data to a FormattedTextField. by finished I mean that the user has entered all the letters that he could, according to the format (i.e. on zip code format ##### after 5 digits the user is done).
    i'd like to move the focus automaticly to the next field.

    basicly you can add a KeyListener to it. in its keyTyped, keyPressed, or keyReleased method you can check if the length is reached and then you can change the focus manually to the next component.
    but this "solution" means that you have to implement many key-listeners (one for each textfield).
    regards Errraddicator

  • Message to Creative Admin - Any word when the beta drivers become

    Why is it that it seems creatives driver cycle is every 3 - 0 months??One of the things I believe that EA/DICE has done a great job with the BF2 is keeping everyone updated with the status of the patches... Everyone knows that BF2 was ridden with bugs.. and if you read some of the forum most were pretty upset but for the most part they were happy when they heard that their issues were being addressed and had some time frame when the next patch was going to be out that resolved those issues... They even gave a taste of some of the enhancements? (ADDED BONUS)?Creative, take a play from EA/DICE.... You have potential customers of a new product that browses the forums for feedback on the product. Most tech savy are not compulsi've buyers and we do our research... Reading all of the negati've messages on this forum really causes me to pause about this significant purchase... Im not trying to bash... But how is your development organization run?So... To keep this short... Please provide your current customers with the progress of the drivers in development; In turn... Your potential customers will see that issues are being addressed and their purchase is well spent!Message Edited by mikelebron on 02-22-200606:57 PM

    I don't work for CL so personally I don't know, I was just repeating what Cat has posted before after the beta's got out. From what I've been able to tell no one found a changes or readme files with the beta so we all will have to just wait n see I guess.

  • Home Button Anomaly when the glass base becomes hot !

    Dear Forum
    I have noticed an anomaly when the iPhone4 is placed ontop of a macbook pro side of the hard disk in the sense that after using the MacBook pro for an hour or so, it begins to heat up and as a consequence, heats the glass base of the iPhone4 with dramatic loss of the home button functionality ...
    It takes a few minutes to cool down and return to functionality but the iphone4 needs to be closed down and restarted.
    I have not used the iphone4 in direct sunlight such as being in a hot environment like on the beach and I am not sure if the same effect can be replicated but it's really alarming that you loose the home button control and you need to reset the phone to be able to use the phone with normal functionality once the iphone4 has cooled down.
    Has anyone experienced the same or is it a known issue ?
    Thanks
    Joey

    Not at all. I use my iphone 4 outside in the sun with temps over 95 degrees, and it has been working fine.

  • Auto Lock/Unlock is not working when the iPad cover is closed or opened for iPad 4 with retina display after upgrading to ios7.

    As the title above, is there any solutions for that? I tried restarting my Ipad and i've double checked the auto lock/unlock button is on.

    I have the same problem also.  Restarting isn't helping and the auto lock/unlock button is on.  Plus a couple of time when I turn it on it is asking if I want to power off.  That is when I push the button on the front to wake it up.  Not the power button on top.  I have an IPAd 2. Worked fine before the update. 

  • Program terminates when the input number is in decimals(floating number)

    I am at the very initial stage of learning Java.I wrote basic program called account.Program is working fine when I enter the number without decimal eg.34,64....But it gives the following error when I enter the nuber with decimal eg.34.87,54.65
    account1 balance:$50,00
    account2 balance:$0,00
    Please enter the amount you want to deposit in account1 :
    45.63
    Exception in thread "main" java.util.InputMismatchException
         at java.util.Scanner.throwFor(Unknown Source)
         at java.util.Scanner.next(Unknown Source)
         at java.util.Scanner.nextDouble(Unknown Source)
         at neera.Exercise.Account.AccountTest.main(AccountTest.java:32)
    My code is as follows
    AccountTest.java
    package neera.Exercise.Account;
    import java.util.Scanner;
    public class AccountTest {
         public static void main(String[] args){
              Account account1 = new Account(50.00);
              Account account2 = new Account(0.00);
              // Display initial balance of each object
              System.out.printf("account1 balance:$%.2f\n", account1.getBalance());
              System.out.printf("account2 balance:$%.2f\n", account2.getBalance());
              // Create Scanner to obtain input from command window
              Scanner input = new Scanner(System.in);
              double depositAmount;
              * This is for measuring the account after depositing money in the
              * account1
              System.out
                        .println("Please enter the amount you want to deposit in account1 :");
              depositAmount = input.nextDouble();
              System.out.printf("\n adding %.2f to account1 Balance", depositAmount);
              account1.credit(depositAmount);
              System.out.printf("Account1 balance:$%.2f\n", account1.getBalance());
              System.out.printf("Account2 balance:$%.2f\n", account2.getBalance());
              * This is to measuring the account after withdrawing money from
              * account1
              System.out.println("Please enter the amount you want to withdraw:");
              double withdrawamount;
              withdrawamount = input.nextDouble();
              System.out.printf("The amount withdraw is $%.2f\n", withdrawamount);
              account1.debit(withdrawamount);
              System.out.printf("Account1 balance=$%.2f\n", account1.getBalance());
              System.out.printf("Account2 balance=$%.2f\n", account2.getBalance());
              * This is for measuring the account after depositing the money in
              * account 2
              System.out
                        .println("Please enter the amount you want to deposit in account2 :");
              depositAmount = input.nextDouble();
              System.out.printf("adding %.2f to account2 balance", depositAmount);
              account2.credit(depositAmount);
              System.out.printf("Account1 balance:$%.2f\n", account1.getBalance());
              System.out.printf("Account2 balance :$%.2f\n", account2.getBalance());
              * This is to measuring the amount withdraw from account2
              System.out
                        .println("Please enter the Money you want to withdraw from account2:");
              withdrawamount = input.nextDouble();
              System.out.printf("The amount Withdraw from account2 is :$%.2f\n",
                        withdrawamount);
              account2.debit(withdrawamount);
              System.out.printf("Account1 Balance is:$%.2f\n", account1.getBalance());
              System.out.printf("Account2 balance is :$%.2\nf", account2.getBalance());
    Account.java
    package neera.Exercise.Account;
    public class Account {
         private double balance;
         public Account(double initialBalance) {
              if (initialBalance > 0)
                   balance = initialBalance;
         public void credit(double amount){
              balance=balance+amount;
         public void debit(double amount){
              if(balance<amount){
                   System.out.println("Debit account exceeded account balance ");
                        }else{
              balance=balance-amount;
         public double getBalance() {
              return balance;
    }

    Looking at how your program displayed the account1 and account2 balances, I am guessing that you are in a place where decimal numbers are written with a comma (",") between the whole and fractional parts. At least Java thinks you are.
    Try using a comma instead of a period. (45,63)
    >
    account1 balance:$50,00
    account2 balance:$0,00
    Please enter the amount you want to deposit in account1 :
    45.63
    Exception in thread "main" java.util.InputMismatchException
    at java.util.Scanner.throwFor(Unknown Source)
    at java.util.Scanner.next(Unknown Source)
    at java.util.Scanner.nextDouble(Unknown Source)
    at neera.Exercise.Account.AccountTest.main(AccountTest.java:32)
    **********************************************************

  • Audio locks into "headset mode", even when the headset is not plugged in

    Sometimes the phone seems to lock into a mode where it expects the headset to be connected and won't use the mic/speakers for calls or iPod play. Sometimes a reboot fixes it, sometimes several reboots are needed. Sometimes repeated plugging and unplugging of the headset jack works. There does not seem to be a definitive and repeatable "fix".
    I don't recall this happening before the 3.0 upgrade, but perhaps not linked to version if it's actually a hardware problem. I tried cleaning out the audio jack port - no change. I'm pretty sure that it's software because hardware issues tend not to be intermittent.
    I have had at least one instance where the switch from speaker/mic to headset happened during a call. I could suddenly hear nothing, but I could see that the call was still up with plenty of bars. I plugged the headset into the phone and had no problem with the call.
    My next step is to go virgin with the phone and reload everything, but I prefer not to do that unless I really have to. Any ideas?

    I have been dealing with this for months. I have been on every website trying different things. I did the alcohol thing, reboot, restart, blowing into the phone, sucking out of the headset area and I got nothing. So the last thing I came across was that it was getting to hot. So I did what they said and put in the refrig for about 5 minutes and believe it or not it worked. But after im on the phone and you can tell its getting warm it will switch back to headset. So I put it back in the frig and it went back to normal. I cant keep putting it in the frig so I dont know what to do. But its obviously getting too hot and that really shouldnt happen. So try it and put in the frig. Let me know if it knocks it out of the mode. But the what do you do? So I will keep searching about other ideas to keep the phone cool plus Im going to talk to an apple rep about this. I hope this helps you...please let me know..J in Chula Vista, CA

  • My sleep/lock button is broken and I am scared that if my iPod dies I won't be able to turn it back on. Is it possible to turn it on even though the lock/sleep button is broken when the iPod is dead?

    Please help

    Sir. Snack. the exchange price depends upon model iPod and capacity. The price varies from $99 to $199
    See:
    http://support.apple.com/kb/index?page=servicefaq&geo=United_States&product=ipod

  • How to display current time when the inputs are added together and display intervals every sec?

    Hi, I added the values together but the time in the graph is not showing the present time.
    The one that is not displaying the current time is the voltage graph.
    On the x-axis of the voltage graph i want it to display every second interval.
    Thanks.

    You also shouldn't be using the local variables.  Instead, actually add up the signals from the wires.  What you have there is a race condition since you can be reading from the local variables before the terminal is written to.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How do i retrieve photos from my iPhoto when the program has become unreadable?

    Its a 9.3.2 verson of iPhoto and has suddenly become unreadable.
    I am unable to open the program, so i cannot retrieve all my photos off it!
    please help!!!!

    what happens? What version of the OS?
    Back up your iPhoto library, Depress and hold the option (alt) and command keys and launch iPhoto - rebuild your database
    LN

  • What does Java do with the input file?

    Hello everyone --
    I have a freaky Java problem. I'm running a program that takes an input file, reads it one line at a time, and determines whether the info I'm looking for is contained in it or not. For each line it reads, it decides if that line is good or bad, and broadcasts the findings in a System.out.println(). Every line gets one. When I run the program, I redirect the output to a log file. What's going on when the input file is 13000+ lines long and the log file is only 2500 lines long? This is tweakin' me out.
    Thanks for the advice,
    -Kwj.

    Here's what I have:
    boolean isGood = true;
    int count = 1;
    while((line = in.readLine()) != null)
    if (/*some condition is met*/)
    {*do some stuff*/}
    else
    isGood = false;
    System.out.println("***" + line);
    if (isGood)
    /*do some more stuff*/
    System.out.println(count + ". " + line)
    count++;
    }//process all lines
    As far as I can tell, I have every line accounted for in the else statement or the last if statement. If the line doesn't meet the req., it doesn't get to go on to the last if processing. All the good ones get processed. I think.

  • Sero reading when the equipment is off with NI6221

    Hi,
    I am acquiring few voltage signals using NI-6221 connected through SCB-68 connecting box.  When there is no voltage in the test setup the acquiring data shows some values. Is there any way to make this incoming signal zero when the equipment is off? I appreciate a help very much.
    Thanks,
    amaka

    Hi,
    When the inputs are shorted the DAQ board read the zero value.
    If I connect a DAG input to a voltage output of precious   power supply, should the DAQ reading be the same as the set voltage. This is just to check what the wrong here is.
    Thanks

  • My i cloud account is locked, the e mail address I used can no longer be accessed and when I click the option to use the questions to get a new password it asked for my ID number, when I input that it tells me its wrong! now what?

    I forgot my i cloud password
    The e mail address i used can no longer be accessed
    To access the questions way, it requires my ID number
    when I input my ID number the response is  ' ID number incorrect! even though I am inputting there correct number
    is there any way i can resolve this?

    Contact the Apple account security team for your country and ask for assistance resetting the password: Apple ID: Contacting Apple for help with Apple ID account security.

  • How do I clear the control alt delete key downs when using input acquire.vi?

    I am trying to monitor keystroks...  When I use the Input Acquire.vi after I log in to my system it says the Control LAlt and the Delete key are down and my code does not like that because the keyboard value is not corect...the Keypressed array always has 3 keys down....
    Is there a way to clear them or send key ups some how to get rid of them.
    Thanks for any help you can provide...
    I am using Labview 8.0
    Thanks
    Eric Horwitz

    There is no way that you can press multiple buttons at exactly the same time. Which keys are you trying to press? Are you talking about "PlatMods" (shift, ctrl, etc.)?
    Keep a shift registers with the states of the desired buttons in a boolean array and change the respective elements to true or false, depending on key-up and key-down events. On the Key down events, check if all elements are true and act accordingly.
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for