I am sampling a signal at 1kHz for every 1 second. How do i average the signal for N seconds?

I am sampling a signal at 1kHz for 1 second. After one second of pause, i sample again for 1 second at 1kHz. If i do this for Nth time, how do i average the signal over the 1 second period?

Anyway you need to have the data to compute the average... and usually you don't get the data point-by-point unless it is very low frequency acquisition.
If it is the case, you have to update your 2D vector point by point and then compute the average after each new point (much slower process indeed). You keep say 20 vectors of data and fill in the data (1, 2...20) and then( 1,2..20), so you compute the average on the last 20 acquisitions
(don't forget the rating)
Doc-Doc
http://www.machinevision.ch
http://visionindustrielle.ch
Please take time to rate this answer

Similar Messages

  • Reduce sample size Signal Express

    I need to reduce the sample size from 3 thermistors over a period of about 1 hour.
    I'm reading the voltage differential from 3 analoge inputs with a USB-6343 multifunctional DAQ.
    I've tried to reduce the sample rate but this gave me an error, so I went back to the default settings of 1kHz for sampling rate.
    Is there a way I can reduce the sample size from withing Signal Express (demo version)? I need to be able to output to excel so that I can share results.

    Hello REDS,
    Thanks for the response. Been out for a couple of days. I'll take a look again Monday.
    I'm limited to the LE version of Signal Express 2012, so I believe the "Processing" steps will end up being disabled after the eval period, so I'll be stuck after that. I was looking for a quick off-the-shelf solution when I spent all my money on the DAQ and was hoping that the LE version would have been sufficient to perform simple acquisition and logging functions with the DAQ. Chicken and Egg: couldn't eval SW w/o the HW.
    I know some DAQs are limited due to the A/D HW, but the datasheet for the 6210 doesn't specify a minimum sample rate. Would you know of other tricks with the LE version of Signal Express 2012?
    Thanks again!

  • Need sample ecg signals

    Hi I need some sample ecg signals through which I want to check my ecg analysis module(that do filtering of signal and takes FFT of them).
    Anyone can send me that plz.........

    I had some sample signals many years ago.  I will look for them.  I can't remember the format, but I think it was just a 1D array of numbers.
    Have you tried researching some Med School websites (Universities?)
    ECG: electrocardiogram

  • How can I get the time for a simulate signal express vi waveform?

    I tried converting to an array and then indexing, but every index I try only gives me the y value. See attached VI for clarification on what I mean.
    Attachments:
    simulate signal.vi ‏49 KB

    You will have to keep track of that yourself.  You are sampling at 360kHz.  This means that each sample is ~2.8us.  You can easily get the time by taking that dt (2.8us) multiplied by the sample index and adding the time at which the first sample was taken.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • I am using an apple TV to show a slide show which is sent via WiFi from a mini computer.  The slide show repeats for a few hours and then stops and shows "no signal".  What's going on- and how do I get the show to cycle indefinitely?

    I am using an apple TV to show a slide show which is sent via WiFi from a mini computer.  The slide show repeats for a few hours and then stops and shows "no signal".  What's going on… and how do I get the show to cycle indefinitely?  (I have set the server to NEVER sleep)

    Welcome to the Apple Community.
    Have you also set the Apple TV not to sleep.

  • I just purchased a wireless connection for my Tivo but the signal strength from my airport express does not allow the tivo to load data. How do I increase the signal strength?

    I just purchased a wireless N network adapter for the TIVO premier and am trying to use my apple airport express to connectand it  is in the another room. I am only receiving one  bar of strength on my network adapter. How can I raise the signal strength of my airport express.

    There are several things that might help, not all of which would be feasible depending on your situation:  (1) Move the TiVo unit and AirPort Express closer together.  (2) Use another AirPort Express to "extend" the network of the first AirPort Express.  Put the second AirPort Express half way between the first AirPort Express and the TiVo unit.  (3) In the general case, Power-Line equipment might allow the TiVo unit to get a good signal, but it's likely that the Ethernet port of your AirPort Express is probably connected to your broadband modem, so that solution wouldn't work for you.  (4) Changing the band or channel that the AirPort Express is using might help.  If the TiVo unit is connection on the 5 GHz band, try one of the three-digit channels, which are allowed to use higher power.

  • Could anyone provide sample of WebDynpro Java TableFilter for Dynamic Table

    Hi
    I have a dynamic table I have given a context node as a data source and it executes a Web Service and populates itself based on the resultset of query this node contains no of columns and rows
    The table changes dynamically everytime the user selects different table type
    When I created a TableFilter I used IWDTableColumn from the current view and looped though the context elements and binded the values of attributes of each context element to this column inside a loop. TableSort works, But I  am not able to get the Filter working for the Dynamic Table , when I click on Filter Button the Filter does not filterand  just sorts.
    Not sure what is wrong but if someone can give some inputs,leads I will highly appreciate if some one has  a  sample of WebDynpro Java TableFilter for Dynamic Table
    Thanks in advance,
    Ragu.

    Hi Ragu,
    Please check the link for table filtering.
    http://wiki.sdn.sap.com/wiki/display/WDJava/GenericTableFilter+Code
    since your dynamic table uses webservice I assume it has fixed context attributes, just put the filter into wdDoModify method everytime you execute/trigger the webservice.
    Regards,

  • 100% Sampling Procedure is not functioning for Prod. Order - Insp.Type:03

    Hi Experts,
    We have a number of material as  SPARE PARTS.
    We are creating Production Order for these Spare Parts.
    Inspection Type 03 is used for it.
    Customization -> Define Default Values for Inspection Type
    Sample  100 % Inspection Check Box is activated
    Skips Allowed Check Box is activated.
    Material Number : 571113211
    QM View
    Inspection Type 03 is assigned
    100 % Inspection Check box is activated (By Customization Setting)
    Skips Allowed Check Box is activated (By Customization Setting)
    Routing is created for this material .
    For the operation 10,  Two MIC are assigned.
    For Each MIC the 100% SAMPLING PROCEDURE IS ASSIGNED
    Production Order is created with Qty. : 80.
    System generates the Inspection Lot.
    The result recording screen  the u201CINSPECT FIELD  SOLLSTPUMF IS 1 ONLY.
    It must be 80.
    I am able to record only one entry.
    As 100 % SAMPLING PROCEDURE IS ASSIGNED TO THE MIC,
    THE LOT SIZE OF THE PRODUCTION ORDER MUST BE THE SAME OF SAMPLING SIZE.
    For the manual Inspection type, I just assigned the sampling procedure to the MIC in Inspection Plan.
    When I created the Inspection lot the Sampling size  with Inspection Lot qty of 80,
    I am able to enter the result for the specified MIC 80 times.
     It is working fine for manual Insp. Type  89.
    With Best Regards,
    Raghu Sharma

    Hi Rajaram,
    Thanks for your prompt reply.
    The issue is solved.
    This is the requirement of Inprocess Inspection.
    I am assigning the MIC in Routing.
    Hence I need the Inspection lot as soon as Production Order is released.
    In Material Master QM View, Inspection Type 03.
    I have deactivated the 100% Inspection Check Box.
    The issue is solved.
    With Best Regards,
    Raghu Sharma

  • I am trying to sample 2khz signal at 8khz,with an accuracy upto 6place of decimal ,using pci 1200 DAQ card.

    how can i externally trigger this operation.i need to sample my signal at 4 points and store it in a excel sheet and the values should be same,as the the 2khz signal and the 8 khz signal both are comming from the same source.

    could u tell me what more details would be required....i will be more than glad to let u know about it.

  • How do i split the digital signal for PIP?

    My tv requires 2 separate A/V inputs to use PIP. How do I split the incoming signal without affecting the signal strength to STB? Everytime I connect a slpitter, the signal looses stregth and I can't HD out of my STB only digital, not HD. Is there a fix or solution for this problem?

    DcmFD wrote:
    My tv requires 2 separate A/V inputs to use PIP. How do I split the incoming signal without affecting the signal strength to STB? Everytime I connect a slpitter, the signal looses stregth and I can't HD out of my STB only digital, not HD. Is there a fix or solution for this problem?
    It is just the nature of beast in that when you add a 2:1 splitter, you will lose 3.5dbm of signal strength (more loss per leg the larger the splitter.. IIRC a 4:1 splitter a is 7 or 7.5 dbm loss.)
    How many splitters do you currently have from the ONT to that STB? Do you have any 4:1 splitters in the path that you could swap with a 3:1 or 2:1 (leaving no open legs)? 
    I will leave it to someone else to recommeand a MOCA amplifier, but that may be you only possible solution. It would have to be a MoCA amplifier, as the STB requires 1150Mhz to receive guide info, etc.. A traditional signal booster typically does not pass frequencies higher that 850-950Mhz. 

  • [svn:osmf:] 12641: Improvements to the DFXP parser, captioning sample, and a bug fix for the TemporalFacet ( duration timers were not taking account of the media being paused).

    Revision: 12641
    Revision: 12641
    Author:   [email protected]
    Date:     2009-12-07 21:10:00 -0800 (Mon, 07 Dec 2009)
    Log Message:
    Improvements to the DFXP parser, captioning sample, and a bug fix for the TemporalFacet (duration timers were not taking account of the media being paused).
    Modified Paths:
        osmf/trunk/apps/samples/plugins/CaptioningSample/src/CaptioningSample.css
        osmf/trunk/framework/MediaFramework/org/osmf/metadata/TemporalFacet.as
        osmf/trunk/plugins/CaptioningPlugin/org/osmf/captioning/parsers/DFXPParser.as

  • Sample CC&B COBOL programs for meter read and Payments upload

    Hello,
    I am new to CC&B and i am a COBOL developer, i am looking for some Meter read upload , payments upload from flat files custom programs written in COBOL for references. Please share these sample programs if you have with you.
    Thanks,
    Pavan Kumar

    Did you find the document Oracle Utilities Customer Care and Billing - Meter Data Management Integration Implementation Guide?
    I searched on eDelivery and Oracle Support, but cannot find the document.

  • I want to sample Sideman Strut from Garageband for an interlude I'm making for an album. How do I do so without getting sued for not clearing a sample/

    I want to sample Sideman Strut from Garageband for an interlude I'm making for an album. How do I do so without getting sued for not clearing a sample? Someone help please!

    I want to sample Sideman Strut from Garageband for an interlude I'm making for an album. How do I do so without getting sued for not clearing a sample? Someone help please!

  • TS1717 when trying to import cd the following message appears "the current encoder settings for bit rate and sample rate are not valid for this file"?

    Trying to import cd when this message appears "the current encoder settings for bit rate and sample rate are not valid for this file".  Any suggestions?

    Thanks so very much.  I chose MP3 and Download and it is working beautifully.  Have a wonderful day and it is so nice of you to get right back to me.  I'm trying to cut a DVD for my grandson's grad party and I got most of the photos and didn't have any music since I lost everything in a clean install.  Could hug you!

  • Tutorial or code sample in creating a .exe for windows

    Hi all,
    Can some kind soul guide me to a tutorial / materials / code sample in creating a .exe (for a java program) to run in windows ?
    My intention is to create a .exe such that when it is clicked, the java program runs.
    thanks a bundle.

    Java in not intended to compile into system executables. IMO, you should not do this, let your application remain cross-platform. You can simply make an executable JAR file, which makes your application run with a double-click on any system which have a JRE installed.
    Anyway, if you really want to help M$ solidify their work, search the forum. It has been asked and answered several times. You have two options:
    1. Bundle a version of JRE with your application, and create an executable file which runs your application on the bundled JRE.
    2. Use a native code compiler like ( http://www.excelsior-usa.com/jet.html ).
    Also, try these:
    http://www.dobysoft.com/products/nativej/
    http://www.ej-technologies.com/products/exe4j/overview.html

Maybe you are looking for

  • IPod Photo no longer recognized by iTunes 10

    I do not know how long ago my iPod Photo stopped being recognized by iTunes. It is certainly an old iPod that I occasionally use to record voice for podcast. Today, I noticed that this iPod Photo no longer shows up in iTunes 10. I connected it to two

  • Exceptionn handling in the constructor

    The exception handling doesn't seem to be working. This constructor is designed to take numbers (double). When I try to enter a char or a string, the exception handling doesn't work. Does anyone know what I'm doing wrong? try{ Circle c = new Circle('

  • Line is breaking while writing code in se38.

    Hi Expert, i m writining code in SE38 as include program while writing code if it reaches above  73 col  line is going to break. how to write code of long char in a  single line ? like below example ***INCLUDE MZKHAN_STATUS_5555O01 . read table itab

  • How can i remove an element from a 2d array index

    Hi, i have a 2d array with 3rows and 4columns all i wanna do i just remove whatever in (2,2) and replace it with lets say "abc" how can i do this, is there a method to remove the text in a specific index in the array ?? thx for any suggestions ty

  • Safari constantly crashes esp after Reset

    Latest Safari on Mavericks.  Safari is constantly crashing, especially after a reset. Any thoughts?