Need help on Proper LabVIEW data smoothing technique

Hello,
I am wondering if anybody can shed the light on proper way to smooth the data collected from an analog input.  I am collecting a channel with 100 Samples to Read and at a rate of 1000 Hz.  My intention is to average the 100 samples and treat the average as one data point of one iteration of my While loop.  The next time of my While loop executes, it averages another 100 samples, and treat the average as one data point, and so on. 
The way I'm doing it now is as follows:
DAQ Express VI ----> Collector (from Signal Manipulation pallette)  ------>  Statistics (Arithmetic Means from Signal Analysis pallette)
----> Convert from DDT to 1-D array of waveforms.
But in doing so, I loose the time information of my waveforms, i.e. the data coming out from "Convert from DDT to 1-D array of waveforms" is always one data point with t=0 for each iteration of my While loop.  The t value is always 0.  This is not my original intention.  All I want is to smooth the data from my data collection by averaging the sampled data and preserve the time stamp.  How can I achieve this?  Thanks for any pointers.

Hi Peter,
The best option would be a moving average technique.
I am attaching some examples that do moving average with simulated signals.
You can implement this logic in your application
Regards
Dev
Attachments:
Moving_Average_on_Multiple_Records.llb ‏152 KB
Moving_Average.vi ‏33 KB

Similar Messages

  • Need help in formatting the Date - Date does not

    Need help in formatting the Date - Date does not formats and give Not a valid month error in the below scenario.
    select oc.ST_PGM_MGR, r.ag_dnum, get_major_work_type(r.perf_eval_rtng_id) "v_work_code", r.ag_dnum_supp "supp", r.intfinal, to_char(r.formdate,'MM/DD/YYYY') "formdate", to_char(r.servfrom,'MM/DD/YYYY') "srv_from", to_char(r.servto,'MM/DD/YYYY') "srv_to", descript, add_months(to_char
    --- Bellow line of Code on trying to format it to mm/dd/yyyy gives the error
    (r.formdate, 'DD-MON-YYYY'),12) "formdate2"
    from  table REdited by: Lucy Discover on Jul 7, 2011 11:34 AM
    Edited by: Lucy Discover on Jul 7, 2011 1:05 PM

    Your syntax is wrong - look at the post above where this syntax is given:
    to_char (add_months(r.formdate,12), 'MM/DD/YYYY') "formdate2"Look at the formula from a logical perspective - "inside out" to read what is happening -
    take formdate, add 12 months
    add_months(r.formdate, 12)then apply the to_char format mask - basic syntax
    to_char(date, 'MM/DD/YYYY')Compare to your syntax:
    to_char(add_months(r.formdate, 'MM/DD/YYYY'),12) "formdate2"You will see your format string inside the call to add_months, and your 12 inside the call to to_char.
    Good luck!

  • Need help in logging JTDS data packets

    Hi All,
    I m having web application which uses SQL Server database.
    I have to find out some problems in database connection for that there is need to log the jtds data packets.
    I have tried to use class net.sourceforge.jtds.jdbc.TdsCore but in constructor of TdsCore class there are two parameters needed one is ConnectionJDBC2 and another is SQLDiagnostic.
    I have tried a lot but it did not allow me to import class *SQLDiagnostic*.
    I need help in logging JTDS data packets. If there are any other ways or any body having any idea about logging JTDS data packets/SQLDiagnostic.
    Please reply it is urgent...!!
    Thanks in advance......!!

    if you want to use log4j then,
    in your project create a file called log4j.properties and add this
    # Set root logger level to INFO and its only appender to ConsoleOut.
    log4j.rootLogger=INFO,ConsoleOut
    # ConsoleOut is set to be a ConsoleAppender.
    log4j.appender.ConsoleOut=org.apache.log4j.ConsoleAppender
    # ConsoleOut uses PatternLayout.
    log4j.appender.ConsoleOut.layout=org.apache.log4j.PatternLayout
    log4j.appender.ConsoleOut.layout.ConversionPattern=%-5p: [%d] %c{1} - %m%n
    log4j.logger.org.apache.jsp=DEBUG
    #Addon for
    com.sun.faces.level=FINEGo to your class and add this line
    private static final Logger logger = Logger.getLogger("classname");and then you can use
    logger.info();
    logger.error();
    methods

  • Need help in loading master data.

    Hi everyone,
              I am just a beginner in BI 7.0 . I know Bw 3.5 . I need help in loading master data(flat file) in a step by step manner.
    Before posting this forum i searched and checked out other related forums too, as i am a beginner i am unable to follow them. Lots of the forums gave the help.sap.com link which i used and got a little help but not fully, so please don't send that link.  I need a step by step guideline from somebody, which says everything from the beginning till monitoring say like
    e.g.. 1) create a InfoObject by right clicking on InfoObject catalog.
    something like that.
    please help me get a clear and detail step by step procedure to load a master data (Flat File should be good) which may help me get a start will other things without much help.
    Please help me learn.
    Thanks.
    Ranjani.

    HI,
         Thanks for your reply. This is what i did.
    1) Created a Info Area.
    2) Created Info object catalog & activated
    3) created info object with nothing except some 4 attributes.
    4) Created Application compound in Infosource tab.
    5) Right clicked on Application compound and chose create Infosource in which chose a option with 3.x and chose the flexible update and gave the info object name.
    6) In info provider tab , in the Info Area right clicked and chose the Insert char as data target option.
    Now, i am stuck. I have no idea what to do next.
    I know i have to create a transformation - There are two tabs in Transformation box, what should i do there.
    Please help me from point 6 to cont., to load the data.
    Thanks.

  • Need help in fetching requested data from JSP

    Hello,
    I really need help in fecthing requested data from JSP to servlet. Can anyone assist me as soon
    as possible because I must finish my program by today.....( 20/02/2002).
    Thanks in advance.

    It is very likely that somebody can help you, if you say what your problem is. In fact somebody might already have helped you. What is your problem?

  • I need help highlighting an expiration date on my Numbers '09 spreadsheet. I want the text/fill of a cell to change color when the expiration date of an item is within 180 days of the current date.

    I need help highlighting cells on my Numbers '09 spreadsheet.  I want the cell text/fill to change color when the date is 180 days or less from the current date.  I already have a cell with the current date in it.  I also know how to change the fill/text colors.  All the cells have been formatted to show date only.  I am having trouble with the formula.  I can get to the Conditional Formatting menu and select "With Dates" but after that I am lost.  Can anyone help?
    Thank you for any assistance.
    B

    Set a Conditional Format rule as shown in the illustration below. The rule has been applied to all dates in column B of the table.
    Regards,
    Barry

  • I need help parsing a  swift data string

    i need to parse swift financial data
    is there a way to use split or stringtokenizer for ::
    and keep the :: as part of the new seperated data.
    i want to put each string starting with :: on a seperate line in a text box.
    i gave up and tried it with a loop and a stringbuffer , and indexof.
    if (line.indexOf("::") == Strpos ){
    frame.jTextArea1.append(displayline.toString());
    displayline = new StringBuffer();
    displayline.append(line.substring(Strpos, (Strpos + 2)));
    Strpos += 2;
    if (line.indexOf("::") != Strpos ) {
    displayline.append(line.substring(Strpos, Strpos + 1));
    System.out.println( displayline);
    Strpos++;
    but i cant get that to work either.
    if anyone knows how to parse swift data please give me your email address.
    i've been doing it in cobol for 15 yrs and i just cant get the cobol techniques to translate to java.
    thanks.

    as i said
    i am really a cobol guy
    and yes as you see i did try to use indexof in my code.
    but there must be something about indexof that i'm not getting.
    it works the first time in the loop but then as i increment my start position(strpos)
    the indsex of no longer works.
    am i using the correct technique to increment the start position thru the string buffer.
    thanks guys.

  • Need help in stroring CLOB data into a table

    Hi All,
    I have a CLOB data. Which contains delimited data.
    Example:
    "111#|#ABC#|#asfsdffgh $|$222#|#XYZ#|#jdsfgdskdsf $|$"
    #|# - is column delimiter.
    $|$ - is row delimiter
    I want to extract and store the above data into a table which has 3 columns. Need help.
    I have Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - 64bit Production
    Thanks in advance,
    Girish G

    Hi Girish,
    Please go through the below url's...It will give you fair idea and solution. HOpe you know the sql *loader utility. or external table.
    http://www.oracle-base.com/articles/10g/LoadLobDataUsingSqlLoader.php
    http://www.oracle-base.com/articles/10g/ExternalTablesContainingLobData.php
    KPR.

  • Need Help....Data Concatenation

    Hey..How are you all..?
    If someone can take a look at my requirement and spend some on it, I would really appreciate help..
    Database version - 10g
    Requirement - Need to display 'Description' inforamtion in a single/one complete line for a single record ( as shown below) which are being entered in multiple lines through screen (this column is stored in single table only).
    engine_family sequence_num Description
    09          1     Includes:
    09          2     Clock on and off the job
    09          3     Move equipment to and from work area
    09          4     Record the following
    09          5     Generator set model number
    09          6     Generator set serial number
    09          7     Engine serial number
    09          8     Hours of operation
    09          9     Load/unload tools, equipment and repair parts
    09          10     Clean up work area
    09          11     Write repair order
    09          12     Write repair procedures
    I am not sure whether we can display this data by concatenation(concat) function through sql query or any other technique..?
    Please let me know how can concatenate the description from multiple lines to one line for a single record as displayed above...also let me know if you want other inputs from me..?
    Thanks
    Mark

    Hi, Mark,
    That's called String Aggregation , and this page shows several ways to do it:
    http://www.oracle-base.com/articles/10g/StringAggregationTechniques.php
    I think LISTAGG is the only technique that won't work in Oracle 10. (Too bad; it's the best one.)
    If the order of the concatenated data isn't important, then I recommend the user-defined aggregate function. You have to copy it from the site (about 60 lines of PL/SQL) and install it, but you only have to do that once. It's a very handy function.
    If order is important, then the SYS_CONNECT_BY_PATH technique is good.
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only), and also post the results you want from that data.
    If the output isn't completely obvious, describe what it is. (For example, if you want to have a string with embedded newline characters, so that the one string appears on multiple lines.) It helps if you fiormat the output, and type hese 6 characters:
    \(small letters only, inside curly brackets) before and after each section of formatted text, to preserve spacing.
    Edited by: Frank Kulash on Oct 13, 2010 12:56 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Need help in Migration of data !

    We developed a application using Apex and currently it is going through client testing.
    There is one challenge at client side; there are some third party legacy inventory systems at client side where there is data stored in databases like Paradox, SQL server, XML the customers have been using them for last 10 to 15 years.
    Now there is some amount of data where they enter into those system; we want to extract some of the data and show in our application. Ours is a hosted On Demand application we need to migrate the data from the client machine and push into our server so that they can view the data online. And we want to run a scheduler every day to extract the data .
    Do you have any idea how we can do this in APEX or any tool that can support our need.
    Did you hear about spectral.com (full convert)
    I really appreciate your help on this.

    Hi,
    it is not too difficult to load data into a database using only Apex tools, but the problem with this is that it can't be completely automated, as at some stage, a user would have to do a manual file upload.
    In order to achieve completely automated upload you would need access at a lower database and database server O/S level as well as have direct connectivity between your Apex server and the legacy source systems. As your Apex system is a "hosted On Demand application" you may be severely limited in your access at those levels.
    Depending on your access, you would typically extract and load data from other non-oracle sources using technologies like Oracle's heterogeneous Gateways or third party odbc connectivity and use database links. Or you could automate files to be dropped from the legacy systems to somewhere that is accessible to the destination system where it could be loaded using tools such as SQL Loader or External Tables. This could be scheduled using tools such as cron or dbms scheduler.
    I know this is very general, but I hope it points you in the right direction.
    Regards
    Andre

  • Need Help on Configurations of Data Services on IBM AIX Platform

    Hi All,
    We are in the process of installing Data Services XI 3.2 on IBM AIX platform.We are having some showstoppers which we are not able to resolve.
    It would be of great help to us if anyone can give some inputs.
    Lanscape:
    Data services server: Server A
    OS - AIBM AIX
    DB2 Database: Server B
    OS - AIBM AIX
    Activities Performed till now on DB2 Side:
    Multi user development:
    1.       Created 2 DBu2019s on Server B
    ·          REPO_CR (Central Repository u2013 Which is used for multi-user environment).
    ·          REPO_LR (Local Repository u2013 Which is used for actual development like login and build   jobs).
    2.       Created multiple schemas under REPO_LR(One Schema for each user).
    ·          User1, User2, User3, etcu2026 (These schemas can hold metadata of Data Services XI which can be used for reference).
    Each and every schema should have itu2019s their own user name and password
    Activities Performed till now on Data Services Side:
    1.Installed Dataservices
    Activities Yet to be done on Data Services Side:
    1.Configure Repository manager (Create central repository REPO_CR of type sucure using repository manager)
    2.Configure Job Server(Create a Job server and assign the local repository REPO_LR to the same)
    Issues:
    While creating the central repository usning the below command:
    ./repoman -UCRREP -Ppassword -SServer B -NDB2 -QREPO_CR -tcentral -c -a -d
    an error ocurred as :"Error while creating the Local Repository"
    I think we are getting this error because of some connectivity issue between DB2 server and Data services Server.
    Please share all of your valuable thoughts.
    Note:Our DB2 admin said we cannot create any ODBC connections on AIX platform
    Thanks,
    Muni

    the arguments that you are passing to repoman are not correct, if your server name has space then you should enclose that in quotes, else it will be treated as 2 arguments, you are passing -SServer B it should be -S"Server B"
    -SServer B
    I don't think you need to pass -Q option for DB2, its required only for Sybase Repo
    for DB2 you will have to install the DB2 Client, and create a Node and Catalog the database on that node
    if you are able to open DB2 command prompt form the unix and use that database, then try using the following args to create DB2 Repo
    -Uusername -Ppassword -NDB2 -SDBName -tcentral -c -a -d
    or better use Repository Manager from Windows to create repos

  • Calendar in iCloud deleted - need help to get the data back

    Hi,
    I just deleted one of my calendars in iCloud. Is there any chance to get this calendar (with all the data) back into iCloud?
    Thanks for your help.
    Pierre

    how? I should have a backup at my time machine from earlier today. Do I need to completely restore my MBP to also get my calender data back? Note that i only by accident deleted one calender (my others are ok)
    thank you

  • Need help in copying Invoice date to lower level item in Sales order report

    Hello Experts,
    I am debugging into one Sales order report.I need little bit help.The report is displaying Invoice Date for
    Sales order Billing documents for Higher item in Bill of Material Structures.But as per user requirement,
    I am supposed to show the Invoice date for lower level items also.The field for Higher level item is 'UEPOS'.
    I want to copy the Invoice date for Higher level item to lower level item. Can you please guide me in the logic?
    Thanking you in anticipation.
    Best Regards,
    Harish

    Hi BreakPoint,
    Thanks for the information.
    I have applied the same way but it is showing only lower line items now.
    Invoice dates for Higher level items are not there.
    I am pasting the code here which I have applied.
    Then you can give me more guidence.
    This is to be done only for 'ZREP' sales orders.
    if w_vbak-auart EQ 'ZREP' and w_vbak-uepos is not INITIAL.
                          read table t_final into w_final_ZREP with key vbeln = w_vbak-vbeln
                                                                        posnr = w_vbak-uepos.
                             w_final-erdat_i = w_final_ZREP-erdat_i.
                             else.
                    if w_vbak-auart EQ 'ZREP' and w_vbak-uepos is INITIAL.
                      w_final-erdat_i = w_invdate.
                    endif.
                    endif.
    Can you please sugest me changes here?
    Best Regards,
    Harish
    Edited by: joshihaa on Jul 13, 2010 6:22 PM

  • Need help in URL Service Data Control

    Hi Everyone,
    I'm working on JDev11gUp2, ADF-RC
    I am using URL Service Data Control to fetch data from CSV File and i got success but I need to know that is there any way to pass File Connection URL Dynamically at run time, As i know we have to provide URL string at design time, but i have multiple files to pass at run time , Then?
    And one more question that Once the data is uploaded into af:Table from my CSV file. then after Any data change in CSV file must reflect in af:table with that change like other iterator refresh functionality. but I'm not able to do that, Simple question is, How to Re fetch the data from CSV file at run time?
    Your answer would be really appreciated as it would really help me.
    Thanks
    Fizzz...

    Hi Fizz,
    Not sure of the answer to your specific question. A couple of thoughts, though:
    You could try putting some code in a backing bean action listener to get the data control from an iterator binding (where you have added an iterator binding to your page definition) and then using the debugger to inspect the runtime type of the data control returned - then look to see if that type has a setURL method.
    [url http://database.in2p3.fr/doc/oracle/Oracle_Application_Server_10_Release_3/web.1013/b25947/adv_data_controls005.htm]this link talks about creating your own data control type - where you could certainly expose a method to set a URL. More work, but you have complete control.
    Hope this at least gives you an idea or two.
    John

  • Need help - How to load data which contains \r\n

    Hi All,
    We have a requirement wherein we need to load the data from a .dat file, with fields separated by | symbol and the line separator specified as '\r\n'
    INFILE '/scratch/xyz/abcd.dat' "STR '\r\n'"
    FIELDS TERMINATED BY '|' OPTIONALLY ENCLOSED BY '"'
    Can you please help us load data which contains multiple lines in a single field to a database table field , keeping the line separator in ctl file as '\r\n' itself.
    When we try bringing the '\r\n' within a text field enclosed in "" , the '\r\n' , sqlldr considers it as the end of that record and not as a data which needs to go into a column.
    One option we have is to have the extraction process create the data in such a way that the fields with multiple lines , be brought in the .dat file enclosed in "" as
    "Test
    "|8989|abcd
    where the new line in the first field is just '\n' .
    Is there any other way in which the requirement can be addressed.
    Version: SQL*Loader: Release 11.1.0.7.0
    Thanks,
    Rohin

    In addition, you would need to know the character set encoding of the csv files (e.g. the code page used).
    Basically you need to have the facts about both client (csv file) and database character set.
    As suggested, use the available documentation - it's there to help you!
    http://www.oracle.com/technology/tech/globalization/htdocs/nls_lang%20faq.htm
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14225/ch2charset.htm

Maybe you are looking for

  • Cost Center Status

    Gurus, How do I get the cost center active/inactive status? I am currently creating an interface of SAP to another system. The status of the cost center is required. I check t-code: OKENN but can not trace which table the status is maintained. Thanks

  • How to register sjsws7.x with sjsDir svr 5,2

    Running sjsws 6.1 SP8 and sjs7 on Solaris 9 SPARC Would like to register 7 with the existing accounts/access control list already in Dir 5.2 I do not see a way of registering 7 with the sjsDs 5.2 How?? Thanks

  • My iphone is not showing up on itunes?? what can i do??

    hi i want reset my iphone on itunes but its not showing up....on my phne there the plug n the itunes logo telling me to plug it in...but nothinfg appears?

  • AVCHD convertion

    Hi Iam having a few problems with my I movie reading avchd files it worked ok from the ad card but from the Panasonic camera hard drive the movie clips show as question marks and won't import . I have plugged the camera in and it shows on the desk to

  • Weblog Log Format

    hi, can anybody tell me how i can change the log format in weblog5.1 to NCSA format (extended) Regards, Bibin