DAQ mean value

Hello,
I´m doing a research project in undergraduation and I´m starting to use labview to do it. I´m getting data from DAQ assistent and I need to made a mean with this data. I try to search here, in forum, but I´m not able to solve my problem. In this case (see image below), I´m working with 1000 samples, 5 number os means, and 3 number os points (the bigger for loop). My result in "Write to measurement file" is 15 rows (5 by 5 similar) with 1000 numbers in each and my result in "Write to measurement file2" is 3 rows (expected) but just with 1 number in each. I need to get 3 rows with 1000 numbers in each (after made arithmetic mean with the 5 ones).
I know that is a newbie doubt, but I have already tried a lot of suggestion, without sucess.
Sorry my bad english, I´m brazilian.
Gratz
yves
Attachments:
labview.JPG ‏115 KB

with what i understand, you want the mean of 1000 points that you are acquiring inside the for loop, which runs for 5 iterations, and you want 5 mean values for 5 iterations. To do that, all you have to do is, take the 'mean.vi' inside the same for loop where you are doing acquisition. Take the mean everytime the acquisition loop runs, connect output of mean vi to write to a 'measurement file 2' which will write i d array of 5 mean values. 
  For other things that you are asking for , you need to post your existing code for us to be able to understand what exactly you are trying.
-Nilesh
Kudos are (always) welcome for the good post. :-)

Similar Messages

  • How to calculate mean value of a matrix

    Hi... I ve one matrix of order (m*n). I need to calculate the mean value of this matrix. How to do this?
    let we consider the matrix as 4x4.(Row=Column=4) The resultant matrix i.e mean value matrix is 1x4(Row=4,Column=1). To read the row value simultaneously in order to calculte the mean value thro row.... ?  please help me out
    Example:
    Matrix A=1 2 3 4
                   5 6 7 8
                   1 3 5 7
                   2 4 6 8. 
    Mean value thro row would be:   10/4 [  (1+2+3+4)/4
                                                      26/4 [ (5+6+7+8) /4...Like this i ve to do..
    Please help me out

    Hi,
      See this attachment.....
    Thanks and regards,
    srikrishnaNF
    Attachments:
    Example_VI_BD.png ‏3 KB

  • I would like to know how i can create a bell graph with out using sub VIs, the data that i created consists in 500 readings with values of 0 to 100, i calculated the mean value and standard diviation. I hope some one can help me

    I would like to know how i can create a bell graph with out using sub VIs, the data that i created consists in 500 readings with values of 0 to 100, i calculated the mean value and standard diviation. I hope some one can help me

    Here's a quick example I threw together that generates a sort-of-bell-curve shaped data distribution, then performs the binning and plotting.
    -Kevin P.
    Message Edited by Kevin Price on 12-01-2006 02:42 PM
    Attachments:
    Binning example.vi ‏51 KB
    Binning example.png ‏12 KB

  • Creation of function module to convert the mean value to charecterformat

    hi every body
    i have one doubt regarding convertion of  meanvalue to integer value.
    first of all i took all related values to internal table but inthat internal table the value of MITTELWERT feild is mean value.inthat the feild value tobe stored is 9.9000000000000000E+01 but the actual value is 99.
    in that field i stored even a date and charecter data also .so i need to convert that format to charecter format.
    please help me out in this context
    thank you & regards
    reward points also if the answer  help ful to me .
    Message was edited by:
            vaidehi yedlapalli

    ?? Are you asking about the logic for mean value of numbers, dates and character data?
    Pls. evaluate further givin example.
    Regards,
    Clemens

  • Display mean value in chart legend

    I generated a line chart in SSDT 12 using the following query:
    SELECT FCP, NFS, TimeIndex
    FROM Controllers
    WHERE ControllerName LIKE 'Controller-A'
    Then I created a trend line using the guide
    here. In step 5 of the guide it says to set the legend text to 'Average'. How do you set it to display the mean value?
    Thanks in advance
    Adam

    Hi Adam,
    Based on my understanding, you want to display the mean value in a chart, right?
    In Reporting Services, mean value can be derived from a series on the chart. We can set calculated series formula as Mean in Calculated Series Properties. As we tested in our environment, the mean value can display on the chart after setting mean formula.
    Please refer to screenshots below:
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • Mean value of large subset of datapoints for a channel

    I have a channel with about 3000 data values and I am trying to get the mean of a sample of those values.  However, the values are not contiguous in the channel (i.e. 1-30) rather they are spread out over the entire channel (i.e. 1,3,4,6,7,8,9,20....).  It looks like when using the statistics function, it only allows text up to 255 characters for the rows to include.  I have more than that so I need a way to calculate the mean when my row text numbers length is > 255.
    Here are the rows I am trying to include in my mean calculation:
    721,730,739,748,758,766,775,784,793,795,797,820,822,823,848,850,851,876,877,879,901,906,907,929,930,932,956,961,962,982,984,986,2323,2325,2341,2350,2359,2369,2377,2387,2396,2405,
    2413,2422,2432,2440,2441,2444,2446,2447,2448,2494,2496,2497,2521,2523,2525,2549,2551,2552,2575,2577,2580,2602,2604,2607,2630,2633,2635,2656,2657,2658,2684,2686,2687,2711,2712,
    2715,2738,2739,2742,2764,2766,2767
    However, I can only include the text in red.  If I try type the full text (red+black) then I get an "Syntax for line number is wrong" error.  Is there anyway to do the mean value of all the rows shown above?

    Hello Jim!
    Unfortunately the 'RowNoStr' (the 'StatBlockCalc' second parameter) is still a short string with 255 characters. As far as I know is there no workaround. I expect that you have to loop over the channel values, wich is not verry fast. Use the 'chdx' and not the more common known 'chd' command because 'chdx' is a little bit faster.
    Matthias
    Matthias Alleweldt
    Project Engineer / Projektingenieur
    Twigeater?  

  • Calculating the mean value in a query

    Hi,
    I am trying to build a query which will give the mean amount of sold products during certain number of months. The month is a variable which is given by the user so the query should be able to calculate the mean value based on the amount of months. For example:
    Product  - Month   -  Amount
    123456  - 01.2007 -  5pcs
    123456 -  02.2007  - 2pcs
    123456 -  03.2007 -  0pcs
    123456  - 04.2007  - 2pcs
    The above data should be displayed as follows (522 => 9/3 the mean value is 3):
    Product    -     Amount
    123456      -     3pcs
    I am able to calculate the following:
    Product          -        Month                   -        Amount
    123456           -        01.2007            -            5pcs
    123456           -        02.2007             -           2pcs
    123456           -        03.2007            -            0pcs
    123456           -        04.2007                 -       2pcs
    123456                     -                                  3pcs
    the above solution is however not correct since the result of the query should be displayed in only one row. Does anyone know how this could be done?
    Thanks
    Sarah
    Message was edited by:
            SP

    SP,
    Does the user enter a single month or multiple months? Are you using any product hierarchy?
    Well, you can have the product in the rows and in the columns you can count the number of months entered by the user by using a customer exit variable. So for a product the aggregated value of the pcs will be displayed in one column for the months entered by the user. You can hide that column and the value returned by the customer exit will give the no. of months. So you can get the mean value by diving the aggregated value of the pcs by the no of months.
    This should solve your issue.
    To make it more clear
    Rows:
    Product
    Columns:
    New selection:
    key figure pcs
    month infoobject restricted by teh user entry variable.
    New formula
    create a new formula variable and use it in the formula
    This formula variable should be of type user exit. In the
    user exit code you will be reading the variable for month(which the user enters) and count the no of months. So this variable will output the no of months. Hide this formula.
    New formula
    Divide column1 by column2.
    It will give you the desired output.

  • OAK3 error message - Specifications for the mean value methods incorrectly

    Hello experts,
    After golive of sap ECC system of our client, when the auditors check the consistency of depreciaion areas in transaction OAK3, the error message is appearing under the depreciation area 01 as "Specifications for the mean value methods incorrectly defined". Can anybody throw some light on how to encounter this error message?
    Thanks

    Hi,
    1) Usually, the reason why the error occurs is that you have no area defined in the chart of depreciation.
    2) Also please check the attached note 847289.     
    3) Please also run OIB5 and check if capitalization version is assigned to depreciation area 01                                            
    If you use capitalization versions it is necessary to have a depreciation area with area type 07 (Cost-acc. valuation) which     
    get the whole amounts.                                                                               
    The depreciation area which takes the values to 100 % must have the following features:                                                 
    => The currency of the depreciation area should have the currency of the controlling area                                          
    => The depreciation area should have the depreciation area type "07 Cost-acc. valuation"                                         
    => The area should not have a capitalization version       
    regards Bernhard

  • X axis histogram mean value

    Does anyone know how to make the histogram plot use the center value of the bin range as the x value (rather than "bin #")?  Thks. 

    cancel that.... I see

  • Need to use the mean.vi to average values every ten minutes

    Hi, I am working on a project and am very new to labview. I have one day to get my experiment running and haven't had much success. I've attached my VI so far. The main problem I have is that the experiment is two weeks long. I have 4 sets for differential voltage inputs which I am filtering, passing through a formula, and passing into a mean.vi. This is all within a while loop. I want to be able to write the mean values over the period of 10 minutes so I do not have a million data points after two weeks. The problem I'm having is that I do not know how record the value from the mean.vi then reset the data in the while loop and do it again continuously for two weeks. I hope this makes some sense to someone. I'd appreciate any help I can get and thank you in advance.
    Attachments:
    Experiment Controls.vi ‏351 KB

    Attached is an example of what i think you're trying to do. The way I am showing you is not the best way to do it, but I think it will be the easiest for you to understand. I say not the best way because it's not very memory efficient. You are building arrays and holding all that data in memory for 10 minutes, then averaging it when you write to the file. If you have very high data rates you will not want to do it this way. I think it should at least give you an idea to get over the hump you're stuck on (how to restart the averaging after the file is written). Everyone is telling you to use less express VIs...they are right. However, I used one in my example I'm giving to you . This is the only express VI I use: the elapsed timer VI. It handles counting down and returns a boolean when the timer expires, and auto-resets and starts counting down again. This express VI isn't a "bad" one because it isn't open and closing resources like many of the other express VIs do (DAQ assistant, file writing express VIs etc).
    Anyways, hopefully this helps.
    Edit: woops, i forgot to change my constant from 5 seconds back to 600 seconds to represent 10 minutes. 
    CLA, LabVIEW Versions 2010-2013
    Attachments:
    averaging.png ‏61 KB

  • Mean of R color values

    Hi there,
     I am using the read jpg sub vi, I take the image data and after I decimate the array, three vetors each of each corresponding  to R ,G  and B are created.  I calculate the mean value of R in the way shown in my attached program and I find two different values. Can one one explain why that happens?
    Thank you
    Solved!
    Go to Solution.
    Attachments:
    test.vi ‏11 KB

    It would be better if you put real data into your input array, make that data the default values for the array, then save the file and upload.
    How many elements are in your array?
    If you have only 2 elements, then the top mean calculates the mean of those 2.  Your formula node creates a 256 element array that is filled with zeroes.  So only as many elements in your first array will get placed into the new array.  All remaining elements will remain zero, but they will factor into the calculation of the mean.

  • Noise in thermocouple measurement using PCI-6024E DAQ card

    I am using a PCI-6024E DAQ card for thermocouple(TC) measurement. The
    TC is installed in the mold cavity of an injection molding (IM)
    machine. The leads from the TC are connected to the DAQ card using a
    CB-68LP board. I made a  temperature mesurment task in LabView 7.0
    with the two leads from TC as differential inputs and used CJC value of
    25 deg C.
    The problem is that when the IM machine is OFF, I get a reasonable temp
    reading with some slight noise but as soon as I turn ON the IM machine,
    the temp readings go wild with a lot of variations around the mean
    value. The temp values also don't go to higher values when the TC is in
    contact with the molten plastic in the IM machine.
    Do I need to ground something here or put a resistor in the I/O board?
    BTW the IM machine is grounded and the TC give correct temp values when
    connected to a hand-held temp reader.
    Any help will be highly appreciated.

    Hello  Aftab,
    Looks like you need to use bias resistors to reduce the noise. Check out the following tutorial for more information about how to use bias resistors.

  • Re: [iPlanet-JATO] Re: Retrieving all Values from a Tiled View

    Todd,
    Let me try to explain you this time. I have a text field in a TiledViewBean.
    When I display the page, the text field
    html tag is created with the name="PageDetail.rDetail[0].tbFieldName" say
    five times/rows with same name.
    The html tags look like this.
    <input type=text name="PageDetail.rDetail[0].tbFieldName" value=""
    maxlength=9 size=13>
    <input type=text name="PageDetail.rDetail[0].tbFieldName" value=""
    maxlength=9 size=13>
    <input type=text name="PageDetail.rDetail[0].tbFieldName" value=""
    maxlength=9 size=13>
    When the form is submitted, I want to get the text field values using the
    method getTbFieldName().getValues() which
    returns an array object[]. This is in case where my TiledViewBean is not
    bound and it is working fine.
    Now in case when my TiledView is bound to a model, it creates the html tags
    as follows.
    <input type=text name="PageDetail.rDetail[0].tbFieldName" value=""
    maxlength=9 size=13>
    <input type=text name="PageDetail.rDetail[1].tbFieldName" value=""
    maxlength=9 size=13>
    <input type=text name="PageDetail.rDetail[2].tbFieldName" value=""
    maxlength=9 size=13>
    Now when I say getTbFieldName().getValues() it returns only the first
    element values in the object[] and the rest of the
    values are null.
    May be we need to create a utility method do get these values from
    requestContext.
    raju.
    ----- Original Message -----
    From: Todd Fast <toddwork@c...>
    Sent: Saturday, July 07, 2001 3:52 AM
    Subject: Re: [iPlanet-JATO] Re: Retrieving all Values from a Tiled View
    Raju.--
    I wanted to know how the getValues() method works the reason being,
    when the tiled view is NOT bound to a model, it populates all the
    fields with the same name as some thing likeI'm afraid I don't understand your point--can you please clarify? Do you
    mean "value" instead of "name"?
    What are you trying to do? What behavior are you expecting but notseeing?
    >
    Without further clarification, I can say that the setValues() methodsNEVER
    populates data on multiple rows of a (dataset) model, nor does it affect
    multiple fields on the same row. Perhaps what you are seeing is theeffect
    of default values. Model that derive from DefaulModel have the ability to
    carry forward the values set on the first row to other rows in lieu ofdata
    in those other rows. This behavior is for pure convenience and can be
    turned off, and it is turned off for the SQL-based models.
    Todd
    [email protected]

    Hi,
    I wanted to know how the getValues() method works the reason being,
    when the tiled view is NOT bound to a model, it populates all the
    fields with the same name as some thing like
    PageDetail.rDetail[0].tbFieldValue
    PageDetail.rDetail[0].tbFieldValue
    in which case, the getValues() method works fine.
    But in case where the tiled view is bound to a model, it populates
    with different field names such as,
    PageDetail.rDetail[0].tbFieldValue
    PageDetail.rDetail[1].tbFieldValue
    in this case, the getValues() doesn't work. Any soultion to this?
    We are using Moko 1.1.1.
    thanks in advance,
    raju.
    --- In iPlanet-JATO@y..., "Todd Fast" <toddwork@c...> wrote:
    Does anyone know of is there a single method to get all values of a
    display
    field in a tiled view without having to iterate through all the
    values ie
    resetTileIndex() / nextTile() approach.
    ie Something that returns an Object[] or Vector just like ND returned a
    CspVector. I tried using the getValues() methods but that allways returns
    a
    single element array containing the first element.
    (I think now, that method is used for multi selecteable ListBoxes)Actually, no. We can add this in the next patch, but for now, I'd recommend
    creating a simple utility method to do the iteration on an arbitrary model
    and build the list for you.
    Todd

  • Field value is not getting populated in Display mode

    Hello All,
    I have created a custom drop down field in the DEAL component through EEWB. From the GUI, I could able to select a value form the drop down list field and save it.
    In DISPLAY mode,  the value is not showing but when I change the screen to EDIT mode then the value is getting populated.
    Please advise.
    Thanks in advance.

    When debugging the set_property method I see the following code:
    If ME->IS_CHANGEABLE( ) = ABAP_TRUE and                  "CLASS=CL_CRM_BOL_ENTITY
               LV_PROPS_OBJ->GET_PROPERTY_BY_IDX( LV_IDX ) ne IF_GENIL_OBJ_ATTR_PROPERTIES=>READ_ONLY
    *     change value
          <VALUE> = IV_VALUE.
    In display mode none of these conditions are fulfilled, meaning value is not set.
    So, is there a way of avoiding this behavior?

  • About settlement, asset master data's amount column value

    Dear Experts,
    I  build an aseet master data :   A (the amount column's value is 0 in asset master data)
    Then, I build an asset purchase order  assign to A , after I  do GR,  A's amount column's value change to 1.
    But if as follows,
    I  build two asset master data :  B and C ,
    B's asset catalog is 167200(prepay for equipment) , c's asset catalog is 153100 (normal fixed asset)
    Then , I build an asset purchase order assign to B, then do GR , B has amount 1, and then ,
    I  do t-code: AIAB , settlement B to C , I found B's amount column's value still show 1 , and C is still 0 ,
    but the asset value certainly has transfer  from B to C......
    why B's amount column's value doesn't be changed?
    I can't figured out.
    Thanks a lot in advance.
    Best Regards,
    Yacoa
    Edited by: Yacoa Chen on Mar 15, 2011 9:14 AM

    Hi
    If B is still showing value - It means values are not settled
    After AIAB - You need to run AIBU to settle the values.. Did you run AIBU??
    Br, Ajay M

Maybe you are looking for