How to manage a case structure Untill a value is reached

Dear all,
I am collecting data with DAQmx and after a value is reached i want to do smthg else, for this reason i created a case structure and i put to the case selector that if a value is smaller than "10" then it is true. If it is false it should stop and do what i say even if the value gets under "10 again". 
 So how can i make this: "once the value is reached then do what i say  even if  the case selector value is back to true state after a while"
Thanks.
Kind regards.
Solved!
Go to Solution.
Attachments:
False-CaseStructure.png ‏15 KB
True-Case-Structure.png ‏19 KB

You can use the shift register to make a condition so once it enters into the value greater than limit case then it will not go to the other case even if the value goes below.
The best solution is the one you find it by yourself
Attachments:
Case Selector.vi ‏7 KB

Similar Messages

  • How can i set case structure always true on boolean impulse?

    Hello everyone! I need a little help. All i want is to set a condition when to acquire data from my acquisition board. I have a sinusoidal pulse and when value its near zero (between 0.5 and -0.5) i want to start to write data and also stop condition. How can i make my case structure to remain set to true until next condition? Thanks in advance!
    Attachments:
    Untitled.png ‏104 KB

    sdadasdas wrote:
    Thank you! I'm a beginner in labview and any advice is welcome!
    I highly recommend tutorials if you are really new.  Otherwise, just keep asking questions.  You'll figure it out soon enough.
    3 Hour Introduction
    6 Hour Introduction
    LabVEW Basics
    Self Paced training for students
    Self Paced training beginner to advanced, SSP Required
    LabVIEW Wiki on Training
    Learning NI
    Getting Started with NI Products
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Keeping count of how many times a case structure has been entered.

    I have a "Case" structure (when a button is pressed, it is "case True").
    I want to keep track of how many times this "case True" has been entered.
    How can I do this?
    Solved!
    Go to Solution.

    For that you need to have a shift register or a feedback node and keep counting whenever the case structure case is executed the count will be increased by one see the attached snippet.
    Good Luck
    The best solution is the one you find it by yourself
    Attachments:
    CaseStructure count.png ‏10 KB

  • How to manage exceptoinal cases in PMS processess

    HI Experts,
    We are facing problem in  managing exceptional cases in PMS cycle for transfer cases and promotion cases.
    How generally we maintain the procedure when we have multiple appraisal documents for the same employee in different dates
    How work flow get triggers when transfer takes place before midyear apraisals.
    Also let meknow how work flow triggers when promotiopn takes place after start of annual review process.
    Please advice me to proceed.
    Regards,
    Sairam

    the following cases needs to be included in Query.
    1.Wants to appear Project as well as WBS with and without respect of chosen profit center(Condition-WBS does and does not belongs to chosen Profit center).
    2.Wants to appear WBS with chosen Profit Centre(Condition- Project does not belongs to chosen Profit center).
    what are the necessary actions to be taken for this cases.
    Thanks in advance.
    Edited by: S MB on May 8, 2009 11:08 AM

  • How to change the case structure to string input?

    Hi,
    I have the inner case structure that it will decide to set "DC Voltage" or "DC Current" mode. The "Output Function" contained the selection of function "DC Voltage" or "DC Current". So far it only work with DC Voltage not DC Current. My question is how do I change the case structure to string selector? When the output function is selected to DC Voltage then the case structure is selected DC voltage case. Please help Thanks.
    Attachments:
    test.vi ‏35 KB

    You don't really need to convert the value to a string? The problem is that the value of the individual ring items are not 0 and 1, as you assumed. The values generated by the controls are:
    DC Voltage: 1006
    DC Current: 1007.
    You can find this out by viewing the properties for the "Output Function" and going to the "Edit Items" tab.
    So, all you need to do is change the 0 to 1006 and the 1 to 1007 for your case items.
    By the way, your sequence frame serves no purpose.

  • How extract data from case structure

    Hi all, I would like to extract the data from case structure, it's circled in red in the attached file. How should I do it? Thanks for taking your time to look at my post. Your help is greatly appreciated.
    Attachments:
    bp.jpg ‏161 KB

    Thank you guys for your prompt reply.
    As u can see from the vi, there's an error, I need the values in the circled area to be passed on to the block ( Bundled by name)
    Thanks !
    Attachments:
    fyp_bp_only.vi ‏90 KB
    fyp_bp_only.vi ‏90 KB

  • How to get a case structure to execute only once in a loop

    I have a while loop that is monitoring temperature. Once the temperature meets or exceeds a given setpoint I want to start a timer. At this point I don't want to monitor the temperature anymore. That is, if the temperature should drop below the setpoint, I don't want to execute the case structure again when the temperture meets or exceeds the setpoint(the temp may oscillate about the setpoint for a given period of time). In any event, I need the case structure to execute only one time, not every iteration of the loop.

    You can put a local Boolean variable "Flag" inside that case structure and
    set "Flag" to False. Outside the case structure, use an "AND" function
    output to control the case structure. The "AND" function has two inputs. One
    goes to the comparison results between real temp and setpoint. The other
    inputs connects to the "Flag" variable. In this way, once you entered that
    case structure, the "Flag" will be turned to False, and then in next
    iteration, you won't get into the case again because the "AND" function will
    be False as your "Flag" is False now.
    Hope this helps.
    Rentian
    1. Inside the case structure, put a
    "BB Herman" wrote in message
    news:[email protected]..
    >I have a while loop that is monitori
    ng temperature. Once the
    > temperature meets or exceeds a given setpoint I want to start a timer.
    > At this point I don't want to monitor the temperature anymore. That
    > is, if the temperature should drop below the setpoint, I don't want to
    > execute the case structure again when the temperture meets or exceeds
    > the setpoint(the temp may oscillate about the setpoint for a given
    > period of time). In any event, I need the case structure to execute
    > only one time, not every iteration of the loop.

  • How do I get case structure to recognize tab names?

    I have a tab control.  In my VI, I use a local variable reference to this tab control to switch a case structure.  When I first made this program, it made sense to call these tabs CS0-CS13.  Long story short, that no longer makes sense.  I have changed the names of the tabs in the front panel, but in the case structure they still show up with the old CS names.
    I tried deleting the local variable, recreating, and hooking it up to case structure, but no difference.  If I manually delete the name CS out of the case structure and replace it with the new name, it doesn't recognize it.
    In other words, it seems to be only remembering the name from the first time I created this tab.  Where do I change this?

    bmishoe wrote:
    I'm using the same version...
    Something (major) I somehow forgot to mention, although I'm not sure why it would make a difference....the CS names were temporary.  I then programmatically change the names during execution because the final name of the tab I want to be dependent on what board the user selects.  So the very first time I created the tab, I named them CS, then changed them programatically.  The case structure still recognized them by their CS name, which makes sense to me.
    In any event - these tabs are nested inside a parent tab.  I just checked and you're right...on my parent tab, the changes show up immediately.  So I'm thinking this has something to do with the fact that I change them programatically.  But still...that info has to be stored somewhere, but I don't know where.
    Hmmm, I think it might be time for some code. 
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • How about an Error Case structure with warning?

    Hi,
    while wiring some vis and thinking about error handling....
    In most cases the simple case structure feet by the error cluster will do the job. However in some cases when you deal with warnings, wouldn't it be nice to have an additional (optional) warning case that is true for a not empty source string and/or an error number?
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'

    I forget to mention: Of course there is a solution possible by unbundling the cluster and check the error number and string followed by a case. I still remember the time when the case selector couldn't handle the error cluster ... (started with LV3.1 )
    I just thought it would be a nice thing when you wire the error cluster to the selector and get the red and green case and you can right click, add a case and get a yellow(?) case named 'warning'
    Greetings from Germany
    Henrik
    LV since v3.1
    “ground” is a convenient fantasy
    '˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'
    Attachments:
    Example_BD.png ‏2 KB

  • Case structure for comparing values

    Hi,
    i just wanted to know if there is a special way to use comparison in case structures.
    I only kow how to create cases for things like if x=0 then ... if x=1 then ...
    Now I want to make it if x<0 then ... if x=0 then ... if x>0 then ...
    The only solution I found so far is creating a case structure inside a case structure.
    Is there a way to keep it all in just one case structure?
    Thanks and have a nice weekend,
    Bernie

    Case Structures are pretty flexible in how you can specify what triggers a particular case. You can specify ranges or various values per case.
    In your situation, if you specify three cases with the following values, you'll get what you want.
    '..-1' = x<0
    '0' = 0
    '1..' = x>0
    The two periods before or after a number indicate that the case should run if the value is anything less than or greater than the specified number, depending on which side of the number you place it. You can also use this to specify a range of number. '1..10' would trigger the case for any value 1 through 10. Using a comma between numbers lets you specify different non-sequencial numbers. '1,5,10' would run the case only those specified numbers.
    The same basic rules a
    lso work with text based Case Structures.
    Attached image shows the three cases you need.
    Ed
    Ed Dickens - Certified LabVIEW Architect - DISTek Integration, Inc. - NI Certified Alliance Partner
    Using the Abort button to stop your VI is like using a tree to stop your car. It works, but there may be consequences.
    Attachments:
    Case_Range_Values.gif ‏21 KB

  • How to find out the structure stored field  value in a standard program

    Hi Gurus,
    Please suggest me how to find out the structure field stores the value in which table.
    Exanple : i have a strutured field in T.code cj31 is BPDY-WERT1 and it is stotring value 10,000,000.00. know i need to find out in which table this value is storing .
    Please suggest me its urgent.
    Thanks in Adavance!!!
    Points will be rewarded.......
    Regards,
    Kranthi

    hi,
       Go to transaction ST05,Click activate trace with filter,Give the transactio name as cj31,Go to the transaction and navigate to the place where the particular field is present, then again go to st05 ,Deactivate the trace and display the trace.
    Now u can see how the data is fetched ,U can even go to display mode of the same transaction cj33
    Thanks
    San

  • How can i run case structure programitically

    hi,
    i am working on a vi , which has stages from 0...5. i am trying run the program, so that it executes case 0...5 one after other. and if i want to stop the program in the middle of the process, how i can connect the "stop" button to all cases, so that they all stops at the same time.
    Could you pls help me ..

    If all five states always execute in sequence, you could also do something similar to the following. (assuming you have a newer LV version that alllows for the conditional terminal in FOR loops)
    Use shift registers to hand data from one state to the next if needed.
    Message Edited by altenbach on 05-31-2009 09:59 PM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    5SequentialStates.png ‏4 KB

  • How to manage KeyFiledValue for great number of value in FCC

    Hello everyone,
    I'm facing a logic problem with FCC and key Value for a file to Idoc.
    I have a flat file with this strcuture
    CCCYYYYMMDDYYYYMMDD999999999999
    CCCYYYYMMDDYYYYMMDD999999999999
    CCC
    The last record has always 'OK' as value.
    I have create Key on the CCC field.
    But my problem, is that CCC has 999 possibility of value.
    And I have to interpret the last record (with value OK) before Idoc Mapping
    Thanks a lot for your help
    JC

    Hello Greg,
    The solution for preceding was ok, but here, my problem is with the value of the key.
    In one file I have always the same value, but I have many file with different value in the key.
    And I don't want to create Communication Channel for each origin file received.
    Thanks a lot
    JC

  • I have a case structure writing a digital out and I need it to express this case for 1 min......how?

    basically I just need to know how to make my case structure express a certain case for a specified amount of time. thanks...

    Two ways
    Use a Functions palette>>Time and dialog>>'wait'  function and set a 1 minute delay( 60000 m sec) delay
    If using a state machine, do a state transition only after the specified time has elapsed, as shown in attached vi
    Hope this helps
    Regards,
    Dev
    Attachments:
    n sec wait.vi ‏29 KB

  • CASE structure limits - dynamic?

    Hello everybody
    Is this possible, and if, then how, to make the CASE structure
    condition dependent on variable in my program.
    Egsample: I have integer and the value of this is changing during
    program running, and I need from some reasons, to make the CASE
    structure sensitive for the values of this integer. How I can do
    this?
    I know there is always way around, but I am interested in this
    solution.
    thanks in advance
    regards
    PP

    Hi Pawel,
    I am starting a new thread because I think I know what you are asking for.
    First of all, you can not change the values of the case structure itself BUT,
    there is a way.
    What I suggest is the following;
    1) Code your second case as normal. Pretend it has 3 cases 0,1 &2.
    2) Code the first case (just example) such that is has two cases A&B.
    3)Have the first case state A return an array of (3)strings that is "Good", "Bad", and "Ugly".
    4)Have the first case state B return an array of (3) strings that is "Bad", "Ugly", and "Good".
    Feed the above mentioned arrays into a serach 1-d array function. Use the retuned index to select the proper case of "the second case".
    If you now pass "A" to the first case structure, and "Good" to the "se
    arch 1-d array" it will return an index of 0 and the second case will execute case "0".
    If you pass the first case "B" and again pass "Good" to the "serach...." it will return an index of 2 and the second case will execute state "2".
    So,
    by manipulating the arrays returned by the first case structure, you can "dynamically" influence which of the states of the second case is called.
    There are many variations on this idea that are possible. A similar approach would make it possible to select states based on wildcards and simulate "sparse enums".
    Did I nail it this time?
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

Maybe you are looking for

  • Ecxel and Report Generation for Microsoft Office

    Hi, I'm trying to do move measurement data to a predefined Excel template. I need to put data into same template from different measurements into different places of the template. If the template (and Ecxel) is closed accidentally outside LabView 7.0

  • Clarification about SAP CRM 5.0, SAPPHONE

    Hi Buddies, Long time no see. Curently we are considering integrating SAP with our telephony system  AVAYA. According to our vendor, there are 2 approaches: SAPPHONE or ICI connectors. It is clear that ICI connector will be based on latest version of

  • 1.1.2 isn't working - how do I fix this?

    How can I get my iphone back to it's condition before I updated to 1.1.2? It was just earlier this evening when I updated. I also updated my itunes to the latest version as well. My ipod seems to work but my iphone will not read the contents and will

  • Adobe (Premiere & After Effects) on MacPro

    Dear Apple support, I currently own a late 2009 iMac 27". I studied & using Adobe After Effects & Premiere Pro. I'm seriously considering to buy the MacPro ! However: I am seeing a lot of talks in forums about problematic issues with the MacPro & Ado

  • Ejecutar un vi mientras es ejecutado un ibstalador

    Buenas tardes. Realice una aplicacion y de esta creé un instalador. Mi pregunta es que si puedo ejecutar un VI mientras corre el instalador de mi aplicación, esto es basicamente para configuraciones de la pantalla de mi aplicación. De antemano agrade