Manipulating array of data

X_Value
Voltage - Dev1_ai0
0
2.47051
4.55E-05
2.468536
9.09E-05
2.475117
0.000136
2.471169
0.000182
2.475446
0.000227
2.473143
0.000273
2.473143
0.000318
2.469523
0.000364
2.468865
0.000409
2.470181
0.000454
2.470181
Hi, i dragged my signal from signal viewer into microsoft excel and i was given the above data (above is only a sample). i need to find a way of converting the x-data from freq to range. i have the formulae to do it - but i have not a clue on where to start. n e help would be great thanks.

what do u mean a read spreadsheet?. read-only?
the formulae i have to convert freq to range is
range = freq*c*dT/(2*dF)
where:
c   = 3*10^8
dT = 0.02
dF = 66*10^6
How do u do index enabled?
do u know how to do for loops in excel?

Similar Messages

  • Getting 2D array of data in tabular format using web services

    Hi all,
    I was trying to fetch data from MS access database and populate the same 2D array of data on my web browser. But unfortunately it says that the 2D array is not a "supported data type" for web applications and hence the 'build fails'.
    I would like to know if there is any method to represent my 2D data in a tabular format in my web broweser using the webservices. Needless to say, it can give such a good readiability!!!

    ShoaibM wrote:
    Hi vladodias!
    I have implemented your solution and it works fine. :D Your solution would work as well, but it is bad in performance... See this...
    http://docs.oracle.com/cd/E23943_01/core.1111/e10108/osb.htm#BABFHCDF
    >
    What my question is why I was not able to access particular element( E.g. 1st location of RecAdvGrp Array ).... ?? You should be able to do ./ReceiptAdviceRoot/ReceiptAdvGrp[1]/SYSHAN, and even ./ReceiptAdviceRoot/ReceiptAdvGrp[$index]/SYSHAN
    >
    And Why my forEach $index variable was not accessible inside the Insert Activity....??? What make you believe it wasn't accessible? I reckon you were just not doing the right xpath expression...
    >
    ---how do you format your coding segment differently( background ) ...?? :)See the Forum FAQ bellow, search for "useful formatting options"
    https://wikis.oracle.com/display/Forums/Forums+FAQ
    Cheers,
    Vlad
    It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts)
    https://forums.oracle.com/forums/ann.jspa?annID=893

  • How to store array of data into a single row of  table ,using any of Stmts

    HI Friends,
    Based on my requirements ,i have retrived a set of data from a XXX.jsp page using a request.getParameter() and stored into single dimenssional array . Now i am paassing that array to JAVA class to store a into some table .
    In JSP page users can add text boxes dynamically based on his intrest then those attributes will store in table .it means table attributes are not conatant , it table attributes may change at any time when user adds any textboxs or any fields on JSP page ....thats my module ..
    Now i wanted to store all array of data into Table in a single row .......thats is my requirements .
    How can we use prepareStatement and Statement to store array of results intoo table row ...on each iteration i wanted to store array of results into table atributes ..It means entire array of results should to into table row at time .....coule any one write sytax ,how we do this...
    could any one suggest me stps that i can impliment ......?....please reply ASAP

    Well ..you code can be works for constant number of attributes in table .oopss here my requirement is table attributes not fixed ,we cant put constant number of place holder(? ) in a statement ,because those are not fixed ,
    Let me explain here :
    i am doing in that way only. As i mentioned you Table attributes are not constant .It may very if users add any fields dynamically on JSP page .If users have option to add any text box on Jsp page ,then that attribute will store in table as a attribute .
    Now i amable fetching the all dyamic form data and stored in a Result Array below ...in this iteration all form result data are from jsp page as suggestion form ,it should stored in table in single row on corrsponding attribtes ......next time when users fills FROM ,then those data i am fetching and storing in a Result Array as below and need to store in corrsponding table attributes in a single row ....
    for(int i=0;i<result.length;i++)
                   System.out.println(result);
                   pst3=connection.prepareStatement("insert into *emprecord* values(?)");
                   if(!result[i].equals(""))
                        System.out.println(result[i]);
                             pst3.setString(1,result[i]);
                             pst3.executeUpdate();
    Thnks in advance ....let me know the the way we can store dynamic form data into dyanamic table ...

  • Error while assigning dates to associative array of date type

    Hi All,
    I am facing the issue while assigning dates to associative array of date type:
    Oracle Version:
    SQL> select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bi
    PL/SQL Release 10.2.0.1.0 - Production
    CORE    10.2.0.1.0      Production
    TNS for Linux: Version 10.2.0.1.0 - Production
    NLSRTL Version 10.2.0.1.0 - Production
    Stored procedure i am trying to write is as following
    create or replace procedure jp1 (
    p_start_date date default trunc(sysdate,'MM')
    , p_end_date date default trunc(sysdate)
    is
    l_no_of_days number;
    type t_date_id is table of date
    index by pls_integer;
    l_date_id_arr t_date_id;
    begin
    l_no_of_days := p_end_date - p_start_date;
    for i in 0
    .. l_no_of_days - 1
    loop
        l_date_id_arr := p_start_date + i;
        dbms_output.put_line(p_start_date + i);
    end loop;
    end;
    I am getting error at line 14 while compiling this. and the error message is as following:
    Errors for PROCEDURE JP1:
    LINE/COL ERROR
    14/5     PL/SQL: Statement ignored
    14/22    PLS-00382: expression is of wrong type
    So while investigating this i tried to output the value of (p_start_date + i) using dbms_output.put_line and the output is date itself.
    create or replace procedure jp1 (
    p_start_date date default trunc(sysdate,'MM')
    , p_end_date date default trunc(sysdate)
    is
    l_no_of_days number;
    type t_date_id is table of date
    index by pls_integer;
    l_date_id_arr t_date_id;
    begin
    l_no_of_days := p_end_date - p_start_date;
    for i in 0 .. l_no_of_days-1
    loop
        --l_date_id_arr := p_start_date + i;
        dbms_output.put_line(p_start_date + i);
    end loop;
    end;
    output of the
    exec jp1
    is as following:
    01-DEC-13
    02-DEC-13
    03-DEC-13
    04-DEC-13
    05-DEC-13
    06-DEC-13
    07-DEC-13
    08-DEC-13
    09-DEC-13
    10-DEC-13
    11-DEC-13
    12-DEC-13
    13-DEC-13
    14-DEC-13
    15-DEC-13
    16-DEC-13
    17-DEC-13
    18-DEC-13
    I see the output as date itself. so why it is throwing error while assigning the same to associative array of date type.
    I tried to google also for the same but to no avail.
    Any help in this regard is appreciated or any pointer some other thread on internet or in this forum.
    Thanks in advance
    Jagdeep Sangwan

    Read about associative arrays :
    create or replace procedure jp1 (
    p_start_date date default trunc(sysdate,'MM')
    , p_end_date date default trunc(sysdate)
    ) is
    l_no_of_days number;
    type t_date_id is table of date
    index by pls_integer;
    l_date_id_arr t_date_id;
    begin
    l_no_of_days := p_end_date - p_start_date;
    for i in 0..l_no_of_days - 1
    loop
        l_date_id_arr(i) := p_start_date + i;
        dbms_output.put_line(p_start_date + i);
    end loop;
    end;
    Ramin Hashimzade

  • How to generate xml file from an array of data using jQuery

    Hi All,
    Iam facing the problem with diaplaying array of data into a xml file, Actually iam using SAPUI5 commons table to display the backend data, each row in the table has checkbox. If we select each checkbox, iam getting the particular record and push it into an empty array and then i should show that array of data into xml file.

    OData.request 
    requestUri: url,  
    method: "POST",
    headers: {                    
    "X-Requested-With": "XMLHttpRequest",                  
    "Content-Type": "application/atom+xml",
    "DataServiceVersion": "2.0", 
    "Accept": "application/atom+xml,application/atomsvc+xml,application/xml",  
    "X-CSRF-Token": header_xcsrf_token   
    data: requestTableDATAArray
    // Response after posting and set message
    function (data, response) 
    alert(response.body);//gives xml format

  • How to add an array of data in Citadel database

    I have an array of data which I want to directly put it in the Citadel Database. Normally the write tag VI writes one value at a time. How can this be done ?

    It depends on what you really want. Could you be a little more specific? Does each point have its own separate timestamp? If so, you could simply put the "Write Tag.VI" inside a FOR LOOP and insert values one after another. This would give a separate timestamp to each value. I have attached a simple VI that shows how to do this.
    Or are you looking to record some type of vector, where you log a complete array of data at each interval? I don't think this is possible (I'm using DSC 6.02) unless the data-type is a bit-array, in which case you would simply use "Write Data (bit array).vi".
    Another option, depending on what you are aiming for, would be to create your own "VI-based Device Server" and use the VIs on the palette submenu call
    ed "DSC Server Development". With your own Device Driver you can write multiple datapoints to the input queue simultaneuosly. In this way, you can write more than one point at a time... but that doesn't mean that each time interval will contain an array of data. Assuming that the data is analog, the data will still be logged to Citadel "one after another" so that when you look at it with the HTV, you will see one curve of analog values.
    Attachments:
    Write_array_to_citadel.vi ‏17 KB

  • Collating Array of Data by name

    Hi all,
    I am new to LabVIEW (barely 3 weeks). I have successfuly written my first VI collating data from 8 temperature and 4 pressure channels. I further wish to have the data collated in the file by name. This is so I could distinctively distinguish between different array of data by name. Can anyone help.
    Thanks. Ezekiel

    Hello agezekiel,
    the TDMS file format suits your needs exactly.
    TDMS files store data in channels, channel groups can be created for related channels to structure data. They can store measurement related metadata by storing individual properties for files and groups, they also support high-speed streaming. TDMS file support is tightly integrated into most NI software products and the format specification is public, so it can be integrated into third party software as well.
    For programming examples please open the NI Example Finder (Help menu -> Find Examples...) and search for the keyword 'TDMS', you will find plenty of great sample VIs.
    Some additional links:
    Microsoft Excel TDMS addon:
    http://zone.ni.com/devzone/cda/epd/p/id/2944
    Documentation for third party support:
    http://digital.ni.com/public.nsf/allkb/A3663DE39D6A2C5A86257204005C11CA
    Regards,
    Daniel

  • How to make an acquired array of data work with point-by-point functions

    Hello everyone,
    I am working on a LabVIEW project using the Measurement Computing PCI-DAS6402/16 board. I am attempting to use point-by-point analysis with data acquired from the board, but I am having some difficulty. I am currently only able to acquire an array of data and not just a single point of data per scan. So, I was wondering if i) anybody possibly had any knowledge/experience using this particular board and getting it to be compatable with point-by-point VIs or ii) if anybody possibly knows anyway to convert an array of acquired data to work with point-by-point VIs in a hard realtime application. Thanks
    Pat
    Message Edited by Support on 11-16-2005 07:56 AM

    Hi Pat
    I just can tell you how you can use the pt-by-pt functions. As you said you have an array of data. To use the pt-by-pt functions, you need the single datapoints. So the only way is to use a loop to get the single elements and pass them to the pt-by-pt functions.
    I've attache a simple example.
    If this is the right way for you concerning processor and memory load, execution speed etc. I can't tell you.
    Hope this helps.
    Thomas 
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    PtByPt.vi ‏17 KB

  • Can an array of data be turned into a dataset run in labview dsc 6.1

    I am reading an analog input into consecutive registers inside a plc on each scan. Then I am reading this group of registers into the dsc engine through a KEPWARE OPC server. I am using the 'read multiple tags vi' to grab all of this data into an array. can this array of data be turned into a dataset and use the run capability to log data???? The plc has a scan time of 3ms

    If you put 1000 tags in a built-in DataSet, then you will have 1000 traces, one for each. DataSet is nothing but the database except that it groups a bunch of tags (in the dataabase) and forms a "set."
    I think there's some confusion here about the terminology: dataset, traces, database, etc. I will summarize this for the benefit of all of us:
    DSC's database, Citadel, is the repository of all historiical data. Those Tags for which logging is enabled (in the SCF) will log their data in Citadel.
    This data can then be extracted and viewed either by using the Historical VIs or the built-in viewers like HDV and HTV.
    DataSet is a new feature of Citadel introduced in DSC v6.1. All this does is lets one define a set of Tags to be lo
    gged and extracted together (as sets). The data is still being stored in Citadel; and you still have to enable logging for these Tags in the SCF. However, you can query for this set of tags by their ID rather than querying each one of the Tags individually and building your own sets. So, it's a mechanism which facilitates the usability of stored data as sets.
    Hope this clarifies some stuff.
    Regards,
    Khalid

  • Data extraction from an array of data

    So I want to extract a
    subset from an array of data. 
    I have two columns of data that I need to do with,
    these are potential energy (expressed in terms of kT) and relative separation.  The data typically results in a parabola-type
    shape with the potential energy on the y-axis and the separation on the
    x-axis.  The potential energy starts at
    high kT's at small separation and then decreases to zero as the separation
    increases and then it starts to increase again once it is past zero kT.  The issue I have is that I need to disregard
    any data that is greater than 6 kT.  Thus
    I need to extract the data (both the potential energy data and the
    corresponding separation data) from the array that is 6kT or below.  So the problem I am having is trying to work
    out how to approach the extraction of this data.  I would love to get some suggestion as to how
    I should approach it.
    I initially thought of using a mathscript node to do this,
    but I am not sure of how I should code this, if this is indeed possible.
    Another option I considered was to use one of the array vi's
    to perform this extraction as I thought I could use them to find the element
    where the kT is higher than 6 and the corresponding index element which I could
    then use to extract the relevant portions of the array.  But I don't see an easy way to achieve this.
    So the vi I will write for this will function will actually
    be a subvi of another vi I have written (this vi is named ‘non-linear fit to PE
    data mod.vi' and it also has a couple of other subvis).  I have attached this vi and a relevant data
    file (as an example of the data I will be getting and needing to analyse) in a
    zip file.  I haven't included an example
    of the subvi I need to write because I looking to find some pointers as to how
    I could do this first.  In the ‘non-linear
    fit to PE data mod.vi' I have included a text box in the location I will be
    putting this subvi.
    Any help in helping me out here would be appreciated.
    Thanks
    Solved!
    Go to Solution.
    Attachments:
    data extraction help needed.zip ‏31 KB

    Try the attached VI. as per my understanding you want to remove the data in the array which is grater than the specified value,am right?
    Balaji PK (CLA)
    Ever tried. Ever failed. No matter. Try again. Fail again. Fail better
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
    Attachments:
    Remove Data.vi ‏8 KB

  • Can we print an array of dates on the chart X-Axis?

    Hi,
    I have a requirement in which I have to print all the dates in the selected date range on the chart axis even though I donu2019t have the data for all the dates in my DB.I did not find any direct solution in Crystal Report Designer (2008, XI) except we can use "time scale" option in axes tab of chart option but this option also does not provide the required behavior completely.
    After implementing this option I get the date range on chart but from the date I have data in the DB and to the date I have the data in the DB.
    For Example, though I have selected the date range from 2nd April to 8th April, dates in the chart are starting from 5th April since I have the data in the DB of 5th April and 8th April.
    To overcome this limitation of crystal report I thought of creating an array of dates of the selected date range. I can create the array of dates in crystal report but donu2019t know how to use this array in chart to show the summary data.
    I also want to base my Group on this array since I want to show all the dates in group even with count zero.
    Thanks & Regards,
    Amrita

    Hi Sourashree,
    I am using the following formula to create an array of dates.
    numbervar dateDiff:={?eDate}-{?bDate};
    dateTimeVar array dateArray;
    numbervar i;
    for i :=1  to  7 do
        redim preserve dateArray<i>;
    if(i=1) then
        dateArray<i>:={?bDate}
    else
        dateArray<i>:={?bDate}+i;
    This formula is a print time formula since when I specify "WhileReadingRecords" array remains blank (I have confirmed this by returning any single value from the array).
    I can not base my Group and Chart on any Print Time formula since these two get calculates at read time.
    Can you please let me know if there is any other way of creating the array at read time? Or should I create the array in main report and then pass it to sub report?
    Regards,
    Amrita

  • When can we expect a patch for Object Array List Data Provider?

    Hey JSC Team!
    When can we expect maybe, just maybe a minor patch for the Object Array List Data Provider loading class problem? Next Month? This Year? Next Year? Near Future? Long in the future? Sometime in the 22nd century?

    I think one of the problem is
    when u declare the ObjectListDataProvider in ur backing bean
    it doesnt appear in the design time straight away
    u have to clean build close and re open the project
    which is quite time consuming.

  • Problem converting U8 array to date-time string

    Hi All,
    How can I convert U8 array (time_t data type from C dll) to date time string?
    A dll function that I am calling has a structure of string, integer and time_t as one of the parameters. Instead of passing cluster, I pass an array of U8 of the size that the structure should be. All the members of the strcuture and parsed correctly except the date/time.
    Function Parameter:
    typedef struct {
    Int AlarmState ;
    Int AlarmGrade ;
    TCHAR AlarmMessage [100] ;
    time_t AlarmTimeStamp ;
    } WV_ALARM_INFO ;
    Total size = 4 + 4 + 100 + 4 = 112
    Using Call Library Function, I set the parameter type to Array of U8 and size 112.
    After the array is populated when the function is called, I have done the following to interpret date and time.
    1) Using Extract Zero Terminated String.VI I converted U8 array (of size 4) to string.
    2) Type casted string to integer (I32).
    3) Swap bytes
    4) Swap Words
    5) Format Date/Time String.
    Please see the attached screenshot for visual display of the above.
    Ideas on why the year is incorrect?
    Mimansa
    Attachments:
    Time.JPG ‏102 KB

    Hi Mimansa,
    Is it only the year that is incorrect? Also, where did you find that ABC\0 VI that you use 3 times? Did you make it or is it in a labview library somewhere?
    Thanks,
    Laura

  • Include array of data in additional results

    It seems not to be possible to use array of data in additional results? Anyone who knows if this correct?
    Regards
    Vagn

    Hi,
    I tried your example, the first step I am seeing the extra result and when I add some values to your local I see them as well.
    The second step doesn't because you haven't specified anything to report.
    Regards
    Ray
    Regards
    Ray Farmer
    Attachments:
    Additional Results test.seq ‏6 KB
    Additional Results test_Report[11 58 17][28 01 2009].zip ‏3 KB

  • I'm having problems manipulating array data within a for loop, and extracting the required sub-arrays generated.

    Hi,
    I'm using labVIEW V5.1
    I'm trying to generate 10 1D arrays, the first array is initialized to all zeroes, then I have set up a for loop which shifts the first element by 1, then a random number is placed into the first element position. I am using a shift register to feed back in the newly generated array into the start of the loop.
    By the end of the each loop I want to be able to use the array generated in an algorithm outside the loop. However I only want the Nx1 array that has just been generated.
    Unfortunately, I cannot figure out how to resize, reshape or index the output array to do this.
    I would like the loop to
    give me out a 1D array after each iteration.
    Any help would be greatly appreciated.

    I hope I've understood your problem.
    First your vi was lacking of the sub-vi working as shift register, I've replaced it with the rotate function.
    The indexing of your arrays create a 2D array whose rows are your 1D array.To pick only one of them you have to use the index array function and select which one you want.
    To use your temporary data in another part of your application you should use a local variable of array2.
    I did it in a separated while loop That I syncronized with the for loop using occurrence, in this way the while loop runs each time a new value is inserted in array2 (each loop of the for loop structure).
    If you don't need this syncronization just get rid of occurrence functions.
    I place a delay in the for loop to show what happens when running.
    Hope it was helpful.
    Alberto Locatelli
    Attachments:
    array_test_v3.vi ‏35 KB

Maybe you are looking for