Searching for a Range Within a 1D Array

First, I should say that I did a search through the forums and tried some of the results but couldn't get the results that I was looking for.
I have a 1D array of a column of temperature data.  The temperature data spans roughly 10 degrees total, and most of it is accurate to the thousandths digit place (X.xxx). 
What I need to do with this data is separate it into certain ranges or manipulate it in its current state.
Less than range A has something happen to it, between A and B has something happen to it, C and D... etc.  The easiest way to do this would probably just separate them into their own arrays and go from there, but im kind of at a loss at how to do this.  I tried to make a CASE structure work but i failed.  Any help would be great!

takari wrote:
Less than range A has something happen to it, between A and B has something happen to it, C and D... etc.  The easiest way to do this would probably just separate them into their own arrays and go from there, but im kind of at a loss at how to do this.  I tried to make a CASE structure work but i failed.  Any help would be great!
What is "something" that needs to be done??? For example if you simply want to average the subranges, there is no need to built the arrays up first).
To split the data into seperate arrays depending on defined ranges, you could do something as in the attached.
(Of course you lose all information about original order of the elements. If order does not matter, you could simply sort the array then split it at the thresholds, for example)
LabVIEW Champion . Do more with less code and in less time .
Attachments:
SplitByRange.vi ‏15 KB

Similar Messages

  • How do I search for a word within a web page

    I would like to be able to do a search for a pecific within the page currenly viewed in the browser. Is there a way to do that in Firefox?

    Hi JossefPerl,
    Searching on a page is actually really easy. You can just hit ''CTRL + F'' to use the search feature. You should take a look at the Knowledge Base article on [[Searching within a page]] for more information.
    Hopefully this helps!

  • Searching for a substring within a string

    can someone reccomend a simple way to search for a substring within a string and count the number occurences of that substring.
    The substring and the string will be provided as command line parameters.
    Thanks
    gg

    A simple way would be to use the indexOf methods in String:
    http://java.sun.com/j2se/1.5.0/docs/api/java/lang/String.html
    Not sure what this has to do with event handling though :-P

  • Search for a String within a document (Word, txt, doc) using JSP, JAVA

    Hi
    I have created a little application that uses combination of JSP and HTML. Users of this application can upload documents which are then stored on the server. I need to develop functionality where I can allows users to search for a string within a document. More precisely, user would type in some string in a text box and application will search all uploaded documents for that string and return the downloadable links to those documents that contains that string. I have never done this before. I was wondering if someone could get me started on this or point me to some thread where this idea is already discussed. Any Jave code exists for searching through documents??
    Thanks for your help
    Riz

    http://www.ibm.com/developerworks/java/library/j-text-searching.html
    http://en.wikipedia.org/wiki/Full_text_search
    Type these parameter in yahoo:+efficient text search
    you will need something like openoffice library to read microsoft word document.

  • Search for a song within a playlist in iTunes 11

    I just want to know how do I search for a song within a playlist. I don't want to search the entire music library just one single playlist.

    Got it. I have to deslect the Search Entire Library in the search field

  • Search for a space within a text field

    Hi All
    I am trying to search for a sapce within a text field but sofar not being very successful. I have used:
    FIND search_str
               IN text_str
               MATCH COUNT  lv_mcnt
               MATCH OFFSET lv_moff.
    where search_str = TYPE c VALUE ' '.
    I am looking a way of searching a character within the string using ABAP (like INSTRING in other languages). If you have similiar codes - Could you please post me a copy - Thanks

    HI
    Check this..
    DATA string7(30) TYPE c VALUE 'This is a little sentence.'.
    WRITE: / 'Searched', 'SY-SUBRC', 'SY-FDPOS'.
    ULINE /1(26).
    SEARCH string7 FOR 'X'.
    WRITE: / 'X', sy-subrc UNDER 'SY-SUBRC',
                   sy-fdpos UNDER 'SY-FDPOS'.
    SEARCH string7 FOR 'itt   '.
    WRITE: / 'itt   ', sy-subrc UNDER 'SY-SUBRC',
                       sy-fdpos UNDER 'SY-FDPOS'.
    SEARCH string7 FOR '.e .'.
    WRITE: / '.e .', sy-subrc UNDER 'SY-SUBRC',
                      sy-fdpos UNDER 'SY-FDPOS'.
    SEARCH string7 FOR '*e'.
    WRITE: / '*e ', sy-subrc UNDER 'SY-SUBRC',
                    sy-fdpos UNDER 'SY-FDPOS'.
    SEARCH string7 FOR 's*'.
    WRITE: / 's* ', sy-subrc UNDER 'SY-SUBRC',
                    sy-fdpos UNDER 'SY-FDPOS'.
    Thanks ,
    Praveen

  • How can I use SQL to search for a pattern within a field?

    Hello, Frank, Solomon, ect
    I am now faced with this particular scenario, I've got the SQL to search through a field to find text within the field, but I have to know what it is before it can look for it.
    What I have to do is this:
    Search through a field, for a pattern, and I won't know what the data is I am looking for. Can this be done in SQL?
    For instance, Here is my SQL this far, I was helped allot in order to get to this point.
    select table_name,
           column_name,
           :search_string search_string,
           result
      from (select column_name,
                   table_name,
                   'ora:view("' || table_name || '")/ROW/' || column_name || '[ora:contains(text(),"%' || :search_string || '%") > 0]' str
              from cols
             where table_name in ('TABLE1', 'TABLE2')),
           xmltable (str columns result varchar2(10) path '.')
    When you execute the above SQL, you have to pass in a value. What I really need is to alter the above SQL, to make it search for a pattern that exist's within the text of the field itself.
    Like for instance, lets say the pattern I am looking for is this" xx-xxxxx-xxxx" and it's somewhere in a field.
    I need to alter this SQL to take this pattern and search through all the schemas and tables to look for this pattern match.
    Can be done?

    When you use something dynamically within a function or procedure, roles do not apply and privileges must be granted directly.  So, you need to grant select on dba_tab_cols directly.  If you want to do pattern matching then you should use regular expressions.  The following example grants the proper privileges and uses regexp_instr to find all values containing the pattern xxx-xxxx-xxxx, where /S is used for any non-space character.  I limited the tables in order to save time and output for the test, but you can eliminate that where clause.
    SYS@orcl> CREATE USER test IDENTIFIED BY test
      2  /
    User created.
    SYS@orcl> ALTER USER test QUOTA UNLIMITED ON USERS
      2  /
    User altered.
    SYS@orcl> GRANT CREATE SESSION, CREATE TABLE TO test
      2  /
    Grant succeeded.
    SYS@orcl> GRANT SELECT ON dba_tab_cols TO test
      2  /
    Grant succeeded.
    SYS@orcl> CONNECT test/test
    Connected.
    TEST@orcl> SET LINESIZE 90
    TEST@orcl> CREATE TABLE table1
      2    (tab1_col1  VARCHAR2(60))
      3  /
    Table created.
    TEST@orcl> INSERT ALL
      2  INTO table1 (tab1_col1) VALUES ('xxx-xxxx-xxxx')
      3  INTO table1 (tab1_col1) VALUES ('matching abc-defg-hijk data')
      4  INTO table1 (tab1_col1) VALUES ('other data')
      5  SELECT * FROM DUAL
      6  /
    3 rows created.
    TEST@orcl> CREATE TABLE table2
      2    (tab2_col2  VARCHAR2(30))
      3  /
    Table created.
    TEST@orcl> INSERT ALL
      2  INTO table2 (tab2_col2) VALUES ('this BCD-EFGH-IJKL too')
      3  INTO table2 (tab2_col2) VALUES ('something else')
      4  SELECT * FROM DUAL
      5  /
    2 rows created.
    TEST@orcl> VAR search_string VARCHAR2(24)
    TEST@orcl> EXEC :search_string := '\S\S\S-\S\S\S\S-\S\S\S\S'
    PL/SQL procedure successfully completed.
    TEST@orcl> COLUMN "Searchword"     FORMAT A24
    TEST@orcl> COLUMN "Table"     FORMAT A6
    TEST@orcl> COLUMN "Column/Value" FORMAT A50
    TEST@orcl> SELECT DISTINCT SUBSTR (:search_string, 1, 24) "Searchword",
      2               SUBSTR (table_name, 1, 14) "Table",
      3               SUBSTR (t.column_value.getstringval (), 1, 50) "Column/Value"
      4  FROM   dba_tab_cols,
      5          TABLE
      6            (XMLSEQUENCE
      7           (DBMS_XMLGEN.GETXMLTYPE
      8              ( 'SELECT ' || column_name ||
      9               ' FROM ' || table_name ||
    10               ' WHERE REGEXP_INSTR
    11                     (UPPER (' || column_name || '),''' ||
    12                  UPPER (:search_string) || ''') > 0'
    13              ).extract ('ROWSET/ROW/*'))) t
    14  WHERE  table_name IN ('TABLE1', 'TABLE2')
    15  ORDER  BY "Table"
    16  /
    Searchword               Table  Column/Value
    \S\S\S-\S\S\S\S-\S\S\S\S TABLE1 <TAB1_COL1>matching abc-defg-hijk data</TAB1_COL1>
    \S\S\S-\S\S\S\S-\S\S\S\S TABLE1 <TAB1_COL1>xxx-xxxx-xxxx</TAB1_COL1>
    \S\S\S-\S\S\S\S-\S\S\S\S TABLE2 <TAB2_COL2>this BCD-EFGH-IJKL too</TAB2_COL2>
    3 rows selected.

  • Search for certain Characters within set of Characters - in a field

    Hello -
    I know a search can be made within a field for a word, but I am not to sure, or I don't know how to accomplish this...To do a search in a field for certain characters within a larger set of charcters.
    For example: I would search, in the Call Description field, for DXXXX within CA0001DXXXXYYY or search for LXXXX within CA0001LXXXXYYY, the X is numeric characters and the Y's are Alpha characters. Can crystal accomplish this....
    Thanks for your gracious help....
    G.

    Like I said earlier, this code:
    If instr({database_field}, 'DXXXX') > 0 then "String Found" else "Not Found"
    cannot be used in a Record Selection formula.
    The following code can be used in the Record Selection formula:
    Instr({database field}, "string") > 0
    If you wish to search for 'D4444' in the field and return records where a match is found, you would use:
    Instr({database field}, "D4444") > 0
    -Abhilash

  • How do I search for adjacent words within MS WORD?

    I am new to Mac. I need to search WITHIN MS Word Documents for specific phrases. Example: Jim is a good boy. Spotlight will find all documents containing those 5 words, but not those 5 words together. There has to be a way...
    MacBook   Mac OS X (10.4.8)  

    First, thanks, I did. My naive take is that new plug-ins wouldn't be required.
    Second - I don't know about Google finding every document, but it returns some pretty impressive results, and fast (so long as Google indexes the page in the first place of course). You've never used this feature? I do it all the time when I want to see if there's an internet version of a document I have in my hand.
    Here's a random example the feature in action - I went to boingboing.net and snagged a phrase from the October archives: "You should give props to BabyStyle.com for the blue octopus costume". Here's the link to the October page:
    http://boingboing.net/200610_01archive.html
    and here's the link to the successful Google search:
    http://www.google.com/search?num=50&hl=en&lr=&safe=off&c2coff=1&client=firefox-a &rls=org.mozilla%3Aen-US%3Aofficial&q=%22Youshould+give+props+to+BabyStyle.com+for+the+blue+octopuscostume%22&btnG=Search
    Pretty impressive - the internet is a big place!
    Thirdly, there was a program written for OS 9 called "Gopher" that did just that. It was pretty handy. Come to think of it, it may have been written for System 8! It vanished from publication before there was even a web for it to be distributed on, and when I switched to OS X, it wasn't working well under 9. Of course outside of the personal computing realm, there are well known database programs like Lexis and Nexis that perform exact phrase searches on their databases, which are pretty extensive (at least as large as most document collections on most personal computers, I'd venture). In fact if you've never used those programs they have some pretty powerful functions, like searching for any occurrence of a word within so many words of a second target word.
    I'll give you a couple of examples of where phrase searching might come in handy. Suppose I have a collection of e-mails or correspondence (I guess we all do) and I want to find the one in which I facetiously repeated the punchline to the chicken joke - "to get to the other side". (You have to grant I might have a reason for wanting this particular e-mail, okay?) Of course if I search on "get", "other" and "side" I may wind up with four or five hundred results; those are pretty common words. That doesn't help me much. A phrase search,however, will yield, I dunno, three or four documents. Bingo.
    Or, here. I work in an office creating documents all day long. I've been working in this office, on PCs, for 16 years. That's a lot of documents. I may create three dozen or more on a single subject. The documents are all on the same subject and all pretty much have the same words in them. Maybe I've got a single paragraph printed from one of them and want to find the source document. A simple word search will yield back 80% of the lot. A phrase search typed in from the paragraph is almost certainly unique, however, and will give me my document in a blink.
    (Um, I'd have to move all the documents to a Macintosh to do this, but you get the point I hope.)
    Spotlight says it finds "anything anywhere" on your computer. I would use a feature like this *all the time*. Why shouldn't it be able to do it?

  • Is there a way to search for a file within a site defined in Dreamweaver?

    I know you can search for phrases within a file's code, but
    what if I have defined an extremely large site in Dreamweaver with
    thousands of files in it and then I search for a file with the
    phrase "contact" in it? Is there a way to do this in Dreamweaver or
    is there an extension that would add this functionality?

    On Thu, 24 Jan 2008 01:50:58 +0000 (UTC), "MartinUCSD"
    <[email protected]> wrote:
    >I know you can search for phrases within a file's code,
    but what if I have
    >defined an extremely large site in Dreamweaver with
    thousands of files in it
    >and then I search for a file with the phrase "contact" in
    it? Is there a way
    >to do this in Dreamweaver or is there an extension that
    would add this
    >functionality?
    Of course
    Edit | Find and replace
    put in the "content" in the Find box - select Find in Entire
    site and
    click Find all
    ~Malcolm N....
    ~

  • How to search for citation range? (regex)

    Suppose that I have an academic paper, the citations in which are compressed. For example, [3-5] means citation 3, 4 and 5.
    Suppose that I want to search for where 4 is cited. Becasue there is a huge amount of ways 4 is cited for example [1-8], [2-5], ....
    I have to resort to Regular Expression (regex) or some advanced search features. But I'm not what is available in Acrobat to allow me perform such a search. Could anybody give me any hint?

    Bring the Finder to the front.
    Press command-F.
    In the window that appears click one of the + buttons on the right.
    A drop down box called 'Kind' will appear, click it and choose other.
    Select System files from the list and complete your search.
    Macosxhints had a way to make the finder search them as a default behaviour but I can't find it.

  • I want to Search for a file within a directory

    how can i access a directory and search for a folder name in that directory

    Hi,
    SQL> set serveroutput on
    SQL>
    SQL> Declare
      2     l_conn UTL_TCP.connection;
      3     l_list ftp.t_string_table;
      4  Begin
      5     DBMS_OUTPUT.disable;
      6 
      7     l_conn := ftp.login( '172.21.15.15'
      8                        , '21'
      9                        , 'test'
    10                        , 'test123' );
    11 
    12     ftp.list( p_conn => l_conn
    13             , p_dir  => ''
    14             , p_list => l_list );
    15 
    16     ftp.logout(l_conn);
    17 
    18     utl_tcp.close_all_connections;
    19 
    20     DBMS_OUTPUT.Enable;
    21 
    22     If l_list.Count > 0 Then
    23        For i IN 3 .. l_list.Last Loop
    24           DBMS_OUTPUT.put_line(Trim(substr(l_list(i),instr(l_list(i),' ',-1))));
    25        End Loop;
    26     End If;
    27  End;
    28  /
    files1
    files10
    files11
    files2
    files3
    files4
    files5
    files6
    files7
    files8
    files9
    PL/SQL procedure successfully completedhttp://www.oracle-base.com/articles/misc/FTPFromPLSQL.php
    http://www.oracle-base.com/dba/miscellaneous/ftp.pks
    http://www.oracle-base.com/dba/miscellaneous/ftp.pkb
    Or Chris Poole's XUTL_FTP package:
    http://www.chrispoole.co.uk/apps/xutlftp.htm
    or with DBMS_BACKUP_RESTORE
    SQL> -- How to Install
    SQL> -- .../RDBMS/ADMIN/dbmsbkrs.sql
    SQL> -- .../RDBMS/ADMIN/prvtbkrs.plb
    SQL> -- .../RDBMS/ADMIN/catproc.sql
    SQL>
    SQL> Set Serveroutput on;
    SQL> Create or replace directory DIR_TEMP as 'c:\temp';
    Directory created
    SQL> Create OR Replace Procedure list_directory(directory Varchar2) Is
      2     ns          Varchar2(1024);
      3     v_directory Varchar2(1024);
      4  Begin
      5     v_directory := directory;
      6     DBMS_BACKUP_RESTORE.SEARCHFILES( v_directory
      7                                    , ns );
      8     For each_file IN (SELECT fname_krbmsft As Name
      9                         FROM x$krbmsft) Loop
    10        DBMS_OUTPUT.PUT_LINE(each_file.Name);
    11     End Loop;
    12  End;
    13  /
    Procedure created
    SQL> begin
      2    list_directory('c:\temp');
      3  end;
      4  /
    C:\Temp\prvtbcnf.plb
    C:\Temp\something.txt
    PL/SQL procedure successfully completedRegards,
    Christian Balz

  • Searching for a string within a file

    In control panel \ folder options \ search tab  I've selected "always search file names and conents (this might take several minutes).  and under "how to search" I have checked all 4 boxes.     Yet, when I search a folder
    and all sub-folders for a file containing a string Windows 7 finds nothing.  in XP this worked perfectly.  How do you search like this in Windows 7?   I actually had to write a PowerShell script that does the search for me and I thought Windows
    7 could do this by default but I guess not?!?!?
    mqh7

    Hello mqh7.
    You can use the find command from the Windows 7 command prompt window.
    Open a command prompt window and run find /? to have more informations about the command syntax or read the command documentation available
    here in TechNet Library.
    Bye.
    Luigi Bruno
    MCP, MCTS, MOS, MTA

  • Search for White space within strings

    create table emp_dtl
    (empname varchar2(23));
    Insert into emp_dtl values ('WAYNE');
    Insert into emp_dtl values ('JOSEPH KRUPP');     --------- has white space
    Insert into emp_dtl values ('YING ZONG LEE');    --------- has white space
    Insert into emp_dtl values ('COHEN');
    Insert into emp_dtl values ('MARIE');How can i search for empnames which has White space in it? From other OTN threads, I gathered that this has something to do with
    chr(32)But i don't know how to put this in LIKE operator.

    Hi,
    SELECT  *
    FROM    emp_dtl
    WHERE   REGEXP_LIKE (empname, '\s')
    ;will look for any kind of whitespace (including spaces, which are CHR (32)).
    It may be more efficient to specifically list all the different whitespace characters, and see if the string changes when you remove all of them:
    SELECT     *
    FROM     emp_dtl
    WHERE     empname != TRANSLATE ( empname
                           , 'x ' || CHR (9)     -- CHR (9)  = <tab>
                                          || CHR (10)     -- CHR (10) = <newline>
                                 || CHR (13)     -- CHR (13) = <return>
                           , 'x'
    ;Edited by: Frank Kulash on Jul 12, 2010 8:47 AM

  • How to search for a value within a tolerance in an array?

    I am trying to search in an array for a value of say 10 plus or minus 2. In other words, I want a value of true if there is any value in the array between 8 and 12.

    canadian;
    LabVIEW includes with a VI called In Range and Coerce. You can test the value using that VI.
    I also created a VI for exactly that. You can download it from here:
    http://www.jyestudio.com/lview.shtml
    It is called Search 1D array using conditions. Let me know if it is useful. Even more efficient, you can look at the code of that VI and then extract the functionality you want for your application.
    Regards;
    Enrique
    www.vartortech.com

Maybe you are looking for

  • Opening a html document in order to load a certain website (and login), results in opening the startpage(s) from FireFrox.

    we use a html document to automatically login out application. but when this document opens FireFox always opens the startpage. When FireFox is already running the html document works as intended. no problems with IE.

  • Posting A/R from self billing process

    Hello! Is it possible in some way to post the A/R also when we do self billing? The company code that does the self billing and the one it is done to, are both in SAP and trading partners of each other. While the self billing process works fine via t

  • Cisco ACS 4.2 - Server Busy

    Hi! We're authenticating our Desktops and IP-Phones via 802.1x using two Radius-servers running Cisco ACS v4.2 on Win2k8. From time to time we run into the problem, that one of the servers 'get's too busy' and stops answering authentication requests.

  • See Also Keyword Problem

    Hi all. I have a See Also keyword that is not showing up in the See Also Pod. I know I have previously created it but it does not show up. If I try to create it again, RoboHelp prevents me from doing so indicating that it already exists. When I open

  • NativeMenuItem.data disappearing

    I am trying to add native menu items to my Flex-based AIR app. I'm working on the Mac implementation first. I'm getting the existing menu bar with NativeApplication.nativeApplication.menu, adding a SELECT event listener on it, finding the existing Fi