How to count row in a channel with VB

Hello every body,
First, I'm quite new in VB script and I hope you will excuse me if the question seems stupid. I have several columns with an undefined number of row (for each file; the number of row will be different). As I want to automate the process, I need to know how many row I have per channel, each time I load data from a file (created by a LV programm)
thanks to those able to help me.
HerveM

Hello HerveM,
There are several ways get the the number of rows, here are two:
L1 = Data.Root.ChannelGroups(1).Channels("Temp_F").Prop​erties("length").Value
L2 = CL("[1]/Temp_f")
The first one is the object oriented method, the second one used the variable CL (Channel Length) to get the number of rows. They both work, and are up to your preference ...
Hope this helps,
   Otmar
Otmar D. Foehner
Business Development Manager
DIAdem and Test Data Management
National Instruments
Austin, TX - USA
"For an optimist the glass is half full, for a pessimist it's half empty, and for an engineer is twice bigger than necessary."

Similar Messages

  • How to count rows in a group =Count(Fields!FirstName.Value,"GroupByInitial")

    I have a tablix grouped on column a and detailed on column b.
    I am trying to count the rows in 3 separate ways.
    CountDistinct(Fields!A.Value) =work perfectly on group column
    CountDistinct(Fields!B.Value) = work perfectly on the detail column
    But now I was
    Count(Fields!A.Value) = on the group column but I get all the detailed count 13  instead of just the group count of 4.

    Hi Giss68,
    Based on my understanding, you want to calculate the count of the group fields, right?
    In your scenario, if you use Count(Fields!A.Value), the expression returns a count of specified values evaluated in the dataset scope. So it’s expected that you get count of all Fields!A.Value instead of grouped fields. Since you want to calculate the count
    of grouped column fields, you should use CountDistinct() function.
    As we tested in our environment, we specify the expression with CountDistinct() function, we can get expected result.
    Reference:
    Count Function (Report Builder and SSRS)
    CountDistinct Function (Report Builder and SSRS) 
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • How to Count Row Values

    Hi,
    In a Table 50 Columns are there and 10 Records are there. In those 10 records are not inserted all columns (Some are null values). How to find The Count of Record (Row) Values .
    For Example
    Table
    p1 p2 p3 p4 p5 p6 p7 p8 p9 p10 .........
    10 20 30 40 50
    20 30
    60 80
    In the Above table, how to find
    the count of values in 1st record is 5
    the count of values in 2nd record is 2
    the count of values in 3rd record is 2
    Thanks & Regards,
    Hari

    Hi ,
    CREATE TABLE Sample
    Col1 NUMBER(2),
    Col2 NUMBER(2),
    Col3 NUMBER(2),
    Col4 NUMBER(2),
    Col5 NUMBER(2),
    Col6 NUMBER(2),
    Col7 NUMBER(2),
    Col8 NUMBER(2),
    Col9 NUMBER(2),
    Col10 NUMBER(2)
    Table Created.
    I inserted Data like below
    Col1     Col2     Col3     Col4     Col5     Col6     Col7     Col8     Col9     Col10
    10          20          30     40     50     70          60
         10     30     40     50     60               20     
    10               20               30               
         10           20               30          40
    10          20               30          40     50     
    10     20     30 40     50     60     70     80      90      100
         10 20                                   
    10               20          30               40     
         10     20 30 40      50     60     70          
    10 20 30 40
    In the above data, How To find out
    1st row has 7 Values (Which Columns are not null)
    2nd Row has 6 Values
    3rd Row has 3 Values
    4th Row has 4 Values
    5th Row has 5 Values
    6th Row has 10 Values
    7th Row has 2 Values
    8th Row has 4 Values
    9th Row has 7 Values
    10th Row has 4 Values

  • How do i use a Aux channel with reverb from two different patches

    I have a Concert with an Aux channel strip for Reverb and i want two seperate patches to both use Send 1 with different amounts/level of reverb but when i move the fader on the patch and then go to the other patch the fader has moved back to the down position
    Hope this makes sense
    P.S i know i can do it with two separate buses but want to keep it tidy
    Thanks

    1: select an instrument channel, go the parameter of the channel then change the midi channel to "ALL"
    2: insert the Multitimbral sampler of your choice ( RMX, hypersonic or what ever) and load the sounds you want onto them
    3: open environment, in the environment parameter it shows AUDIO click hold it and select ALL OBJECT, then go to view and untick "BY TEXT"
    4: connect the GM DEVICE to the channel that has the Multitimbral Sampler on it'll ask Do you want to remove the channels port setting? click remove
    thats it
    Now go to the arrange window and you can use all the 16 midi channels to control one Multitimbral Sampler
    that means midi channel 1 will control what ever sound is loaded in the first slot on the Multitimbral Sampler
    lemme know if there was a mistake along the line, i'm a bit tired gotta help out
    stash

  • How get all rows of a table with a BAPI

    Hi,
    how is it possible to get more then one row by calling a BAPI from the WD. In my Application I need the rows of a Table coming from the r/3 System. How is it possible to get all the rows after the first call? What is the logic behind it? My purpose is also to create an own BAPI.
    regards,
    Sharam
    null

    Hi,
    If I understand, you don't want display the result into a Web Dynpro Table. If so, after the execution, the result of your request is stored into the context. Then you don't really need to transfert the data from your context to an Java Array.
    But if you want to do it, here is the code :
    guess your result node called
    nodeResult
    Vector myVector = new Vector();
    for (int i = 0; i < wdContext.nodeResult().size(); i++){
       myVector.put(wdContext.nodeResult().getElementAt(i));
    I hope this will answer to your question.
    Regards

  • How Can I separate my MIDI Channels with layered instruments in MainStage 2 With my Axiom 61?

    I have been at it for 3 days straight. I want to play an internal instrument (EVB3 for example) and trigger samples with the EXS24 without triggering notes from the other instrument. I have my keyboard set to MIy help meDI channel 1 and my drum pads set to MIDI channel 10. The still play together. I've tried changing MIDI input on both channel strips to multitimbral, Channel 1 for the keyboard and channel 10 for the drum pads. Still playing together. I've tried changing attributes in the Mapping screen. Still...
    I don't think its the Axiom. I've tried changing MIDI CC numbers but then it won't talk to either instrument. I'm currently using MIDI cables into a 3rd generation M-Box. I've tried using USB as well. Please, somebody help me!!

    Sorry for the late responce, I've been in program mode and haven't had a chance to come back to this.
    I figured it out. It was an option that I had over looked in the Assignments & Mapping tab in Edit Mode. At the bottom of the window that says All Devices. In that menu there is another tab that says Channel 1-16. If you click where it says Unassigned, down in the Screen Control Inspector there is a checked box that says "Send unassigned MIDI to all Channel Strips". If you uncheck that box then everything works perfectly. It is a little extra work having to assign the keyboard everytime you ad a channel strip but when you have to do some serious programming it's worth it.
    Anyone who needs to program with multiple devices should uncheck this right out of the gate. It will save you from pulling your hair out.
    Thank you Bruno for your help. It is much appreciated.

  • How to count number of xml nodes , with JSTL XML api?

    I am trying to count the number of nodes in the parsed xml by doing this:
    <x:out select="count($doc/Items/Item)"/>
    There are about 50 item nodes in the source xml, but I get the output as 0
    Is this syntax correct?
    I searched every where but couldn't find the xpath syntax to be used inside jstl xml tags, I was assuming that it's the same as the syntax used in xslt

    Thank you for your reply, sorry I wasnt very clear with my question.
    I want to count the number of nodes inside the jsp file , not inside the xslt file.
    My xml file is something like this for example:
    <?xml version="1.0" encoding="UTF-8"?>
    <DocumentRootNode>
    <Products>
    <Item>1</Item>
    <Item>2</Item>
    <Item>3</Item>
    <Products>
    </DocumentRootNode>
    I want the count of number of Item nodes , in the JSP file.
    I'm doing something like this in the JSP but it gives 0 instead of 3:
    <c:import url="source.xml" var="xml" charEncoding="UTF-8"/>
    <x:parse doc="${xml}" var="xml_doc"/>
    <x:out select="count($xml_doc/Products/Item)"/>
    null

  • How to configure HTTP receiver comm channel with dynamic URL parameters?

    I need to perform HTTP Post using PI. URL contains some parameters. I need to set these parameters with different values in run time.
    Please help to do this.
    Thanks
    Ranji

    Check the section Adapter Specific Message Attributes from this help section:
    http://help.sap.com/saphelp_nw70/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm
    The parameters can be set in the Message Mappinga nd then using the appropriate options in communication they can be included in the message header....for more info search with keywords "Dynamic Configuration" and you will get to know how the procedure works.
    Regards,
    Abhishek.

  • Counting rows for db tables with 500 million+ entries

    Hi
    SE16 transaction timesout in foreground when showing number of entries for db tables with 500million+ entries. In background this takes too long.
    I am writing a custom report to get number of records of a table and using OPEN CURSOR concept to determine number of records.
    Is there any other efficient way to read number of records from such huge tables.
            OPEN CURSOR l_cursor FOR
            SELECT COUNT(*)
               FROM (u_str_param-p_tabn) WHERE (l_tab_cond).  " u_str_param-p_tabn is the table name in input and l_tab_cond is a
              DO.                                                                              " dynamic where condition
                FETCH NEXT CURSOR l_cursor INTO l_new_count.
               PACKAGE SIZE p_pack.
                IF sy-subrc NE 0.
                  EXIT.
                ELSE.
                  l_tot_cnt = l_tot_cnt + l_new_count. " l_tot_cnt will contain number of records at end of loops
                  CLEAR l_new_count.
                ENDIF.
              ENDDO.
              CLOSE CURSOR l_cursor.

    Hello,
    For sure it is a huge number of entries!!!
    Is any key-fields?
    Use a variable to keep a counter of the key-fields , for example row_table and also a low and high variable .
    Try to use a do-loop and in this loop use:
    do .
    low_row  = row_table.
    low_high = row_table + 200.000.:increse the select every 200.000 entries
    Do  "select statement into table"  based on the key-fields 
    For example : if the key-field is the docnr,
    Do a "select into table itab where docnr >low_row
                                            and docnr < low_high"
    Count the lines of itab and keep them in a variable.
    free the itab.
    enddo
    Good luck.
    Antonis

  • How to count number of Characteristics' with the same value?

    Hello, Everybody,
    In InfoCube I have data:
    person ID (characteristic), points (key figure), gendre (characteristic), org.unit (characteristic)
    1313; 10; F;5001
    1313; 10; M;5001
    1313; 12; F;5001
    1313; 6; M;5001
    1515;20;F;5001
    Report,  with data from this InfoCube, should look like this:
    org.unit/number of employees, 6 points, 10 points, 12 points, 20 points
    5001, 1, 2, 1, 1
    Could you give me a suggestion how I can count the number of employees?
    Thanks in advance!
    Best Regards,
    Arunas Stonys

    Arunas,
    you can crate 4 CKF one each for employee points, and in each of the CKY have a data function value =1 if <your condition is satisfied>. This way the CKY will have a value of 1 if point is 6 for the first CKY and similarly for the rest and use exception aggregation based on person ID to count the no. of employees with that particular point in the Org unit. Use org unit in the rows and these 4 CKY in the columns and you should be able to get the report.
    hope this helps.
    Regards,
    Aashish
    Edited by: Aashish Kalra on Jan 6, 2009 12:31 AM

  • How to include row count in report

    I have a report which shows list of available classes for students to register. One table called reg (which is not included in the report) keeps student_id and class_id numbers so that we know who signed up for which class.
    I'd like to count rows in the reg table and group them by classid and then include results in the report so that we know how many students already signed up for each class. How can I do that?

    I assume that you are providing the report with some SQL to pull in the available classes. Why don't you put in a sub select where you are doing a count on the other table?
    So for example,
    SELECT a.CLASSID, a.CLASSNAME, (SELECT COUNT(*) FROM STUDENTS where CLASSID = a.CLASSID ...Your group by, etc...) as Current FROM CLASSES

  • How to Count number of rows

    Hi All
    If I have 2 tables with records in it, with primary Table A and Foreign key Table B structure.Then how to count the no of occurances of each records of table A in table B and print the values.
    Thanx

    Hi,
    If I understood you can a query like this:
    SGMS@ORACLE10> create table a (cod number);
    Table created.
    SGMS@ORACLE10> create table b (cod number,id number);
    Table created.
    SGMS@ORACLE10> alter table a add constraint pk_a primary key (cod);
    Table altered.
    SGMS@ORACLE10> alter table b add constraint fk_b_a foreign key (cod) references a;
    Table altered.
    SGMS@ORACLE10> insert into a values (1);
    1 row created.
    SGMS@ORACLE10> insert into a values (2);
    1 row created.
    SGMS@ORACLE10> insert into a values (3);
    1 row created.
    SGMS@ORACLE10> insert into b values (1,1);
    1 row created.
    SGMS@ORACLE10> insert into b values (1,2);
    1 row created.
    SGMS@ORACLE10> insert into b values (1,3);
    1 row created.
    SGMS@ORACLE10> insert into b values (2,1);
    1 row created.
    SGMS@ORACLE10> insert into b values (3,1);
    1 row created.
    SGMS@ORACLE10> insert into b values (3,2);
    1 row created.
    SGMS@ORACLE10> commit;
    SGMS@ORACLE10> select b.cod,count(*) from b,a where a.cod = b.cod group by b.cod;
           COD   COUNT(*)
             1          3
             2          1
             3          2
    SGMS@ORACLE10>Cheers

  • How to count the number of rows in a resultser object?

    hi there
    how to count the number of rows in a resultser object which may contains millions of rows? besides using a while loop? thanks

    You don't, you execute a query whose result is the record count of those records that match the search and then you execute the actual query to create your record set. Typically you do
    select count(id) from YourTable where [filter]
    from the resulting ResultSet do
    int res.getInt(1);
    which gives you the count and then
    select id from YourTable where [filter]
    to produce the actual result set.
    in the second query the id part can be substituted with the actual fields you want.

  • Counting rows with a particular value

    Hello. I recently posted this thread Count java problem for how to count an attribute.
    Now I need that count to be limited to a certain value inside the attribute.
    let me clarify. I have a table Casinos, which is connected to a table SlotsInCasinos, which is further connected to SlotMachines in a many to many with SlotsInCasinos being the intersection.
    The previous post that I mentioned (thanks Timo by the way) told me how to count all the slots in a particular casino.
    Now I would like to know how I could count all the slots of a particular value (for example Poker slot Machines, regular Slot machines, etc) instead of the total count in a particular object.
    So on the page I would have lets say 2 output texts, one showing the number of Poker Slot Machines in that particular casino and the other showing the number of regular Slot machines in that particular casino (a third could show the number of some third kind of slot machines).
    Thank you for your time

    Hello everyone here is an update
    I created a view object called Test, based on the entity object SlotMachinesInCasino. I then created a view link TestLink and created a master detail relationship (the same one I already had for the View Object SlotMachinesCasinosVO.
    The difference is in the query for test I put the following
    SELECT
        VezaTehOpTipAp.OBJEKAT_ID,
        VezaTehOpTipAp.TIP_APARATA_ID,
        VezaTehOpTipAp.VEZA_TEH_OP_TIP_AP_ID,
        TIPOVI_APARATA.NAZIV_APARATA NAZIV_APARATA
    FROM
        VEZA_TEH_OP_TIP_AP VezaTehOpTipAp,
        TIPOVI_APARATA
    WHERE
        TIPOVI_APARATA.NAZIV_APARATA = 'Evona'My thinking was that if I do this the estimated row count function for this will just give me the number of Evona Game machines. I tried it out in an SQL Worksheet and it gives back only the Evona machines.
    Unfortunately when I create the TestIterator and then drop output text whose EL is the estimated row count for the test iterator it does not work as intended. It counts all the Slot Machines in the Object no matter the Name.
    So it gives a number equal to all the slot machines instead of to the number of slot machines with name 'Evona'.
    What did I do wrong?

  • I have video clips with 4 channels of audio, I can only hear audio recorded on channel one, how do I hear the other channels......?

    I have video clips with 4 channels of audio, I can only hear audio recorded on channel one, how do I hear the other channels......?

    What version of Premiere Elements and on what computer operating system?     Elements 13 on Windows 7
    What is the brand/model/settings of the camera that recorded these videos?        ony  PMW 320
    When you import them into your Premiere Elements project, what does Premiere Elements Properties for that import give for
    the audio description in the way of number of channels? If you open the Audio Meter (Window Menu/Audio Meters) and you play back
    the video in the Premiere Elements Editor, how many channels does the Audio Meter display?   
      I just drag and drop video and when playing back only channel 1 will appear
    What is your intended export for this video in terms of audio as well as video compression and formats?    MP4
    I think you can only use audio if it's recorded on channel 1 or it does not recognize it.
    Thanks for the help if possible,Kevin416 873 8374

Maybe you are looking for

  • Error in PO changing

    Hi Guys, I have  a problem. I delete the Purchase order in ME22n,for the line item  & then saved it. it is showing Pop up window, that Purchase order is still containing Faulty items.when i click help, it is going for dump. Can you please help me how

  • Problem - Frame Driver Template

    I have been trying to develop Portal Forms and embedding the forms in a frame driver using Oracle Portal 3.0. I specified a particular User Interface Template but never get to see this chosen template when running. Instead the form always uses the te

  • How to see the alerts

    Hi, in OEM 9.2.0 , how to see the alerts ( or the errors indicated in alertlog) and the problems and errors if any on the databases ? Many thanks.

  • Help please HELP!!

    So i made a video and i did all the basic editing in premiere pro then i went to after effects and did some gun shots, a lot of gun shots. then i exported into a flash movie and imported it back to premiere pro to finish my edititing and there are bl

  • BI datasource

    Hi All, 0dpr_part_Task_link - This data source gives planned demand information at the level of date range. Eg: Participant 1 - Task 1 - 01/Jan/2012 to 31/Jan/2012 - 12 days       Participant 1 - task 2 - 01/Feb/2012 to 29/0Feb/2012 - 10 days When we