Case structure greater than or less than

Hello.
I am having difficulty with making a case structure that if a numerical input is greater than a number it does one thing and less it does another.
Basically how do you work with case structures that aren't boolean, specifically if a number is greater than 38 it reassigns it as 0 (multiplies by zero something like that).
Solved!
Go to Solution.

http://zone.ni.com/reference/en-XX/help/371361H-01/lvhowto/case_selector_values/
Or use the boolean logic you are talking about.  If you use a greater than on your number and it is greater you will get a true and if it is not greater than it will be false.  You could even use the in range function (comparison pallete) to get a true or false.
Or give more information about what you are trying to do.  The more info you give, the better answer you will get.  Otherwise we have to guess why you are trying to do it the way you are asking when there could be a better way.

Similar Messages

  • How do I get a case structure's panel?

    I am trying to place a boolean indicator within a case structure via LabVIEW scripting and am not having any luck.
    I started with the following source code, which creates and populates a case structure from an array:
    https://decibel.ni.com/content/docs/DOC-22703
    So my code, rather than put an enum inside each case, creates some compound arithmetic and a mask for each case.  This is all working fine.  I now want to place boolean indicators on the front panel that correspond to each case, and this is where my problem is.  I can create the indicators, but when I look at the block diagram view, all of the indicators are located outside of the case structure, rather than the indicators being inside of each respective case.
    I think the reason is that a boolean indicator is created by passing a reference to the front panel.  But the problem with this is that the VI panel reference does not indicate that the boolean should be placed inside the case structure, just on the panel, so when you view in block diagram mode, it's just thrown the indicators all outside the case structure and wired them up via tunnels.  I am getting the panel reference by accessing the OwningVI field of my CaseSel object.  I feel like there must be some field I should be able to access that indicates to put the block-diagram boolean inside of the respective case structure, but I can't find it.
    I've attached a file with 3 pics in it.  One shows a pic of the code I'm using to create the indicators.  One shows the type of output I'm looking for.  One shows the type of output I'm getting.
    Solved!
    Go to Solution.
    Attachments:
    lv_case_struct.jpg ‏221 KB

    Before you connect the wire to the terminal, call the Move method on the indicator's terminal and use one of the case structure's Diagrams[] as the owner. This will move the terminal into the structure.
    Try to take over the world!

  • Case structure with more than 200 cases, slower lab view app

    Problem Description :
    i am currently making a vi which compose of a simple case structures, a case structure with more than 200 cases, what i noticed is that the more i added cases the slower the labview reacts, it takes time for me to route wire on each of the cases.
    i dont know if there are any setting in the labview environment that i can increase the buffer size? i dont know... but its getting slow (only on the
    vi with more cases in a case structure)
    mytestautomation.com
    ...unleashed the power, explore and share ideas on power supply testing
    nissanskyline.org
    ...your alternative nissan skyline information site

    Can you clarify what you mean by "slow". Does it run more slowly or does it feel sluggish during editing?
    Could you attach the actual VI?
     Overall, I agree with the notion of local variable overuse. For example, you read the same local variable twice in the same case. Is there a need for this? Is there a chance that it varies between the two reads? Typically, you would place the terminal in front of the case structure and wire to all the locations where you need the value. This ensures that the data is consistent. Still, this should not cause any slowdown problem.
    (On a sidenote, the code in the upper left corner is inefficient. You convert the same data to lower case with each iteration, so you might want to place this before the loop and do it only once (well, if you are lucky, LabVIEW will fold the operation, but still....). Also your "index array" operation can be replaced by autoidenxing of the 2D array on the outer loop boundary.)
    LabVIEW Champion . Do more with less code and in less time .

  • Camel Query : Calender list : Get Items agains given date that must be greater than and eqaul to start date and greater less than or equal to end date ?

    Camel Query : Calender list : Get Items agains given date that must be greater than and eqaul to start date and greater less than or equal to end date ?
    A Snap of Employee holiday list
    Case : Anne juul Sondergaar is on leave from 05-06-2014 to 07-06-2014
    I need a query to check wheither Anne juul is on leave at 06-06-2014 ????
    I am using this query that return nothing
    SPQueryquery =
    newSPQuery();
                                query.Query =
    @"<Where>
    <And>
    <And>
    <Leq>
    <FieldRef Name='Til' />
    <Value Type='DateTime'>"
    + WorkingStartDate.ToString("yyyy-MM-dd")
    + @"</Value>
    </Leq>
    <Geq>
    <FieldRef Name='Fra' />
    <Value Type='DateTime'>"
    + WorkingStartDate.ToString("yyyy-MM-dd")
    + @"</Value>
    </Geq>
    </And>
    <Eq>
    <FieldRef Name='Medarbejdere' />
    <Value Type='Lookup'>"
    + EmployeeName.Trim() +
    @"</Value>
    </Eq>
    </And>
    </Where>"
                                query.ViewFields =
    " <FieldRef Name='ID' />";
    Ahsan Ranjha

    Hello,
    Download CAML query builder from below location and use it to build your query:
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/f7b36ebc-6142-404a-8b04-9c87de272871/where-can-i-download-the-u2u-caml-query-builder-for-sharepoint-2010may-i-know-the-exact-link?forum=sharepointgeneralprevious
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Less than or greater than Decode Function

    Can we use less than or greater than (relational operator) operator in decode function

    Use Case instead.
    Not sure if you need it in your resultset or your where clause.
    Simple examples:
    MHO%xe> with numbers as(
      2  select 1 a, 3 b from dual union all
      3  select 2 a, 3 b from dual union all
      4  select 3 a, 3 b from dual union all
      5  select 4 a, 3 b from dual union all
      6  select 5 a, 3 b from dual
      7  )
      8  select 'QRY1'
      9  ,      a
    10  ,      b  
    11  from   numbers
    12  where (case when a >= b then 1 end) = 1
    13  union all
    14  select 'QRY2'
    15  ,      case when a < b then b else 0 end
    16  ,      case when b < a then a else 0 end
    17  from numbers;
    'QRY          A          B
    QRY1          3          3
    QRY1          4          3
    QRY1          5          3
    QRY2          3          0
    QRY2          3          0
    QRY2          0          0
    QRY2          0          4
    QRY2          0          5

  • I have a manual that contains headings and index entries that contain less than and greater than characters, and . The Publish to Responsive HTML5 function escapes these correctly in the main body of the text but does not work correctly in either the C

    I have a manual that contains headings and index entries that contain less than and greater than characters, < and >. The Publish to Responsive HTML5 function escapes these correctly in the main body of the text but does not work correctly in either the Contents or the Index of the generated HTML. In the Contents the words are completely missing and in the index entries the '\' characters that are required in the markers remain in the entry but the leading less than symbol and the first character of the word is deleted; hence what should appear as <dataseries> appears as \ataseries\>. I believe this is a FMv12 bug. Has anyone else experienced this? Is the FM team aware and working on a fix. Any suggestions for a workaround?

    The Index issue is more complicated since in order to get the < and > into the index requires the entry itself to be escaped. So, in order to index '<x2settings>' you have to key '\<x2settings\>'. Looking at the generated index entry in the .js file we see '<key name=\"\\2settings\\&gt;\">. This is a bit of a mess and produces an index entry of '\2settings\>'. This ought to be '<key name=\"&amp;lt;x2settings&amp;gt;\" >'. I have tested this fix and it works - but the worst of it is that the first character of the index entry has been stripped out. Consequently I cannot fix this with a few global changes - and I have a lot of index entries of this type. I'm looking forward to a response to this since I cannot publish this document in its current state.  

  • In Turkish QWERTY Keyboard you can type less then symbol " " but you can type greater than symbol  by using shift , why ??

    In Turkish QWERTY Keyboard you can type less then symbol "< " but you can type greater than symbol  by using shift <, why ??

    In Turkish QWERTY Keyboard you can type less then symbol "< " but you can type greater than symbol  by using shift <, why ??

  • Greater Than or Less Than using String Variables

    I seem to have a problem when trying to sort an ALPHABETIC LIST, seeing if one text field is greater tan or less than another.
    i.e. Lets say my variables are called FirstLetter and SecondLetter.
    FirstLetter="A", SecondLetter="B"
    So as an example and a test....Can I ask ...
    IF SecondLetter>FirstLetter Then
            Textwindow.WriteLine(SecondLetter + "  >" + FirstLetter)
    Else
            Textwindow.WriteLine(FirstLetter + " >= " + SecondLetter)
    Endif
    I seem to be fine and program working well with numeric values in variables but the '> & <' feature does not seem to work with Text ?
    Any help really appreciated
    Thanks
    Dave

    We gotta get their ASCII/UNICODE value before comparing them:
    firstLetter = "A"
    secondLetter = "B"
    If Text.GetCharacterCode(firstLetter) > Text.GetCharacterCode(secondLetter) Then
    Textwindow.WriteLine(FirstLetter + " > " + SecondLetter)
    ElseIf Text.GetCharacterCode(firstLetter) < Text.GetCharacterCode(secondLetter) Then
    Textwindow.WriteLine(SecondLetter + " > " + FirstLetter)
    Else
    Textwindow.WriteLine("They're the same " + FirstLetter + " letter!")
    EndIf
    Click on "Propose As Answer" if some post solves your problem or "Vote As Helpful" if some post has been useful to you! (^_^)

  • Is there replacement for (less than) and (greater than) in Oracle 10g?

    Hi,
    In the User Java Application using Oracle's > (less than) or > (greater than) is not working.
    Can anyone help me onthis for any feature in Oracle 10g instead of using less than or greater than
    Thanks and Regards

    Hi,
    What do yyou mean by "it's not working"?
    Maybe you could use sign function, instead.
    with t as (select 2 x, 3 y from dual union all
               select 2 x, 1 y from dual union all
               select 2 x, 2 y from dual)
    select t.*
      from t
    where sign(y - x) = - 1;
             X          Y
             2          1
    1 row selected.Regards
    Peter

  • Greater Than Less Than

    Dear all,
    I am Using oracle 10g R2 database on windows.
    I have a doubt that,
    If I have a 'Date' datatype column suppose a and want to (select Less than sysdate and greater than Sysdate-31(One Month).
    e.i.
    select a,b,c from T where a Less Than Sysdate-31(One month.);How can i do this.
    Thanks,
    Chanchal Wankhade.

    Shinegar wrote:
    I had not considered the effect on an index with TRUNC. Thank you for pointing that out.
    TRUNC doesn't actually remove time as you can see below
    SELECT TO_CHAR(TRUNC(SYSDATE),'MM/DD/YYYY HH:MM:SS AM') "Today's Date and Time" from DUAL;
    Today's Date and Time
    01/19/2012 12:01:00 AMLet's say sysdate = Jan 19, 2012 11:00:00 AM
    As shown above, trunc(sysdate) = Jan 19, 2012 12:01:00 AM
    So, trunc(sysdate) -1 = Jan 18, 2012 12:01:00 AM
    Removing the trunc from column a
    select a,b,c
    from T
    where a between trunc(sysdate)-1 and trunc(sysdate);will also remove all data that is greater than Jan 19, 2012, 12:01:00 AM so you would only see data from one day -- Jan 18th.
    Adding the trunc to column a returns all the data from Jan 18th and 19th.
    It is my experience that users will ask for a date range, but then will ask for just one day. If Column a is not truncated, then no rows would be returned when between trunc(sysdate) and trunc(sysdate).
    Most programmers will not use trunc(sysdate) in the where clause, but would use a variable with value assigned of sysdate or trunc(sysdate) as it provides more flexibility.
    If you do not want to use trunc on column a, then the where clause should be BETWEEN trunc(sysdate) - 31 AND sysdate.
    Edited by: Shinegar on Jan 19, 2012 12:40 PMThe trunc function does not remove the time portion, but it does set it to midnight. Or at least i would if you used the correct format mask in your TO_CHAR. The mask for minutes is MI not MM.
    SQL> SELECT TO_CHAR(TRUNC(SYSDATE),'MM/DD/YYYY HH:MI:SS AM') am_pm,
      2         TO_CHAR(TRUNC(SYSDATE),'MM/DD/YYYY HH24:MI:SS') mil_time
      3  from dual;
    AM_PM                  MIL_TIME
    01/19/2012 12:00:00 AM 01/19/2012 00:00:00John

  • "Less than 40%", "In between 40 and 70%", "Greater than 70%

    ADF Experts,
    In DVT like funnel chart, is it possible to change the graph bifurcation based on custom requirement.
    For eg : Funnel chart creates the funnel like "Less than 40%", "In between 40 and 70%", "Greater than 70%" . Is it possible to change this to any custom value ?
    thnks
    Jdev 11.1.1.5

    Hi,
    see "Treshold" in
    http://download.oracle.com/docs/cd/E21764_01/apirefs.1111/e12418/tagdoc/dvt_funnelGraph.html
    +"The number of threshold, each threshold range and color can be customized in the graph bean. These functions are not exposed to the faces layer yet, but application may use a graph binding to access these functions in the graph engine."+
    Frank

  • Does specified lsn should greater than or less than min_autonosync_lsn when setting up a "initialize from lsn" subscription?

    Hello,
    For setting up a "initialize from lsn" type subscription successfully, Does the lsn for @subscriptionlsn parameter need greater than or less than the  min_autonosync_lsn (syspublications) ?
    I read two versions of this: one is lsn >min_autonosync_lsn ,the other is lsn <min_autonosync_lsn. I agree lsn >min_autonosync_lsn.
    Thanks

    Basically it means that the lsn should be retrievable somewhere in the distribution database.  So it has to be> than the min otherwise you would need to reinitialize.
    Note that this is only important when you are mirroring the subscription database.
    looking for a book on SQL Server 2008 Administration?
    http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
    http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941

  • HT1688 Where are the less than and greater than symbols?

    where are the less than < and greater than > symbols?

    Assuming rawValue of the total field is returning as "10000".
    In the Calculate event of the Total field, write the following with Java Script as language.
    VP_Signature.presence = "hidden";
    Officer_Signature.presence = "hidden";
    if(total.rawValue>10000){
         VP_Signature.presence = "visible";
         Officer_Signature.presence = "visible";    
    else{ 
         VP_Signature.presence = "hidden"; 
         Officer_Signature.presence = "visible";
    Thanks
    Srini

  • Greater than AND less than

    i want to say 'if the root current frame is greater than 40
    and less than 50...
    if (_root._currentframe= ?)
    sorry, i'm kinda crap at this! please help!...

    You need to have a double || to get the logical or, otherwise
    you get the bitwise or.
    NSurveyor, I always put brackets, simply for readability. 25
    years ago I have been programming in APL, probably the "shortest"
    programming language ever. It looked like swearing in cartoons,
    with lots of stars, bombs and knives :-) I knew very few people
    that could read and understand those programs once they were
    written, not even the authors themselves. That taught me to
    introduce
    redundancy

  • Can a topic title contain angle brackets (greater than / less than)?

    Using RoboHelp 8, WebHelp output generated via rhcl and displayed in modified Internet Explorer (IE).
    One of my colleagues is creating a topic to describe an application object that has angle brackets (greater than / less than signs) in its screen name. Needless to say, RoboHelp doesn't like those symbols in the topic title, and it hides them and the text between them in the generated topic title. Steps to reproduce: Typed < and > in the Properties dialog; topic's <title> meta tag shows &lt; and &gt; .
    Other than replacing the topic title field with static text, is there a way to push these symbols through the Properties dialog or the HTML editor?
    It's not world-shatteringly important - the workaround is okay - but I'd like to know how to avoid this problem with other "special" characters, if I can.
    Thanks,
    Elisa

    Willam is correct that you cannot type < or > directly into the HTML code and in pointing out that RoboHelp automatically converts the code when you type that in design view.
    However, I think that you are aware of that and it is not the problem you want addressed. You can see that you can type that straight into the Topic Heading but your Topic Headings are not typed in, you are using fields and what you are finding is that if the Topic Title contains the brackets, that works everywhere other than Topic Headings. Is that correct?
    If so the cause is linked to what Willam has pointed out but I am sure Adobe could work out a solution. Report it as a bug. Please follow this link.
    http://www.Adobe.com/cfusion/mmform/index.cfm?name=wishform&product=38
    See www.grainge.org for RoboHelp and Authoring tips
    @petergrainge

Maybe you are looking for

  • Imac (early 2009) Slow, display issues and freezing, can anyone get any info from crash report?

    Hi, Just wondering if anyone can provide some insight into why my Imac is constintantly crashing. Issue: For as long as I can remember it has been ocassionally freezing. First there are little redish dots in clusters on parts of the screen, then if y

  • Adobe LiveCycle Designer error in WebDynpro

    Gurus, In the Adobe interactive form I am trying to add some elements from the library. As soon i drag and drop some element in the form I get message as below. "Adobe LiveCycle Designer has encountered a problem and needs to close.  We are sorry for

  • Can I modify the column "Net Price" of purchase order to display 3 decimals

    Dear expert,      Can I modify the column "Net Price" of purchase order to display 3 decimals?      Looking forward to your reply.      Many thanks. Best Regards, Merry

  • Error while configuring BizTalk 2010 SSO

    Here is the description Failed to create the SQL database 'SSODB' on SQL Server 'XXXXXXXXX\XXXXX' (with SSO Administrator account 'XXX\SSO Administrators')." Source="SSO" HelpID="" <Exception Message="(0xC0002A21) An error occurred while attempting t

  • Mpeg 2 export isn't working

    Using Final Cut, I'm exporting a .m2v file from Compressor 2 (I'm also using Dolby 2.0 for audio). It's a 90 minute movie so it's taking 8 hours. When it's finished, I have the icon of a white page with the top corner folded instead of an mpeg2 icon.