Statistics express vi with a table input

I try to get statistics for a table of elements, with statistics express vi. I used the waveform of the construction, in order to connect the table as input for the express vi, but this only uses the last value of the array instead of the sum of all the values in the table.

I use simple data to do the math, I know the before value of the hand.

I use the values 2 and 4 and I try to get the average, but I get a wrong value.

Can someone please?

Thanks in advance.


Tags: NI Software

Similar Questions

  • execution of stored procedure in sql developer/sql more with a table setting?

    Hello

    I create a package with a procedure which has a cursor ref as output and a type as an input parameter.  Here is my definition of the package

    PACKAGE 
    -------
    CREATE OR REPLACE PACKAGE TEST
    As
      TYPE RefCursorType IS REF CURSOR;
      type intTableType is table of varchar2(50) index by binary_integer;
      
      PROCEDURE GETDATA (
              P_RECORDS OUT RefCursorType,           
               YEAR_LIST IN intTableType
      );  
    END;
    
    
    PACKAGE BODY
    -----------------------
    
    SET DEFINE OFF
    CREATE OR REPLACE PACKAGE BODY TEST
    AS 
    PROCEDURE GETDATA
    (
      P_RECORDS OUT RefCursorType,  
      YEAR_LIST IN intTableType  
    )
    AS 
    iYearList  IDTableType;
    BEGIN 
      --GET ARRAY COUNT
      IYEARLIST := IDTABLETYPE();
      IYEARLIST.EXTEND(YEAR_LIST.COUNT);
      
      --LOOP THROUGH LISTS AND POPULATE ARRAY
      FOR I IN YEAR_LIST.FIRST .. YEAR_LIST.LAST
      LOOP
      IYEARLIST(I) := IDTYPE(TO_CHAR(YEAR_LIST(I)));
      END LOOP;
      
       OPEN P_RECORDS FOR 
       SELECT CITHTML AS FORMATTED
        FROM dbTest.FORMATTED_HTML
      WHERE YEAR IN (SELECT * FROM TABLE(IYEARLIST))
      ;
      END GETDATA ;
    END TEST ;
    /
    
    

    I want to perform this procedure from the sql or sql developer more to see if it works properly.   The year field dbTest.FORMATTED_HTML is defined as varchar2 (20 bytes).  He has many years as well as text.

    I've used this in the past with simple stored procedures, but not those with a table setting

    var r refcursor;

    exec GETOLDDATA(:r,40);

    print r;

    How can I modify this to allow him to run my stored procedure?

    Thank you

    Just declare SQL, not type of PL/SQL:

    CREATE OR REPLACE

    TYPE Str50TblType

    AS THE TABLE OF THE VARCHAR2 (50)

    /

    CREATE OR REPLACE

    THE TEST PACKAGE

    IS

    GETDATA PROCEDURE)

    P_RECORDS ON SYS_REFCURSOR,

    YEAR_LIST IN Str50TblType

    );

    END;

    /

    CREATE OR REPLACE

    TEST OF PACKAGE BODY

    IS

    GETDATA PROCEDURE)

    P_RECORDS ON SYS_REFCURSOR,

    YEAR_LIST IN Str50TblType

    )

    IS

    BEGIN

    OPEN P_RECORDS

    FOR

    SELECT CITHTML AS FORMATTED

    OF dbTest.FORMATTED_HTML

    WHERE YEAR IN)

    SELECT *.

    TABLE (YEAR_LIST)

    );

    GETDATA END;

    END TEST;

    /

    SY.

  • a function that returns the type with a table joint!

    Good day to all,
    I have a function that returns a type.

    so I select it as:
    Select * from table (function (param1, param2))

    now I want to combine this with a table so that the settings for the service we get from the join table. Is this possible? And how?
    I tried different options without success.

    something like:
    Select *.
    table table (function (b.column1, b.columnb) x), tablea b
    where x.a = b.col

    Is this possible?

    Thanks in advance?

    user564819 wrote:

    something like:
    Select *.
    table table (function (b.column1, b.columnb) x), tablea b
    where x.a = b.col

    Is this possible?

    Somehow...

    SQL> create or replace type TIntegers is table of integer;
      2  /
    
    Type created.
    
    SQL>
    SQL> --// our sample pipeline simply spews 2 numbers for eevry number input - simple
    SQL> --// to use for the testcase below
    SQL> create or replace function FooPipe( n number ) return TIntegers pipelined is
      2  begin
      3          pipe row( trunc(n) );
      4          pipe row( trunc(n)*-1 );
      5          return;
      6  end;
      7  /
    
    Function created.
    
    SQL>
    SQL> with dataset( n ) as(
      2          --// ignore this part as it only builts a base table
      3          --// for us to use to select values for input to
      4          --// to the pipeline - in "real world" use this table
      5          --// will already exist
      6          select
      7                  level
      8          from    dual
      9          connect by level <= 10
     10  ),
     11  pipe_line( n, array ) as(
     12          --// we run the pipeline as a nested table column
     13          --// in the SQL projection - the CAST is important
     14          --// in order to establish the nested table type
     15          select
     16                  d.n,
     17                  cast(
     18                          FooPipe(d.n) as TIntegers
     19                  )
     20          from    dataset d
     21  )
     22  --// we now use a standard query to unnest the nested table column
     23  select
     24          p.n,
     25          pipe_val.*
     26  from       pipe_line p, TABLE(p.array)  pipe_val
     27  /
    
             N COLUMN_VALUE
    ---------- ------------
             1            1
             1           -1
             2            2
             2           -2
             3            3
             3           -3
             4            4
             4           -4
             5            5
             5           -5
             6            6
             6           -6
             7            7
             7           -7
             8            8
             8           -8
             9            9
             9           -9
            10           10
            10          -10
    
    20 rows selected.
    
    SQL>
    

    Not sure I like it. What is the real problem that this method (driving a pipeline with input of a base table rows) is supposed to address? There may be a simpler and more elegant approach...

  • Problem with a table

    Hello

    Sorry for my bad English.

    I have a problem with a table. I made a table with a script, but when I add a new line, this script will not work in the new lines. I know that I have something wrong, but I do not know the solution. Anyboy help me? You can see the file in http://www.frmgm.jazztel.es/duda.pdf. I am new in programming.

    I thank you very much.

    OK, now I understand... each row that you add to the table changes the somExpression for objects (so that they are unique). The repeating subform Gets a case number, but the rest of the phrase remains the same. If you do not include a number of occurrence, then the 1st appearance is supposed to... that is why only the 1st row is affected. You can build expressions so that you can derive the correct number of occurrence. The click event code would look like this:

    If (xfa.resolveNode ("Tabla1.Fila1 [" + this.parent.index + "]").) Casillaverificacion1.RawValue == '0') {}
    xfa.resolveNode ("Tabla1.Fila1 [" + this.parent.index + "]"). Casillaverificacion2.access = "readOnly";
    xfa.resolveNode ("Tabla1.Fila1 [" + this.parent.index + "]"). Casillaverificacion3.access = "readOnly";
    xfa.resolveNode ("Tabla1.Fila1 [" + this.parent.index + "]"). Casillaverificacion4.access = "readOnly";
    xfa.resolveNode ("Tabla1.Fila1 [" + this.parent.index + "]"). Boton1.presence = 'hidden ';
    } else {}
    xfa.resolveNode ("Tabla1.Fila1 [" + this.parent.index + "]"). Boton1.presence = "visible";
    xfa.resolveNode ("Tabla1.Fila1 [" + this.parent.index + "]"). Casillaverificacion1.access = "readOnly";
    xfa.resolveNode ("Tabla1.Fila1 [" + this.parent.index + "]"). Casillaverificacion2.access = "open";
    xfa.resolveNode ("Tabla1.Fila1 [" + this.parent.index + "]"). Casillaverificacion3.access = "readOnly";
    xfa.resolveNode ("Tabla1.Fila1 [" + this.parent.index + "]"). Casillaverificacion4.access = "readOnly";
    }

    You can see that the xfa.resolveNode takes a string that represents the object we want to use. The string is then built and the number of occurrence of the Fila1 subform is derived by obtaining the index number of the subform parent of the object that we clicked (this.parent.index). Occurane numbers are wrapped in [] brackets.  The rest has not changed. You will need to update your code to use this technique.

    Hope that helps

    Paul

  • FDQM write back to the EBS with other tables as GL

    Hello

    Please, I need a confirmation on FDQM: if it is possible to rewrite data from Hyperion Planning (Essbase) in EBS with other tables that GL using standard features FDQM (tables of EBS EBS sourcing purchases tables etc.).
    FDQM ERPI-write is limited to the EBS GL.

    Or write in EBS, I use ODI.

    I thank you and appreciate your input!
    Robert

    Hello

    Certainly, you can write additional scripts to do the job you are looking for. Unfortunately the only "out of the box solution" is mentioned above.

    Thank you

  • Download windows appears in the Firefox browser with barcode scanner input.

    When in a text field, I have entry with barcode scanner, a download window appears in the Firefox browser. Although a law of bars as a keyboard input device, it does not present the download window. I blocked the download option in the firefox browser (Tools-> Options-> general-> download Unchecked options) nothing happens, even I disable java script. To download windows appears in the Firefox browser with barcode scanner input.

    IE (any version) is not displayed it. What can I do? Can someone help me. I'm developing an ERP system, which is dependent on browser and I love Firefox!

    Have you started Mozilla After unchecking the window downloads to show when downloading a file?
    Could you provide your photo under the general tab of the Tools-> OptionsMozilla?

    Thank you
    Borian

  • When I print a table (multiple pages) the text box under the table seems to be moving under the table and prints with the table of this overlap. My only solution is to push the text box further down the page before printing... Any advice?

    Im having problems shaped a text box so that my table does not print right on top of it. I want it inside of my table (it's 'tems and conditions' budget)

    Any advice would be great.

    I face the same problem as well. Would like to know if there is a better way to get the text box to move with the table instead of the effect that overlap. Have to manually adjust the layout, whenever I want to get a reasonable print of a document (or export it to PDF) seems counterintuitive, especially when it causes the document seem ill-disposed on screen.

    I am running version 3.6.2 of the numbers in the case where that matters.

  • How do VI with timestamp table entry

    I'm doing a sub - VI for a program and I need to have a double array, boolean and an array of time as an entry stamp. I can't find a way to mark the entrance with a table timestamp however indicator. My only choice seems to be double and Sub. Is it possible that I can do this?

    You have a block of empty array on your front panel and then move there a timestamp control.

  • Time dilation of a curve with interpolation table 1 d?

    Greetings,

    I'm trying to run a time dilation of a curve I used to work with the table 1 d of function interpolate VI. Basically, I have to perform the expansion on each segment, that is why each segment contains 100 points, where there are currently 60.

    I am currently working with two files (the two are broken) to compare because I'm not sure how to use the table 1 d interpolating VI, and what I have to enter for the fractional index. I know that the output of the table in the first for loop should go in the 1 d array interpolated somehow.

    I'm stuck!

    Thank you!

    TheLT

    I'm good I thought it

    Here's how to do it for later use.

    Code attached.

    TheLT

  • CVI suggested help update on 'programming with the Table controls.

    Hello

    May I suggest adding a sentence to the chapter 'Programming with the Table controls', 'Creation and deletion of cells' section help of CVI.

    After the sentence "use the following functions to control the number of rows in a table control...". "I would like to add a suspicion that the number of lines is also affected by (programmatically) adjustment of the height of the table.

    Now that I've discovered, it's obvious ;-)

    Hi Wolfgang,.

    I think you might be misunderstanding this sentence in aid. It does not refer to the size of the table, in regard to the number of lines go in the table. It is in fact the number of real lines exist in the table. And the total number of rows in the table is absolutely not affected by the height of the table.

    Luis

  • How can I do a summation of a table summarizing several points once, leaving me with another table?

    Hello, I tried to find a way to do the summation of a table, the sum of 19 points at a time, leaving me with another table.  I feel like this has a simple solution, but I'm not sure how.

    Thank you.

    A time loop that contains the subset of the table can do.

    Lynn

  • Synchronization of two inputs frequency meter with several analog inputs

    Hi all

    I'm relatively new to LabVIEW and I'm trying to collect data from multiple sources with calendar sync on the acquisition, but I can't understand. My problem is that I have two inputs frequency meter, an optical tachometer reading one pulse per revolution and a max flow meter machines with a 12000 k coefficient. I can't find a way to synchronize the calendar with my multiple analog inputs. I tried to first get the speedometer to synchronize with the analog inputs following the example linked here. (https://decibel.ni.com/content/docs/DOC-10785) So far every time I run it I get an error on the DAQmx read timeout or an error "several sample clock pulses have been detected" (see image).  It seems if I slow the way to down to say 10 hz and make sampling rate ensure that the tachometer signal is more than 800-1000 rpm (13-17 Hz) before starting the VI then the program will run without error until the ROTATION speed is below this threshold, then the "sample Multiple clock pulses" error occurs.  The code is attached below.

    Does anyone know of a better way to synchronize the entries of frequency of the counter with analog inputs?  I would like to have a VI that can display 0 RPM (and possibly 0 flow as well, but I think I need to understand the timing of a meter before I have add another, because it seems that I can't have two counters to the same task). Any help on this would be greatly appreciated.

    LabVIEW version 13.0

    Chassis cDAQ-9178 with NI 9401 for both counter inputs and NI 9205 for the analog inputs.

    Thank you!

    Richard

    I know the error requires to restart the task at least (this particular error puts the material in a State that cannot be recovered from during execution of the task - I've been down this road before) but I'm surprised that you would have to delete and re-create the task altogether.  And then I had to do this to workaround other questions in the past.  It is awkward and should be considered a bug, if this is indeed the behavior.

    Honestly, regardless of this bug, the way the material dealing with the situation of several sample clock edges makes measures of sampling frequency clocked essentially unusable for purposes of synchronization (in my opinion anyway) If you encounter a more slow than your sample clock rate.  You are supposed to be "synchronization" of the measure, but it really no longer applies if you have to restart the task over and over again (if you must delete it or not).

    Workarounds can get kind of creation (which isn't really a good thing).  For example, you can configure a measure of implicit frequency to keep a buffer of frequencies and use a leader board task (source is the frequency signal, sample clock is the sample clock HAVE) to establish a correlation between the index of your buffer of frequency for singing HAVE sample clock.

    Best regards

  • Is it possible to update a chart "XY" whenever a point is generated as with a "table"?

    Is it possible to update a chart "XY" whenever a point is generated as with a "table"?

    In the attachment, the XY graph, 'OUT' is updated once the loop is completed. I would like to be updated as data is generated inside the loop. Is this possible?

    Thank you.

    To make it work, you need to do the full table available inside the loop.  This means that you cannot use a tunnel of indexing at the exit to build the array. Instead, you must use a shift register and build the table inside the loop.

    This will do what you want.  It would have been easier to show you if you had posted your code.

  • Outlook Express 6 with Windows XP updated with Service Pak 3.

    I have Outlook Express 6 with Windows XP updated with Service Pak 3. I can receive emails but cannot open them, reply or forward them. This message is received for all the above "there was an error opening this page. An error has occurred. "

    Also when I try to open my address book this message appears "unable to open the address book. The AddressBook is may not be installed correctly. »

    Is Office or Outlook is also installed on this machine? If Yes, see the reference by PA Bear in this thread.
    http://social.answers.Microsoft.com/forums/en-us/xpnetwork/thread/a8c8cf17-d792-481e-BCCA-13b03852a995

    If Outlook is not installed, see these links.

    Courtesy of Michael Santovec:
    http://pages.prodigy.NET/michael_santovec/techhelp.htm

    All of you who have the same cause.  Something is screwed up with your address book.

    It could be several specific problems, which include:
    -corrupted WAB file
    -damaged or incompatible DLL files for the addressbook
    -have OE set to use the Outlook98 / 2000 + contacts instead of the WAB
    folder and there is something wrong at the end of Outlook

    For more details, take a look at:

    Error message: the Message could not be sent. Some invalid recipients
    (Outlook Express: there was an error opening this message)
    (The address book failed to load. OE is configured incorrectly)
    (Corrupted or incompatible WAB32. DLL file)
    http://support.Microsoft.com/?kbid=239135
    OLEXP: Error Message: failed to load address book
    (There was an error opening this message)
    http://support.Microsoft.com/?kbid=269777
    http://support.Microsoft.com/?kbid=310873
    OLEXP: MSIMN has caused an IPF in Module Wab32.dll
    http://support.Microsoft.com/?kbid=247706
    Error message: failed to load address book, Outlook Express is...
    http://support.Microsoft.com/?kbid=191946
    Error message: could not open address book, a component is missing
    http://support.Microsoft.com/?kbid=192321

    The address book Windows (WAB)
    http://www.insideoe.com/files/WAB.htm

    To share Contacts between Outlook and Outlook Express
    http://www.slipstick.com/contacts/oeshare.htm

  • Using Outlook Express 6 with multiple identities.

    Had the hard drive problems.  He has been replaced by Dell warranty.  I have set up outlook express 6 with multiple identities.  I can't go from one to the other identity and return to the original, without having to restart my computer.  Dell has said that some things need to be changed to make it work properly.  They tell me what they were without a heavy load.  I used to use this feature with my old hard drive.  Help me please if you can...  Thanks in advance.

    Hi El KG,

    1. do you receive error messages or error codes?

    You can read the following article and check if it helps:

    OLEXP: "identity switch canceled" when starting Outlook Express

    http://support.Microsoft.com/kb/224463

    Also check the following links:

    OLEXP: How to create and use identities in Outlook Express 5.x and 6.0

    http://support.Microsoft.com/kb/209169

    http://www.Microsoft.com/Windows/IE/community/columns/identity.mspx

    http://social.answers.Microsoft.com/forums/en-us/outlookacct/thread/b53f3c5a-3733-4510-91dB-a23dc6224fc5

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

Maybe you are looking for