How do I plot average sensor values against a constant array (length positions)?

I have 7 microphones from which I'm taking the RMS value.  They are physically in a line and I'd like to plot their values vs. their positions.  How do I do think.  I'm assuming I'll need to use the XY plot, but I'm not sure how to turn 7 signals into a single array and how to create an array of constants for the positions.
Solved!
Go to Solution.

I don't know if I could catch your point, but I tried to buid a vi to plot 7 mic inputs as each mic was related to an specific X position. In the next while cycle, new mic values will be plotted offseted by the lenght of the arangement.
Well, I hope this helps you.
Leo
Attachments:
Mic_Array_01.vi ‏35 KB

Similar Messages

  • Keybord trick to insert quickly a value into a constant array

    Hi everybody,
    I want just to know if there is a keybaord trick which allows yuo to pass quickly from an element to the next one (or to new one) while I'm typing the values into a constant array, you know if is there?
    What I mean is a keybord key as the TAB key that quickly allow you to pass from a cell to the next one into the grid control.
    Thank you in advance,
    Regards.
    Ricky
    Italian Developer engineer
    www.www.selt-sistemi.com
    Solved!
    Go to Solution.

    Darin.K wrote:
    [...] unzip the files and put them in the directory
    [LabVIEW ####]\resource\dialog\QuickDrop\plugins
    Create some cells in Excel (or other similar program), select and copy to the clipboard.  (Any tab delimited data will work).  On the FP Ctrl-Space Ctrl-e creates a control with the data in numeric form (simple check to decide DBL or I32).  Ctrl-Space Ctrl-E (shift+e) creates a string control.  Similar commands for the BD to create array constants (numbers or string).  Single rows or columns become 1D arrays, otherwise you get 2D array controls/constants.  Change the letter by renaming e.vi if you'd like.  I chose e for Excel since X was taken along with s for spreadsheet and a for array.
    Jim
    You're entirely bonkers. But I'll tell you a secret. All the best people are. ~ Alice

  • How do I find the closest value to a constant in an array

    I have an array of floating numbers and I want to find a value in that array that is closest to a floating constant.     For example if I have the array 5.9, 2.8, 3.7, 5.8, 6.9, and if I have the constant 5.4, how would I find the closest value to 5.4 in the array, which in this case would be 5.8. The only approach I can think of is to subtract each value in the array from 5.8 and find the minimum value of an array which would be created from the differences. Is there a better approach?
    Thank you.

    Just be sure to take the absolute value of the difference and your proposed method is fine.

  • How can I get all the values of a String array profile property using javascript?

    I am trying to build functionality into our site that records all products added to the basket against a user's profile.
    I have so far been able to store the product codes against the profile as a property using Ajax:
           var dataString = ":formid=addProduct&:formstart=/apps/thread/templates/page_product/jcr:content/par/produc t/formstart&:redirect=/content/thread/en/user/cart.html&productId=151515:profile="+profile ;
                         $.ajax({ 
                type: "POST", 
                url: "/content/women/evening/dresses/l-k-bennett-davinadress.html", 
                data: dataString, 
                success: function(data) { 
    In this example I have hardcoded a product ID of 151515.
    In order to save the property as a multi string field you simply replace &productId=151515 with &productId=151515&productId=131313&productId=141414 or as many extra values as you want to build into that string. This stores a productId property against a user profile.
    The issue comes from calling that data back. Using var value = CQ_Analytics.ProfileDataMgr.getProperty("productId") I can get the first value of this array (or the single value if only one is stored).
    However there does not seem to be a way to get any of the other stored values in the array using getProperty. Does anyone know how I can achieve this?

    Hi,
    Don't think that's possible. Even if it were, you wouldn't be able to use/display BOOLEAN type in SQL.
    If you just aim to see what they are, you could do something like this
    select text
      from all_source
    where owner = 'SYS'
       and name = 'DBMS_DB_VERSION'
       and type = 'PACKAGE';Or even
    select dbms_metadata.get_ddl('PACKAGE', 'DBMS_DB_VERSION', 'SYS') from dual;My version is:
    SQL> select * from v$version where rownum = 1;
    BANNER                                                         
    Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
    1 row selectedIn 11g you also have [PL/SCOPE|http://download.oracle.com/docs/cd/E11882_01/appdev.112/e10471/adfns_plscope.htm#ADFNS02203] which might help you even more.
    Regards
    Peter

  • PO Order value against Contract

    Hi,
    I am loading data from 2lis_02_hdr, 2lis_02_itm, 2lis_02_scl datasources in to cusotmized cube.
    In the ITM datasource we have fields EBELN(PO Number), KONNR(Agreement number), and we have a filed NETWR(Net Order value) against the PO number.
    Here requirement is they want report which contain Target value(KTWRT), Order Value(NETWR) against Agreement no(KONNR).
    In the customized cube I consider Agreement and Agreement Item fileds as per requirment
    I have created query with the following navigations:
    I restricted PO number with Doc type=WK (for Agrement number)
    selcted PO number in Rows
    selected Target value and Order value in columns.
    In Query Output it is not showing Order value against the Agreement number,
    As we know One Agrement number can have more than One PO's but in datasource level he maintains Order value against PO number.
    So How will I get the Order value against Aggrement number..what calculations are required at what level..if routines required let me know the code in brief
    Thanks in Advance
    I will assign points for each reply..please help out this problem immediately..

    hi,
    Wht exactly do you need??
    yes, once you use del. comp. indicator and then you post the doc. later, the qty remains same it doesn't get updated bcoz by default system updates it in PO History...
    Why do you want same with GR?? Why you wanna keep GR histories?? it'll increase complications and will create problem while invoicing and that the reason sap has not provided it...
    Regards
    Priyanka.P

  • How to assigned array index position to database field

    Here is the sample data of my report.
    Run#     Note1     Note2       Note1 ArrayIndex      Note2 ArrayIndex
    101        CR         Work               1                              2
    102        Work      ER                  2                              3
    103        ER         Test                3                               4
    104        ER         CR                  3                              1
    104       Work                             2                           
    Page Footer:    1. CR       2. Work     3.ER       4.Test
    I have to load distinct values of note1 and note2 in to array and assigned the array index of that note1 and note2 values and on the page footer i have to print distinct note1 and note2. would like to see at the page footer like above.  I allready figer out how to load the distinct note1 and note2 values in array but i am not able to print the Not1Arrayindex and Note2Arrayindex value in the report. I am not sure how to print out the arrayindex values based on the array value.
    Thanks for your help.

    Hi Shweta,
    Thanks for your help. I already take a look that thread but still itu2019s not clear.
    I have to assigned the array index value like 1,2,3,4,5 and at the page footer
    I have to load the N1 and N2 database value in to one array and then show then array index value next to it and at the page footer I have to show corresponding array index with index value.
    Run# , N1  ,               N2             ,        Ind          ,          Ind
    101 ,       CR      ,              Wk               ,              1           ,                 2
    102 ,      Wk    ,                ER                ,              2           ,                 3
    103 ,       ER      ,              Tst                 ,            3            ,                4
    104 ,       ER      ,               CR                ,            3            ,                1
    Page Footer: 1. CR       2. Wk   3.ER        4.Tst
    Thanks for help.
    Regards,
    Shirin

  • With a contract number, how to know the total PO release value against it?

    Usually one contract corresponds to multiple PO records, now we know the contract number, then how to know the total PO release value against this contract.  In other word, we would like to know the total release value of all the POs with the same contract number.  To just input the contract number in EKPO table? but then look for which field in this table to add these PO release values up?
    We will give you reward points!
    Thanks!

    hi Mohammad,
    By following your instruction, input the contract number 4800000112 into Document number field, then hit Enter, get the following (only copy two records here for example), but kind of a mess.  Could you let us know which one is the PO release value for this contract?
    Contract   Type Vendor     Name                                 PGp Agmt. date
      Item  Material           Short text                               Mat. group
      D I A Plnt SLoc                 Targ.qty. Un       Net price  Curr.   per Un
    4800000112 WK   2000012012 GULF INTERSTATE FIELD SERVICES       QBH 06/20/2006
    Agreement start06/20/2006 Agreement end 12/31/2007
    Tgt. val.        1,000,000.00  USD   Open          1,000,000.00 USD   100.00 %
      00001                    Inspection Svcs, Construction            R3VNI
      L   U                                  0  UL            0.00  USD       1 EA
      00002                    Chief Inspector                          R3VNI
      L   U                                  0  DAY         390.00  USD       1 DAY

  • I'm doing a scan around a line by sampling data 360 degrees for every value of z(z is the position on the line). So, that mean I have a double for-loop where I collect the data. The problem comes when I try to plot the data. How should I do?

    I'm doing a scan around a line by sampling data 360 degrees for every value of z(z is the position on the line). So, that mean I have a double for-loop where I collect the data. The problem comes when I try to plot the data. How should I do?

    Jonas,
    I think what you want is a 3D plot of a cylinder. I have attached an example using a parametric 3D plot.
    You will probably want to duplicate the points for the first theta value to close the cylinder. I'm not sure what properties of the graph can be manipulated to make it easier to see.
    Bruce
    Bruce Ammons
    Ammons Engineering
    Attachments:
    Cylinder_Plot_3D.vi ‏76 KB

  • How will i get Netorder value against contract

    Hi,
    I have loaded 2lis_02_hdr, itm, scl datasources in to customized cube which contains Purchasing document(EBELN), Item(EBELP), Doctype(BSART), Contract(KONNR), Item(KTPNR), Netordervalue(NETWR)
    Here my requirment is I want to cummulate Netordervalue against Contract no.
    In query level if I selected Purchasing doc with doctype=WK(it means it is value Contract), it is not showing any Ordervalue against Contract.
    How will acheive this to get Cumulative order value against Contract.
    Please share your suggestions to acheive this requirement.
    For clarifications please revert back.
    Thanks in Advance
       sudhir.

    Hi,
    For the above requirment I have coded a program in Endroutine but it is not populating cummulative Order value against Contract.
    DATA:
          WA_ty_t_TG_1        TYPE  tys_TG_1.
    data: netsum type char15.
    types:begin of ty_net,
        netsum type /BI0/OINET_PO_VAL,
        V_EBELN TYPE /BI0/OIOI_EBELN,
        end of ty_net.
        data:t_net type standard table of ty_net .
        data:wa_net type ty_net.
    SORT RESULT_PACKAGE BY CONTRACT.
    <b>loop at RESULT_PACKAGE INTO WA_ty_t_TG_1.</b>
          WA_NET-V_EBELN = <RESULT_FIELDS>-CONTRACT.
          AT END OF CONTRACT.
            netsum  = WA_ty_t_TG_1-NET_PO_VAL + NETSUM.
          ENDAT.
          WA_NET-netsum = NETSUM.
          APPEND WA_NET TO T_NET.
          CLEAR:T_NET,NETSUM.
    ENDLOOP.
        loop at RESULT_PACKAGE assigning <RESULT_FIELDS> .
            READ TABLE T_NET INTO WA_NET WITH KEY
                                  V_EBELN = <RESULT_FIELDS>-CONTRACT
            <RESULT_FIELDS>-/BIC/YNET_VAL = NETSUM.
            CLEAR: WA_NET-NETSUM.
        endloop.
        <RESULT_FIELDS>-/BIC/YNET_VAL = netsum.
        CLEAR:NETSUM,<RESULT_FIELDS>-/BIC/YNET_VAL.
        ENDLOOP.
    I have coded above one..let me know what mistake I have done.in the bolded loop I have given INTO instead of Assigning, because I need all records which assigns to WorkArea, but while executing DTP its leading to shortdump.if I replace Assigning statement,its working fine. but zero values in output( I think wrong in logic part)
    Let me know the brief coding part if I am wrongly coded.
    Thanks in Advance
    sudhir.

  • How to find the average of table row values it should display in next row in libwindow/​CVI

    Hi,
    How to find the average of table row values it should display in next row in libwindow/CVI
    Please let me know the solution.

    There isn't a built-in function to perform calculations on thable cells. What you can do is to retrieve thable cells values and calculate the average by yourself.
    To retrieve a bunch of cells in a single instruction you can use GetTableCellRangeVals: prerequisite for this function to work correctly is that cells are all included in a Rect structure (shortly, a rectangle) and are all of the same data type. See the help for the function for some explanations and the link to an example of its usage. In Cell range parameter you can pass VAL_TABLE_ROW_RANGE (row) macro to retrieve an entire row. See here for details.
    Once you have retrieved cell values in an array, you can pass it to Mean function to calculate the average.
    Proud to use LW/CVI from 3.1 on.
    My contributions to the Developer Zone Community
    If I have helped you, why not giving me a kudos?

  • Plotting Current Value Against Normative Limits

    My application requires me to plot current values against time whilst showing what is normal for the identical time-of-day and day-of-week.  I've got a floating column chart where each column represents a bounded set of normative values.  The columns appear with a linear graph to indicate today's value over time.  You can view that at
    http://www.mdrsesco.biz/ngbl/ngbl.html.  However, I am informed that the attached JPEG of a plot would be better.  Is that possible to code in mxml?  Thanks.

    1) "Powered by Jive Software" ....
    2) 我看看有没有机会通过什么渠道反映这个问题..

  • How tom take an average of file when i have three different values

    Dear all,
    I have a file with five column,                                                              
    A    B                      C    D    E               
    2    1.23375E+17    30    31    2              
    2    2.04196E+17    0      32    2               
    2    2.31994E+17    0      33    2               
    2    2.01626E+17    30    33    2       
    2    1.79445E+17    0      34    2          
    I want to take an average of  B for D= 0 to 15,,, 16 to 30, ,, 31 to 45, 46 to 59,, anf E= 0 ,2,3,4,5,........ 23,
    for A = 2, 3, 4, 5, ......32..
    here is programme and file.
    Solved!
    Go to Solution.
    Attachments:
    iisc0040-1014.txt ‏1489 KB
    average15mins.vi ‏11 KB

    I aapreciate with you sir,
     acually my problem is differenet, i repeat it belowe.
    A    B                      C    D    E               
    2    1.23375E+17    30    0    0              
    2    2.04196E+17    0      1    0              
    2    2.31994E+17    0      2    0              
    2    2.01626E+17    30    3    0      
    2    1.79445E+17    0      4    0        
    1-Column A having the value of no of system which start from 2 to 32,,
    2- colum D having the minutes which is start from 0 to 59.
    3- colum E is hour Which varies from 0 to 23.
    now i want to keep system (Column A) constant at 2 and for 0 hour ( Column E).. and want to take the average of Values (Column B). For 0 to 15 , 16to 30 , 31 to 45, 46 to 59 ,,,minute (column C).
    Means I will have 4 value for each hour,
    means i want to put first lup where Column A is constant for 2, at the same time second lup inside the first lup Having the constant value of Column 2.  and at third lup  take the avergae of value B for each 0 to 15, 16 to 30, 31 to 45, 46 to 59,..
    hope you will help me regarding this,

  • How can I select an area of a picture (larger than one pixel) and find the average RGB values of all the pixels contained inside the area?

    I'm analysing the differences between several different images and I would like to select a large area of each (such as with lasso tool) and find the average RGB value of all of the pixels within the selection area made/

    With the selection you could do a copy paste and use the histogram of the new layer set the histogram source to selected layer.  The eye dropper sample size may also to get the average  of a square area around a point.

  • Use of makit chart for multiple values against month

    Hi all,
    here is my test data:
    var testDate = { mycollection : [ {Consumption : 200, Consumption1 : 170, ReadingDateTime: February},
                                     {Consumption : 300, Consumption1 : 170, ReadingDateTime: March},
                                     {Consumption : 200, Consumption1 : 130, ReadingDateTime: April},
                                     {Consumption : 200, Consumption1 : 230, ReadingDateTime: May},
                                     {Consumption : 200, Consumption1 : 270, ReadingDateTime: June},
                                     {Consumption : 200, Consumption1 : 200, ReadingDateTime: July},
    In this consumption is for present year and consumption 1 is for previous year.
    I want to implement both the values against the month using makit column charts:
    var oChartj = new sap.makit.Chart({
         height: "80%",
         width: "100%",
         showRangeSelector :false,
         primaryColorPalette:["#18458D"],
         category : new sap.makit.Category({ column : "month" }),
         values : [new sap.makit.Value({ expression : "consumption"})]
         var jsonModel = new sap.ui.model.json.JSONModel();
          jsonModel.setData(testData);
           oChartj.addColumn(new sap.makit.Column({name:"month", value:"{ReadingDateTime}"}));
          oChartj.addColumn(new sap.makit.Column({name:"consumption", value:"{Consumption}"}));
         oChartj.setModel(jsonModel);
           oChartj.bindRows("/mycollection");
    in this way i am able to print the data as consumption against month, I need to add consumption1 also.
    How to do this?
    Regards,
    Arun

    Hi All,
    I was able to do the same with the help of series property in makit charts.
    series : new sap.makit.Series({ column : "year" }),
    In our test data we need to create the data's based on this value, for example if we are plotting consumption against month then the year should be a differentiating quantity within the test data.
    So that the graph will iterate for that and plot two values for the same month.
    Regards,
    Arun

  • How does APEX check for null values in Text Fields on the forms?

    Hello all,
    How does APEX check for null values in Text Fields on the forms? This might sound trivial but I have a problem with a PL/SQL Validation that I have written.
    I have one select list (P108_CLUSTER_ID) and one Text field (P108_PRIVATE_IP). I made P108_CLUSTER_ID to return null value when nothing is selected and assumed P108_PRIVATE_IP to return null value too when nothign is entered in the text field.
    All that I need is to validate if P108_PRIVATE_IP is entered when a P108_CLUSTER_ID is selected. i.e it is mandatory to enter Private IP when a cluster is seelcted and following is my Pl/SQL code
    Declare
    v_valid boolean;
    Begin
    IF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := TRUE;
    ELSIF :P108_CLUSTER_ID is NOT NULL and :P108_PRIVATE_IP is NULL THEN
    v_valid := FALSE;
    ELSIF :P108_CLUSTER_ID is NULL and :P108_PRIVATE_IP is NOT NULL THEN
    v_valid := FALSE;
    END IF;
    return v_valid;
    END;
    My problem is it is returning FALSE for all the cases.It works fine in SQL Command though..When I tried to Debug and use Firebug, I found that Text fields are not stored a null by default but as empty strings "" . Now I tried modifying my PL/SQL to check Private_IP against an empty string. But doesn't help. Can someone please tell me how I need to proceed.
    Thanks

    See SQL report for LIKE SEARCH I have just explained how Select list return value works..
    Cheers,
    Hari

Maybe you are looking for

  • Network Security for a department

    Hi all ,        Please go through my network diagram I am using ospf in the network .I only mentioned some of the routers in the diagram . Consider a Department A which is having a branch connected to Router R3 and to some other routers through E1 li

  • Iphone GPS co-ordinates

    I am trying to find out exactly where a picture was taken but the GPS co-ordinates embedded in the image point to a spot in the Irish Sea and yet the image is of a vehicle on dry land? Is an iPhone's GPS so far out or am I converting the numbers inco

  • System requirements for FCE

    Dear All, I am in the same position as Matt McGuire (see below). I have a similarly modestly powered PowerBook and want to get more serious about editing than I can just by using iMovie. With a PowerBook with a PowerPC 1.5Ghz processor and only 512RA

  • Voicemail Symbol on Orange N70 no longer appears

    I used to get a symbol on the screen and a notification message when new voicemail arrived, but this no longer happens. The voicemails are still recorded and I can still listen to them. Any ideas what to do? I have deleted all SMS and voicemails.

  • FDM Classic Email Notification

    I hope somebody can help me resolve an email notification issue.  Using the FDM accelerators, I generated the send mail script and appended it to the AftExportToDat event.  The email generates but it continuously sends the email nonstop for one load