How to increment the index of row/column in multi-column listbox

Hello

I developed a program in which the multicolumn list box values are read and forwarded to another mechanism. To read specific values in the list box, I used index table to retrieve the value of a particular cell to the instrument.

Allows, for example if I want to run the VI several times and I want to increment the line index whenever the tracks VI as well as for successive runs, the values of the next level of lines are read.

For example. I have the following listbox

HAD Vd Vg

1 0.3 0.2

2 0.4 0.6

So for the first round, based on the index which I note the listbox can read 0.2 and 0.3 and assume that if I run this VI for lets say 2 times during the 2nd time it should read 0.4 and 0.6 instead of 0.2 and 0.3.Is it is it possible to increment the line/column index automatically? Please help me because this is the last step of my project.

Thank you

Robin

Your VI runs millions of times per second and elements within nanoseconds. You need to prevent this.

Here is a quick modification that goes to the next line, every time that you run the VI again and again when he's run out of items.

It might give you some ideas...

Tags: NI Software

Similar Questions

  • How to disable the index to the rows of the table updated

    Hello world

    I have a problem on a table with Oracle11g.

    I would update a table a lines opposite two in a table. This table has an index, and during the inversion, the index is duplicated.

    So, I turn off the index and then rebuild all indexes like this: How to disable the index in oracle

    However, I can't update a table when my index finger is rolled unusable.

    I create my table:

    CREATE  TABLE MY_TABLE(
      ID                         NUMBER(5) NOT NULL,
      TYPE                        NUMBER(1) NOT NULL,
      PRIO                       NUMBER(4) NOT NULL,
      CONSTRAINT PK_MY_TABLE
        PRIMARY KEY (ID, TYPE )
    );
    
    CREATE INDEX  PRIO_UK
        ON MY_TABLE(TYPE, PRIO);
    
    
    
    

    Then I selected all the elements and the results is:

    ID Type Prio
    1110
    2111

    Then, I tried to update this list with this script:

    UPDATE MY_TABLE set PRIO = 11 WHERE ID = 1 AND TYPE = 1;
    UPDATE MY_TABLE set PRIO = 10 WHERE ID = 2 AND TYPE = 1;
    
    
    
    

    I have an error on the first line, because the subscript for type 1 and 11 priority already exist.

    You have another solution to solve my problem?

    I thank you very much.

    Do not disable your index. Just perform your update with a single blow. Like this

    SQL> select *
      2    from my_table;
    
            ID       TYPE       PRIO
    ---------- ---------- ----------
             1          1         10
             2          1         11
    
    SQL> update my_table
      2     set prio = case when id = 1 and type = 1 then 11
      3                     when id = 2 and type = 1 then 10
      4                end
      5   where (id = 1 and type = 1)
      6      or (id = 2 and type = 1);
    
    2 rows updated.
    
    SQL> select *
      2    from my_table;
    
            ID       TYPE       PRIO
    ---------- ---------- ----------
             1          1         11
             2          1         10
    
    SQL>
    
  • How to query the total number of columns and lines filled with data?

    How to get the number of rows and columns in Exel file data using Excel report?

    Since you have posted this question in the forum of LabWindows/CVI, I guess you want to know how to do with CVI.

    You need to know how to open and activate the Excel data file.

    Depending on the function returns the total number of columns and lines col_count row_count, respectively.

    -----------------------------------------------------------------------------------------------------------------------------------------

    int CountColumnsAndRows (void)
    {
    Error HRESULT = 0;
    CAObjHandle rangeCurrentRegionHandle = 0;
    CAObjHandle rangeColumnsHandle = 0;
    CAObjHandle rangeRowsHandle = 0;
      
    unsigned long col_count = 0, row_count = 0;
      
    Must use the 'A1' property and CruuentRegion count the total of columns and lines, including the drafts!
      
    error = CA_VariantSetCString (& MyCellRangeV, 'A1');
      
    error = Excel_WorksheetRange (ExcelWorksheetHandle, NULL, MyCellRangeV, CA_DEFAULT_VAL, & ExcelRangeHandle);
    If (error<0) goto="">
      
    error = Excel_GetProperty (ExcelRangeHandle, & ErrorInfo, Excel_RangeCurrentRegion, CAVT_OBJHANDLE, & rangeCurrentRegionHandle);
    If (error<0)  goto="" error="">
      
    error = Excel_GetProperty (rangeCurrentRegionHandle, & ErrorInfo, Excel_RangeColumns, CAVT_OBJHANDLE, & rangeColumnsHandle);
    If (error<0)  goto="" error="">
      
    error = Excel_GetProperty (rangeColumnsHandle, & ErrorInfo, Excel_RangeCount, CAVT_LONG, & col_count);
    If (error<0) goto="">
      
    error = Excel_GetProperty (rangeCurrentRegionHandle, & ErrorInfo, Excel_RangeRows, CAVT_OBJHANDLE, & rangeRowsHandle);
    If (error<0)  goto="" error="">
      
    error = Excel_GetProperty (rangeRowsHandle, & ErrorInfo, Excel_RangeCount, CAVT_LONG, & row_count);
    If (error<0) goto="">

    Error:

    CA_VariantClear (& MyCellRangeV);
    CA_VariantClear (& MyVariant);
    ClearObjHandle (& ExcelRangeHandle);
    ClearObjHandle (& rangeCurrentRegionHandle);
    ClearObjHandle (& rangeColumnsHandle);
    ClearObjHandle (& rangeRowsHandle);
      
     
    If (error<>
    ReportAppAutomationError (error);
      
    error return;
    }

  • How to determine the index of an item in a cluster?

    I have a small program that I put in place, as I'm just trying to get up to speed on Labview.  I have a boolean cluster buttons and for some reason the top button of the page is coming through as Index 3.  There are four buttons in the cluster, but for some reason, there has been a change.  The top must be Index 0.  How to do the things fixed?  I do not see how to determine the index of each button through properties.

    Thank you

    The order of items in a cluster is the same as the order that you added them. To change the order, just right click and select "rearrange controls in the group. If you use Unbundle by name, you don't care the order.

  • How to get the value of a column in sql query?

    Hi, anyone knows how to get the value of a column in sql query?

    Here is my code, the value must be 1350079224397 in my PB, but I get 0

    QString query ("SELECT version FROM db_version");

    QVariant result = sda.execute (query);
    QVariantMap versionMap = result.toList () such () .toMap ();
    If (! versionMap.IsEmpty ())
    {
    qDebug()<"Version: "=""><>
    }

    OK, I have the solution

    QString query ("SELECT version as version FROM db_version");

  • How to set the height of row?

    How to set the height of row for my text in EA? I checked this article Edge animate help | Adding text to your project (tutorial) , but it refers to an old version of the environmental assessment.

    Hey Bruce,.

    You can set it in the user interface. Activate additional text settings in the property Panel by clicking on the arrow.

  • display the data in row columns

    I looked through the previous posts, but it is impossible to find a solution to my problem.

    I want to display the data in row columns.
    I have shown in the table below and test data and the sql code that gives me the result desired.
    However, you can see that the sql depends of me knowing all the values in the column "rank".
    I want a way to produce the output without knowing the values of rank.
    CREATE TABLE test1 (
      accno       NUMBER,
      holder_type VARCHAR2(10),
      rank        NUMBER)
    
    INSERT INTO test1 VALUES (1, 'acr', 0);
    INSERT INTO test1 VALUES (1, 'bws', 1);
    INSERT INTO test1 VALUES (1, 'aaa', 2);
    INSERT INTO test1 VALUES (2, 'cds', 0);
    INSERT INTO test1 VALUES (2, 'xxx', 1);
    INSERT INTO test1 VALUES (3, 'fgc', 0);
    INSERT INTO test1 VALUES (4, 'hgv', 0);
    INSERT INTO test1 VALUES (4, 'bws', 1);
    INSERT INTO test1 VALUES (4, 'qas', 2);
    INSERT INTO test1 VALUES (4, 'aws', 3);
    
    Here's the required output:=
    ACCNO     ALLCODES
    1     acr bws aaa
    2     cds xxx
    3     fgc
    4     hgv bws qas aws
    
    I.E. for each accno display the holder_types in rank sequence.
    
    SELECT * FROM
    (SELECT 
           a0.accno,
           a0.holder_type || DECODE(a1.holder_type, NULL, NULL, ' ') ||
           a1.holder_type || DECODE(a2.holder_type, NULL, NULL, ' ') ||
           a2.holder_type || DECODE(a3.holder_type, NULL, NULL, ' ') ||
           a3.holder_type || DECODE(a4.holder_type, NULL, NULL, ' ') ||
           a4.holder_type allcodes
      FROM (SELECT accno,
                   holder_type,
                   rank
              FROM test1
             WHERE rank = 0) a0,
           (SELECT accno,
                   holder_type,
                   rank
              FROM test1
             WHERE rank = 1) a1,
           (SELECT accno,
                   holder_type,
                   rank
              FROM test1
             WHERE rank = 2) a2,
           (SELECT accno,
                   holder_type,
                   rank
              FROM test1
             WHERE rank = 3) a3,
           (SELECT accno,
                   holder_type,
                   rank
              FROM test1
             WHERE rank = 4) a4
     WHERE a0.accno = a1.accno(+)
       AND a0.accno = a2.accno(+)
       AND a0.accno = a3.accno(+)
       AND a0.accno = a4.accno(+)) a
       ORDER BY accno

    So you're after what we call 'Aggregation in the chain.'

    Check this link as it highlights several techniques:

    Aggregation of string techniques

    A Re: Concat ranks of the values in a single column Michael

    At Re: multiple lines in a single line in the 'single column Table' followed by reason of Billy on the conduct of a stragg first.

    In addition, 11 GR 2 has the LISTAGG function.

  • How to check the index, on the number of columns in the table is created

    How to check on the number of columns in the table the index has been created. ??

    OR

    How check index, on the number of columns in the table that it is been created?

    890306 wrote:
    How to check on the number of columns in the table the index has been created. ??

    >

    OR

    How check index, on the number of columns in the table that it is been created?

    query USER_IND_COLUMNS

    SQL> desc user_ind_columns
     Name                            Null?    Type
     ----------------------------------------- -------- ----------------------------
     INDEX_NAME                             VARCHAR2(30)
     TABLE_NAME                             VARCHAR2(30)
     COLUMN_NAME                             VARCHAR2(4000)
     COLUMN_POSITION                        NUMBER
     COLUMN_LENGTH                             NUMBER
     CHAR_LENGTH                             NUMBER
     DESCEND                             VARCHAR2(4)
    

    Handle: 890306
    Status level: Beginner
    Join date: October 8, 2011
    Messages total: 13
    Total Questions: 5 (5 open)

    Why all the question still pending?

    Published by: sb92075 on December 3, 2011 17:21

  • How to get the index of the list column Mult box

    Hi all

    I need little help. Please help me.

    Is there is no property to dynamically change the index position of line "Multi column list box"?

    I want to change the index location when running as below.

    He called the top left cell Visible. There is no as many properties.

  • How to replace the value of a column in a table based on the value in the second column?

    Hi, I would like to find in a table 2D for values that meet certain criteria (for example, a column< 0.98).=""  based="" on="" which="" rows="" meet="" this="" criteria,="" i="" want="" to="" replace="" the="" values="" in="" a="" different="" column="" of="" the="" array="" (change="" to="" 'nan'="" so="" that="" the="" values="" will="" not="" be="" included="" in="" any="" calculations="" on="" that="" column,="" for="" example="" the="" finding="" the="" mean).=""  i've="" attached="" a="" sample="" .csv="" file.=""  if="" the="" values="" in="" column="" 3="" (index="" 2)="" are="" less="" than="" 0.980="" (or="" some="" other="" user="" defined="" value),="" then="" the="" value="" in="" column="" 2="" (index="" 1)="" should="" be="" replaced="" with="" nan.=""  can="" someone="" help="" out="" with="" this="" search="" and="" replace="">

    Thank you

    Keith

    (using LV 2009 SP1)

    A few quick hits.

    You can merge the two for loops

    You have not need one of the constants 1 and 2 in the index table.  They will solve automatically when you expand on the index picture, once you have wired to 0 in the column index.

    It seems a lot of handling additional table spent unnecessarily.

    See below.  I did not try to duplicate your code to see how it actually works, but I believe that I have attached will give the same result with less steps.

  • How to create the index suitable for my xml...

    Hi all... I have an xml attachment saved in an XMLType column in a table that is stored in binary xml secure.
    I want to use XQuery to navigate the xml code and push the results in a normal table.

    All of this works, I have a question if all the xmlindex I want to create.
    I want to create a xmlindex so that the plan of the explain command would be cheaper.
    If I remove the where XQuery bit the explain command comes with a cost of 32, but if I use the where the bits of the cost are 223000!
    Removal of the index makes no difference if the index is not used here.

    What index to use here and especially how he specify?
    I read something on the structured and unstructured indexes, but I did not understand what and how to use them.

    If someone could help that would be great.

    A point, however: the xml used for the explain command is much longer; It contains 48385 lines instead of the rows listed here.
    Ad al of them would make the post a little longer...

    table and index:
     CREATE  TABLE XML_NAME_CLOB ( 
            OS_FILENAME varchar2(255),
            ORA_DIR varchar2(255),
            NLS_CHARSET_ID varchar2(255),
            XML_DATA XMLType,
            LOAD_DATE date,
            AUDIT_ID number)
        XMLTYPE xml_data STORE AS BINARY XML
        ;
    
     CREATE INDEX po_xmlindex_ix ON XML_NAME_CLOB (xml_data) INDEXTYPE IS XDB.XMLIndex;    
    Used XML short-circuited for brevity
    <?xml version="1.0"?>
    <?mso-application progid="Excel.Sheet"?>
    <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet"
              xmlns:o="urn:schemas-microsoft-com:office:office"
              xmlns:x="urn:schemas-microsoft-com:office:excel"
              xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
              xmlns:html="http://www.w3.org/TR/REC-html40">
     <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
      <Author>def</Author>
      <LastAuthor>def</LastAuthor>
      <Created>2011-10-06T15:05:31Z</Created>
      <Company></Company>
      <Version>11.9999</Version>
     </DocumentProperties>
     <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
      <WindowHeight>12525</WindowHeight>
      <WindowWidth>24795</WindowWidth>
      <WindowTopX>120</WindowTopX>
      <WindowTopY>30</WindowTopY>
      <ProtectStructure>False</ProtectStructure>
      <ProtectWindows>False</ProtectWindows>
     </ExcelWorkbook>
     <Styles>
      <Style ss:ID="Default" ss:Name="Normal">
       <Alignment ss:Vertical="Bottom"/>
       <Borders/>
       <Font/>
       <Interior/>
       <NumberFormat/>
       <Protection/>
      </Style>
      <Style ss:ID="s21">
       <NumberFormat ss:Format="#,##0"/>
      </Style>
     </Styles>
     <Worksheet ss:Name="Sheet1">
      <Table ss:ExpandedColumnCount="2" ss:ExpandedRowCount="127" x:FullColumns="1"
             x:FullRows="1">
       <Column ss:Width="63.75"/>
       <Column ss:Width="58.5"/>
       <Row>
        <Cell ss:StyleID="s21"><Data ss:Type="String">budgethouder</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="String">documenten</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">ABU</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">24</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">ABJ</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">995</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">ACC</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">2754</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">ADD</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">224</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">ALG</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">310</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">AMM</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">125</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">WEN</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">106</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">YAO</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">263</Data></Cell>
       </Row>
       <Row>
        <Cell><Data ss:Type="String">ZAG</Data></Cell>
        <Cell ss:StyleID="s21"><Data ss:Type="Number">0</Data></Cell>
       </Row>
      </Table>
      <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
       <Selected/>
       <Panes>
        <Pane>
         <Number>3</Number>
         <ActiveRow>4</ActiveRow>
         <ActiveCol>3</ActiveCol>
        </Pane>
       </Panes>
       <ProtectObjects>False</ProtectObjects>
       <ProtectScenarios>False</ProtectScenarios>
      </WorksheetOptions>
     </Worksheet>
     <Worksheet ss:Name="Sheet2">
      <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
       <ProtectObjects>False</ProtectObjects>
       <ProtectScenarios>False</ProtectScenarios>
      </WorksheetOptions>
     </Worksheet>
     <Worksheet ss:Name="Sheet3">
      <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
       <ProtectObjects>False</ProtectObjects>
       <ProtectScenarios>False</ProtectScenarios>
      </WorksheetOptions>
     </Worksheet>
    </Workbook>
    Select with xquery
     select tabel.budgethouder, tabel.documenten
    from XML_NAME_CLOB,
          xmltable(
                  XmlNamespaces('urn:schemas-microsoft-com:office:spreadsheet' as "ss",
                  DEFAULT 'urn:schemas-microsoft-com:office:spreadsheet' ),
                   'for $i in /Workbook/Worksheet[1]/Table/Row[position()>1] 
                    where 
                      /Workbook/Worksheet[1]/Table/Row[1]/Cell[1]/Data/text()=''budgethouder'' and
                      /Workbook/Worksheet[1]/Table/Row[1]/Cell[2]/Data/text()=''documenten'' and
                      /Workbook/Worksheet[1]/@ss:Name=''Sheet1''
                    return $i '
                    PASSING xml_data 
                    columns budgethouder varchar2(100)  PATH 'Cell[1]/Data/text()',
                            documenten varchar2(100)    PATH 'Cell[2]/Data/text()'
                            
                  ) tabel
            where audit_id = 12;   
    Published by: MichaelR64 on 7-oct-2011 16:53

    Published by: MichaelR64 on 8-oct-2011 18:05

    You saw the answer on my blog? ;)

    begin
      dbms_xmlindex.registerparameter(
        'ext_smldata_xtb_param'
      , 'XMLTable ext_smldata_xtb ... big text content here ... '
      );
    end;
    /
    
    create index ext_smldata_sxi on ext_smldata (object_value)
    indextype is xdb.xmlindex parameters ('PARAM ext_smldata_xtb_param')
    ;
    
  • How to count the values in row

    Hello

    50 columns in a table are and 10 records are there. In these 10 records are not inserted not all columns (some are null values). How to find the values of The Count of Record (row).

    For example

    Table
    P1 p2 p3 p4 p5 p6 p7 p8 p9 p10...

    10 20 30 40 50
    20 30
    60 80



    In the table below - before, how to find
    the number of values in 1 record is 5
    the number of values in 2nd record is 2
    the number of values in 3rd record is 2




    --
    Thank you and best regards,
    Hari
    decode(p1,null,0,1)+
    decode(p2,null,0,1)+
    decode(p3,null,0,1)+
    ...
    
  • How to check the Index is in harmony with the Table

    Hi, DBAS,.

    OS = RHEL 4
    DB = 10.2.0.4


    How do synchronize us the indexes on a table? Can synchronize us a clue? If an index is not having the same number of records in the table?

    Thank you
    Hari

    In fact, I see a different number of rows in table and an index on it.

    Select count (asset_id) in the rpt.vehicle; -table
    -Returns 23 345 lines

    Select count (1) in the rpt.vehicle_idx; -index
    -Returns 18 287 lines.

    You cannot select an index in this way so it is nonsense.

    If you really do:

    select count(1) from rpt.vehicle_idx;
    

    then VEHICLE_IDX is not an index.

    SELECT object_name, object_type FROM ALL_OBJECTS WHERE OWNER = 'RPT' AND OBJECT_NAME IN ('VEHICLE','VEHICLE_IDX')
    
  • How to limit the number of rows returned in a query

    Hi friends,
    I want to limit the number of rows returned by my request to some 10 lines. How to do this. When I try to make some 6 rows with the rownum < 10 its giving results for a particular Department and that too only... btw I'm bundling my table and includes much a table joins and will order the results of the table by a column... How to do this...

    Run it:

    select * from (your query goes here) where rownum < 10
    

    Nicolas.

  • How to see the index of af: table

    In my database. I have tb_product with 3 columns: id, product_code, product_name

    I create a simple page. This page is af:table. I want to see the product list
    -----------------------------------------------------
    | DON'T | product code | product name |
    -----------------------------------------------------
    | 1. x 100 | XXXXX |
    | 2. y - 345. YYYYYY |
    -----------------------------------------------------

    In the column 'NO' in af:table. I don't want to show the real id in the database.
    How to show the number of autorun

    Hello

    Use the varStatus of the table variable. For example, name it "staus" and reference #{status.index + 1} in the column that should display the line number

    Frank

Maybe you are looking for

  • iPhoto themes

    MacBook Pro (13 inch, late 2011) Photos Application uses the 'themes' located in Mac HD > library > Application Support > iPhoto If this is not the case, can I delete the iPhoto folder? In addition, remove the iWorks and iLife files? I use Pages and

  • Time Capsule or airport repeatedly loss of internet connection

    Greetings, Last month, I had a problem with my Apple Time Capsule and my cable company router intermittently lose Internet several times a day between.  This has happened several times a day.  My Time Capsule, Airport utility would show a 'green' sta

  • Satellite C660-1F1 - Minecraft ha_err_pid error

    Toshiba Satellite C660 1F1 my son with Windows 7 Home Preium will not run Minecraft and creates a dump of notification and error with Java runtime environment. Yesterday, I wiped the laptop with the recovery disk and installed all the latest drivers

  • My iphone 6 with guard inviting 'storage almosy full' even if I deleted a lot of apps

    My iphone with inviting Guard 6 'almost complete storage"& enter '0 bytes available', even if I deleted a lot of apps, photos & videos. Could someone advise me on how to fix this please.

  • How to identify a specific sub - VI?

    Hello together, my work wonderfully VI just started gives me a strange error on the channels in use and so on. I don't really understand why and LabView does not help me. The error window tells me that the error occurs in DAQmx start Task.vi:3. So fa