How to implement 'less than' in choosing functions depending on numeric input

I have a 1D array and I want to split what happens with different values
I made it so that the array outputs an element, with a scroll bar to change the element
The array is random 
When the element is < 512 I want A to happen
When the element is > 512 I want B to happen 
I've played around with case structure but what confuses me is the less than and greater than fucntion, it's output is a boolean
If it changes anything I am connectiong the the output to a multiply functino 
Thanks!  
Solved!
Go to Solution.

sofiakyle wrote:
I have a 1D array and I want to split what happens with different values
I made it so that the array outputs an element, with a scroll bar to change the element
The array is random 
When the element is < 512 I want A to happen
When the element is > 512 I want B to happen 
I've played around with case structure but what confuses me is the less than and greater than fucntion, it's output is a boolean
If it changes anything I am connectiong the the output to a multiply functino 
Thanks!  
I would recommend classes or getting some books on LabVIEW to study.  A basic question like this indicates you haven't yet been able to make the transition from text-based language to LabVIEW with any confidence.  It took me a while to be comfortable with it, so I feel your pain. 
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.

Similar Messages

  • How does operator 'less than' work with Rectangle objects?

    Just found in legacy code the following:
    private var firstRect:Rectangle;
    private var secondRect:Rectangle;
    if (firstRect < secondRect)
    // do something
    How does operator 'less than' work with Rectangle objects?
    Doc says that object is converted to number if it is not a String.
    Rectangle is not a String, though has conversion to String.
    Please help.

    IME the best way to know for sure is to experiment. The docs are only one person's best understanding of how things worked on the day, which is seldom 100% accurate. I find that even with code I wrote I can't accurately say 100% of what it does until I've worked with it for a while. Keep in mind that the docs are usually written when the code is written, so  never expect more than a rough idea from the docs.

  • How to implement the Oracle Group by function in Crystal reports?

    Hi all,
    In SQL, for example we have a group function like:
    select  district,state, country, continent, sum(no.of people) from world.
    Now, How to implement this group function in crystal reports? Please advise.
    Thanks in advance..
    Regards,
    sriram

    Hi Vinay,
    Thanks for the prompt reply.
    In one of our report, we are supposed to perform group by for 14 columns to get sum of 3 columns and there by displaying 17 columns in the report.
    When we tried in crystal reports to implement this oracle group by functionality:
    1. We created 14 groups from the Insert->Group option.
    2. By performing this, we got 14 group sections vertically(one inside the other).
    3. Then we created the sum(15th column),sum(16th column), sum(17th column)  by Insert->Summary option.
    4. We suppresed all the group sections except for the last group.
    5. Then, dragged all the groups to the last group section along with the summary fields.
    This is how, we tried to acheive the oracle group by function in Crystal reports.
    Please advise, whether our approach is right. If not, please suggest the appropriate approach with a bit detailed explanation.
    Thanks,
    Sriram.

  • How to return less than 4000 characters from pl/sql function in SQL call?

    Hello,
    Is there a way to limit length for varchar when calling pl/sql function from SQL? No matter how I write it it always returns 4000 bytes.
    If there is none, then does it make sense ever to specify lenght of the return variable?
    My goal is to encapsulate business rules within pl/sql functions. But if all varchar columns are returned as 4000 it is not feasible solution. Not only this is a performance issue in a data warehousing environment, bet when using those rules within SQL views user experiance would suffer as well. Are we left with the rule hardcoding solution? Also, I think that using SUBSTRING or TRUNC functions on top of business rules function defeats the purpose.
    Please see my attempt below. Your thoughts are appreciated.
    Thank you.
    /* Formatted on 06/11/2009 2:26:41 PM (QP5 v5.126.903.23003) */
    CREATE OR REPLACE FUNCTION mytest (myvar_in VARCHAR2)
    RETURN VARCHAR2
    AS
    l_return VARCHAR2 (15);
    BEGIN
    l_return := 'TEST_' || myvar_in;
    RETURN l_return;
    END mytest;
    CREATE TABLE TEST_ME
    AS
    SELECT mytest ('ME') AS VERYLONG FROM DUAL;
    describe TEST_ME;
    RUN ABOVE CODE:
    Function created.
    Table created.
    TABLE TEST_ME
    Name Null? Type
    VERYLONG VARCHAR2(4000)
    Edited by: Ilmars2 on Jun 11, 2009 2:46 PM

    Pointless,
    Thanks for jumping in on this and I am glad you asked :).
    I do not doubt that it is an architectural challenge. Otherwise it would have been done already! I am struggling with the fact that SQL knows what data type the function will return, but does not know the length of it, precision or scale. I will leave it at that.
    I will go with some high level requirements to allow for alternative thoughts:
    1)     Business defined rules. There are multiple types of business rules. Simple lookups, bucketing, complex calculations, data retrieved from other tables etc. We have about 500 different rules. Some of them are even overloaded – different inputs will produce the same output.
    Some simple examples are:
    Rule1 - Fruit
         when ‘A’ then ‘Apple’
         When ‘O’ then ‘Orange’
         Else ‘N/A’ end
    Rule2 – Bonus
         when STATUS =’Active’ and LEVEL=’CEO’ then bonus=salary*1.0
         when STATUS =’Active’ and LEVEL=’nobody’ then bonus=salary*0.01
         else bonus=0
    Rule 3 – Income Bracket
         When more than 0 and less or equal to 30000 then INC_B=’LOW’
         When more than 30000 and less of equal to 60000 then INC_B=’MIDDLE’
    Etc.
    2)     Challenge: All data users in an organization need to use the same rules (let’s assume data source is Oracle database). How to expose all the rules to different types of users in manageable way? Types of users – analysts, application/web developers, data warehouse teams etc.
    3)     Current system: Not only each user has coded their own rules (luckily based on the common specification), but hard-coding is taking place for each query within the confines of one project. The project I just looked at had about 12 modules with 30 hardcoded queries. Oops! Few rules just changed.
    My take: I was leaning toward encapsulating business logic within UDF’s. UDF’s provide all the flexibility we need + overloading. All the functions could be consumed by data warehouse team (building summary tables, cubes etc.) and application developers. For power users we could build views by applying the same functions on top of the source data. Thus avoid data duplication. It seemed win-win until this 4000 issue :).
    Your thoughts on alternative approaches are appreciated.
    Thank you.

  • How to implement the Forgot Password Reset Functionality?

    Dear,
    We are on 11.5.10,
    We have implemented functionality of subject mentioned by following steps of document 399766.1
    After updating profile, system show link of  "Forgot your password?" on Loing Page.
    When user click on this link system open another page which require username of forgotten password by submit button.
    User get notification on emial whether you want to approval or reject, if user approve then system just open another emial window and noting to be done.
    How can approve link send rest password notification to user. ( i tried to change inbound setting to 1 (804433.1) but system not allowing and raising an error on field "inbound server name" that unable to make network connection)
    Pls advice.

    Please post the details of the application release, database version and OS.
    How can approve link send rest password notification to user. ( i tried to change inbound setting to 1 (804433.1) but system not allowing and raising an error on field "inbound server name" that unable to make network connection)
    Is your workflow configured properly?
    Please post the exact error message from the Workflow log file here.
    Thanks,
    Hussein

  • How to implement more than one physical models from the same model

    Hello,
    We have designed a relational model for our application and now, we would like to implement it for our 4 environments: Development, Test, User-Test and Real. Each one has the same logical schema but, different physical clauses (i.e.: in development environment we will not use partitioning clauses).
    Is this possible?
    Thank you,
    Bernat Fabregat

    Hello Bernat,
    yes it's possible:
    1) open your design and go to Tools>"RDBMS site administration"
    2) add your sites there (Current design) - Development, Test, User-Test and Real; press ok when finish
    3) go to "Physical models" node in browser and use "new" from pop-up menu - your sites will appear in list
    4) after you set physical objects in one model (need to save it as well)l, you can clone those objects in other models - you can clone from lower or the same database version
    You can consider usage of "name substitution" functionality during DDL generation if objects should have different name (prefix) in different environment - in this there will be no need to change the name of objects in models.
    Philip

  • How to implement more than one AP in a LAN

    Hi
    If I take two basic LinkSys access points, and want to set it up in my LAN, what extra configuration do I have to do than configuring only one AP in my LAN?
    I'm talking about minimum configuration. So, if I take only one LinkSys AP, I would configure:
    1) IP address to the device
    2) Enable DHCP (we'll assume that I need DHCP to assign IPs to hosts)
    3) I will configure SSID
    I will not enable any security even data encryption.
    So if I'm to add another AP, because for certain areas in my office I don't get a good signale from AP1, what should I do?
    Anyway help would be highly appreciated.
    Thanks in advance!

    Actually you need to consider a couple of things:
    Are both these AP's going to overlap in wireless signal? If the answer is yes then you need to make sure they are both on seperate channels, for instance put AP1 on channel 1 AP2 on channel 6. Next make sure you set up DHCP so it wont dish out the same range on both AP's. On AP1 setup DHCP for 192.168.1.1 through 192.168.1.125 on AP2 setup DHCP for 192.168.1.126 through 192.168.1.254, this way you wont get any ip conflicts.
    I am assuming the switchport they are plugged in to will both be on the same VLAN, this is a must.

  • How to download less than everything?

    I have an old ipod with only 2GB which I want to download a small selection of our itunes library onto for my son. When we connect it, the device tries to download the whole library. How can we just download what we want?

    When attempting to sync, enable "Sync only checked songs and videos". Check off the songs you want and uncheck the ones you don't want. After that, iTunes will sync the checked songs.
    If you want (to reduce memory space), try converting songs into different format with lower bitrate (AAC+ 128kbps as example):
    iTunes: How to convert a song to a different file format
    Hope this helps.

  • How to remove less-than symbols in email

    when I have email strings, I get something like the following:
    "On 8/27/2014 9:17 AM, John Bain wrote:> I am trying this new format out to see if it works better and is easier
    >
    > On 8/27/2014 9:16 AM, John Bain wrote:
    >> I am trying this new format out to see if it works better and is easier
    >>
    >> On 8/27/2014 9:15 AM, John Bain wrote:
    >>>
    >>> I am trying this new format out to see if it works better and is easier
    >>> On 8/27/2014 9:14 AM, John Bain wrote:
    >>>> Ask your question to our community of users
    >>>>
    >>>> On 8/27/2014 9:01 AM, John Bain wrote:
    >>>>>
    >>>>> I am trying this new format out to see if it works better and is
    >>>>> easier"
    Is there a way to remove those ">>>" marks?

    What would you use in their place to separate the different postings and retain the Q&A context?
    You can remove them. This add-on offers this capability:
    https://nic-nac-project.org/~kaosmos/quoteandcomposemanager-en.html

  • I have a list of 1000 numbers, how do I find how many are less than 8?

    PPlease help asap

    Hi Rpickz1,
    A table with a Header Row and a Footer Row.
    Formula in Footer Cell A8 (or A1001)
    =COUNTIF(A,"<8")
    Make sure that the values are formatted as Number or Automatic, and not Text .
    Regards,
    Ian.

  • Its urgent...How to implement functions in http request handler ?

    Hello experts,
    I have created http request handler class and  also created service in SICF.
    service and handler class are connected. please guide me how to implement “info”, “get”, “create”, “delete” functions in request handler.

    Hi,
    It seems you go on your way of http basic programming where you need handle the request of info, get, etc. But here you have WDA framework, so you don't need do as the basic ways of http programming. SICF can handle the activated WDA applications, maybe you can call them SERVICES.
    I suggest you go through WDA architecture, tutorials, ... and at last you can find a full demo 'LORD_MAINTAIN_COMP' by SE80.

  • How  to get  response from such a  function

    How  to get  response from such a  function (in MODULE USER_COMMAND_0010 INPUT I get "ODGOVOR" 'X'
    FUNCTION Z_SEENKRAT.
    ""Local Interface:
    *"  EXPORTING
    *"     REFERENCE(ODGOVOR) TYPE  MSEG-KZEAR
    DATA ok_code LIKE sy-ucomm.
    DATA: test like mseg-kzear.
    BREAK-POINT.
    call screen 10.
    test = ODGOVOR.
    ENDFUNCTION.
    *&      Module  CLEAR_OK_CODE  OUTPUT
          text
    MODULE clear_ok_code OUTPUT.
      CLEAR ok_code.
    ENDMODULE.                 " CLEAR_OK_CODE  OUTPUT
    *&      Module  USER_COMMAND_0010  INPUT
          text
    MODULE USER_COMMAND_0010 INPUT.
    DATA odgovor LIKE mseg-KZEAR.
    CASE ok_code.
        WHEN 'DA'.
        ODGOVOR = 'X'.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0010  INPUT

    Hi,
    You need to declare the ODGOVOR variable in the TOP include, then you will get the value
    Regards
    Sudheer

  • How to Implement table view if I not know table columns ?

    I need to create table with WebDynPro IView, columns of which is defined by user input.
    I'm nivice.
    Better if you provide sample how to do it.
    Or, any detailed explanation is welcome.
    And, how to create Hierancical table - format of which depends from user input?
    Hierancical table - sectioned table made by 'group by' SQL operation.
    thanks

    thanks Pedro 
    but I did not understand one important thing, to some complete understanding:
    does a way to visualize SQL Select query - to define big? dynamically hand coded program?
    Or -does exist table controls that can show result of SQL query ?
    Does exist class structures that can own abstract Data from query,
    like result set which includes scheme of data, (collection of fields and types) ?
    does exist such a third-party libaries?
    evidently, such dynamic programming is used in almost every task ,
    using same and well known methods in pure programming languages (not WedDynPro)
    so  must they exist methods to automate such a big programming ?
    something useful
    Re: Table binding at runtime
    How to add columns in table at runtime?

  • Access to the logic functions on the numeric part of a Logickeyboard

    I have connected a logic keyboard (the one with the coloured shortcuts) to my Mac Book Pro. However, the numeric part (with stop, play, record, etc) is not working. Logic does not respond on the input through that numeric part. The main part of the keyboard works well, including the shortcuts to for example the bin, the mixer
    Does anyone has experience with this problem?
    I mean, there isn't a numlock key on the keyboard. So how do you get access to the functions on the numeric part?

    Q1: yes i have tested it in word and then numbers appears
    Q2: the key commands are the simple ones
    Like the enter is play, the 0 is stop, the 2 is mixer
    What i'm looking for is the key (like shift or fn) that changes the functions of the numpad

  • I am using a timed while loop and am unable to get the loop to run at a speed of less than 1ms (I am currently using the Wait(ms) function). How can I get a faster response?

    I am trying to create a virtual engine within a timed while loop and am unable to get the loop to run at a speed of less than 1ms (I am currently using the Wait(ms) function). This does not however allow realistic engine speeds. How can I overcome this? I have access to a PCI-MIO-16E-4 board.

    andyt writes:
    > I am using a timed while loop and am unable to get the loop to run at
    > a speed of less than 1ms (I am currently using the Wait(ms) function).
    > How can I get a faster response?
    >
    > I am trying to create a virtual engine within a timed while loop and
    > am unable to get the loop to run at a speed of less than 1ms (I am
    > currently using the Wait(ms) function). This does not however allow
    > realistic engine speeds. How can I overcome this? I have access to
    > a PCI-MIO-16E-4 board.
    Andy,
    Unless you use a real time platform, getting extactly 1 ms loop rate
    (or even less) is impossible. It starts getting troublesome at about
    0.1 Hz for standard operating systems.
    I'd tackle your problem with "if i mod 10 == 0 then sleep 1 ms".
    Of
    course this is jerky by design.
    HTH,
    Johannes Nie?

Maybe you are looking for