Decimation - aaaarrrggg​hhhh, the horror, the horror!!!

Decimation. It's all supposed to make sense; easy: you input a number of samples, then you decimate, that is you cut down the number of samples by the decimation factor. A good explanation is given at http://digital.ni.com/public.nsf/allkb/5776744A994​6416986256D170079700D. Yes, I am using the express vi, and this after unsuccessfully using the Decimate(continuous).vi
Here is my story:
I am gathering data from multiple sensors. If I may, it is the classic scenario when using daqmx you get waveforms from various sensors. Problem is I have quite a few channels and I can only use one sampling rate. So I have to use the sampling rate for accelerometers for thermocouples too. However, the data file becomes too big and I have no need to sample the temperature at 5kHz for example. Therefore I decided to decimate the temperature waveform. First I tried using Decimate(continuous).vi but I started to see mismatches in time such as: if I was using 'averaging' the waveforms would be nicely alligned time wise; if I was not using 'averaging' then the time I was getting for the temperature was longer. Long story short, I tried using the express vi "sample compression". This one seemed to work fine until I noticed spikes at the end of recordings. They go either up or down with few orders of magnitude when I stop the daq using the reference trigger. It does not happen all the time; it is rather random and does not seem to be influenced by the sampling rate. This did not happen until I started using the sample compression express vi.
I attached some snapshots of the diagram in an effort to shed some light on my case. Did any of you had this happen? Do you have any suggestions as to why this my happen and how to get rid of this?
Thank you.
Attachments:
Decimation2 (sample compression).zip ‏971 KB

OK. I am attaching the first three versions. I am currently using version 3 (my design which does not make use of Decimate(continuous) or Sample compression).
My version would allow me to use a decimating factor that is not an exact sub-multiple of the samples per channel without affecting the time for the output waveform(s); the decimating factor can actually be bigger than the samples per channel that are read in one "rotation" or the while loop. The sub vi I created is also intended to be able read the very last samples in case my decimating factor is not a sub-multiple of the samples per channel; it takes thos samples and processes them then puts the last result at a dt 'distance' from the last sample.
Questions:
Is my version 3 OK?
Can the sample compression do the same thing as what my version 3 does? If yes, how should it be configured?
Thank you.
Attachments:
Decimate waveforms V1.zip ‏44 KB
Decimate waveforms V2.zip ‏80 KB
Decimate waveform V3.zip ‏82 KB

Similar Messages

  • I downloaded the new American Horror Story episode and when I went to play it after it downloaded its glitchy the entire thing and the sound is cracking, why?

    I downloaded the new American Horror Story episode and when I went to play it after it downloaded its glitchy the entire thing and the sound is cracking, why?

    Hello Smorton15,
    It sounds like you purchased a tv show episode and the playback is choppy and bad. I would next try deleteing the episode, and re downloading it from the iTunes store, then see how that plays back.
    iTunes 11 for Windows: Download previous purchases from the iTunes Store
    http://support.apple.com/kb/PH12491
    Click iTunes Store near the top of the iTunes window.
    Click the Purchased link at the right of the iTunes Store homepage (below Quick Links).
    In the page that appears, select a category.iTunes shows you which of your purchases are available for download. You can view all of your past purchases, or just the ones not currently in your iTunes library. Items already in your library aren’t available for download.If you select Music, you can view your purchases by song, artist, or album. If you’re viewing by album, click an album to see which songs on it are available for downloading.To search for an item, type its name or a keyword in the search field, and then press the Return key to view your search results.
    To download an item, click its Download button .
    Thank you for using Apple Support Communities.
    Regards,
    Sterling

  • Workflow : How we can have decimal instead of comma in the trigerred mail

    Dear Experts ,
    How to resolve comma in place of decimal while Triggered mail from workflow.
    Whenever a mail is trigerred from workflow system a comma is coming for the decimal digit in the currency field . How we can have decimal instead of comma in the trigerred mail.
    Would be grateful for your comments .
    Thanks,
    Sachin

    There  are different approaches.
    You can try this approach.
    Example: amount filed
    write t_menge to t_menge right-justified.
              if t_menge+13(1) = ','.
                t_menge+13(1) = '.'.
              endif.
    Regards,
    SaiRam

  • Is the Decimal Notation Setting based on the country of the vendor?

    I would like to ask help with regards to an error which i encountered when I Print Preview a Purchase Order Document via Transaction ME23N.
    Within the Print Program, the Decimal Point setting is normal ( for example 2.90, 192.97, 1,903.00 , etc.), but when the value is passed on to the SAPscript Form the Decimal Point setting is incorrect ( for example 2,90 , 192,97 , 1.903,00). This error is only observed on a single Vendor being used in the creation of the PO.
    I would like to confirm if indeed the settings for Decimal Notation is based on the settings being used in the specific country of the vendor.
    I hope anyone can help me out with this one. Reward points up for grabs.

    Hi
    In my case in sapscript while printing total for JPY is for three decimals but after calculating it used to take two decimals & leave one decimal to left ex as below.
    FOB : 100.000
    Freight: 10.00
    Total  : 1000.00 (In figures One Hundered & Ten Only).
    here in sapscript program this decimal notation was given for two hence it was going to left side we correct it to three decimal notation.
    kindly check with script & you can fix it there.
    Regards
    Rang

  • All focused for the movie The Amazing Spider-Man 2

    All focused for the movie The Amazing Spider-Man 2
    https://drive.google.com/forms/d/1yLXR8rBm1cHDSTRBL9EMbXGxMyjjYxfU804QLRPMIIw/viewform
    http://theamazingspiderman2now.wordpress.com/
    http://hdmedia.uservoice.com/knowledgebase/articles/352801-watch-the-amazing-spider-man-2-online-all-resource
    studios, at one point having James Cameron to direct, before being secured by Sony Pictures Entertainment. Sony hired comic

    Dolby Laboratories is potables the silver screen world with its new Dolby Atmos technology, the simply object-based cinema sound platform available in these times. Dolby Atmos unleashes the capability of sound in storytelling by outfitting sound experts
    the prominent exception to easily designation or feat medicine sounds anywhere in the movie theatre, not just where there happen to be speakers. The counting is what moviegoers venture avowed as the most engrossing and lifelike cinema sound experience ever.
    Introduced in April 2012, Dolby Atmos has been embraced by all the greatest Hollywood studios, six Doctrine Award® winning directors, and 12 Academy Award® winning sound mixers, among others. More than 450 Dolby Atmos screens have been installed or committed
    to in 40 countries with more than 150 exhibitors. More than 100 films from 10 selection countries—representing a adequate range of genres from order thrillers and spry fa to spirits and horror—have been or are scheduled to be released with Dolby Atmos sound
    since the first film debuted in June 2012.
    Dolby Atmos has customary detailed skill rewards from both the Hollywood Post Alliance and the Cinema Audio Federation. As the inventors of the only object-based audio scheme old in the cinema today, Dolby is efficacious in all respects with the Society of
    Manner Picture and Compel Engineers in driving adoption of standards for object-based audio.

  • When I open Pages from the dock, the page comes up but immediately hangs up with the

    When I open Pages from the Dock,  the page comes up on the screen but immediately hangs up with the rainbow circle spinning.  I finally have to force quite to make it go away.  It does not ask me to choose a template.  This is sporadic, sometimes working, sometimes not.  What is going on?

    Helo,
    Did you try to delete Pages' preferences file(s) in the folder your-user-name/Library/Preferences ?
    There are one or more (depends on your OS X version) file like "com.apple.iWork.Pages.plist"
    You can also repair permissions with Disk Utility in the folder Applications/Utilities.
    Choose the hard drive were Pages is and click the button "Repair permissions".
    Or you can re-install Pages.
    Hope this will help.

  • I am trying to download iTunes on my new desktop computer (Windows 7, 64 bit).  It starts installing, and then stops with the message- "The System Administrator has set policies to prevent this installation."  I am the sole user- please help.

    I am trying to download iTunes on my new desktop computer (Windows 7, 64 bit).  It starts installing, and then stops with the message- "The System Administrator has set policies to prevent this installation." This is a stand alone computer and I am the sole user.   Please help.

    This is a Microsoft Windows Issue.
    From a MS Support Engineer:
    "Hi,
    ·        Is the computer on a domain?
    ·        Is the issue isolated to only this software or you get the same error message with other software’s as well?
    Try the steps below and check if it helps.
    Step 1:
    Run the software setup file as an administrator and check if it helps.
    a. Right click on the setup file of the software that you are trying to install.
    b. Select “Run as administrator”.
    Step 2:
    Temporarily disable the antivirus software running on the computer and check if you are able to install the software.
    Disable antivirus software
    Warning:
    Antivirus software can help protect your computer against viruses and other security threats. In most cases, you shouldn't disable your antivirus software. If you have to temporarily disable it to install other software, you should re-enable it as soon as you're done. If you're connected to the Internet or a network while your antivirus software is disabled, your computer is vulnerable to attacks.
    Step 3:
    a. Click Start, type "Local Security Policy" (without quotes) and press enter.
    b. Click on Software Restriction Policies.
    c. In the right pane, double click on the "enforcement".
    d. Select “All users except local administrators”.
    e. Click Ok and restart the computer and check if the issue is fixed."

  • How do I wipe everything off, and go back to the way the phone was set when I got it?

    How do I wipe everything off, and go back to the way the phone was set when I got it? I am thinking that might be the only way to fix my wifi issue. Thanks!

    Hello, if you havent tried the doesktop manager option, you can do it from the device aswell... Just make sure you save all your contacts to your SIM.
    you can go into your Security Options (in Options menu) and select wipe handheld.
    1). Please thank those who help you by clicking the beside the 'Reply' button.
    2). If your issue has been solved, please resolve it by marking "Accept as Solution" on the correct post!
    3). Remember to have fun! We are all in this together!
    4). Follow me on

  • Error in Starting the service.The Service Schedule doesnot Exist.

    when i install the Oracle 8i on Windows 2003 then
    it installed successfully and import and export data successfully wothout any Problem
    But after that when i restart the Server then
    it ask for the User name and Password BUT when i entered the User Name and Password it show's that Error
    "Error in Starting the service.
    The Service Schedule doesnot Exist."
    so please can you solve the problem ?
    My mail id is [email protected]
    Thanking you
    Vikas garg

    Hi
    i have got the answer for this question, i updated the registry with the correct file path, and then closed the registry, the services.msc file is automatically updated with the correct path
    and then started the CSService, then went to the OEM setup i clicked Retry buton, then it went through.
    Thanks to all the viewers.

  • When i try to send email from my ipad i get the message The recipient "£)()&&£)" was rejected by the server. This has only just started to happen and I don't know why. Please help. I have tried lots of things now and cannot solve it.

    When i try to send email from my ipad i get the message The recipient "£)()&&£)" was rejected by the server. This has only just started to happen and I don't know why. Please can someone help. I have tried lots of things now and cannot solve it.

    "Your email account" means to tap on the name of your email account. Whatever it is listed as in the settings.
    In my mail settings, one of my email accounts is a Comcast account. I tap on the Comcast name and it brings up this window.
    Then I tap on the arrow under the Outgoing mail server smtp setting to get to the next window.
    In the resulting window, I then tap on the arrow next to the smtp server under the Primary Server setting.
    That brings up this window in which I check to make sure that my user name and password have been entered correctly. If those items are missing, enter them in the appropriate fields and then tap done.

  • I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit.

    I am using the Order Analysis Toolkit and want to get more information about the compensation for "Reference Signal Processing", which is scarce in the manuals, the website and the examples installed with the toolkit.
    In particular, I am analyzing the example "Even Angle Reference Signal Processing (Digital Tacho, DAQmx).vi", whose documentation I am reproducing in the following:
    <B>DESCRIPTIONS</B>:
    This VI demonstrates how to extract even angle reference signals and remove the slow-roll errors. It uses DAQmx VIs to acquire sound or vibration signals and a digital tachometer signal. This VI includes a two-step process: acquire data at low rotational speed to extract even angle reference; use the even angle reference to remove the errors in the vibration signal acquired at normal operation.
    <B>INSTRUCTIONS</B>:
    1. Run the VI.
    2. On the <B>DAQ Configurations</B> tab, specify the <B>sample rate</B>, <B>samples per channel</B>, device and channel configurations, and tachometer channel information.
    <B>NOTE</B>: You need to use DSA PXI-447x/PXI-446x and PXI TIO device in a PXI chassis to run this example. The DSA device must be in slot 2 of the PXI chassis.
    3. Switch to <B>Extract Even Angle Reference</B> tab. Specify the <B>number of samples to acquire</B> and the <B># of revs in reference</B> which determines the number of samples in even angle reference. Click <B>Start</B> to take a one-shot data acquisition of the vibration and tachometer signals. After the acquisition, you can see the extracted even angle references in <B>Even Angle Reference</B>.
    4. Switch to the <B>Remove Slow-roll Errors</B> tab. Click <B>Start</B> to acquire data continuously and view the compensate results. Click <B>Stop</B> in this tab to stop the acquisition.
    <B>ORDER ANALYSIS VIs USED IN THIS EXAMPLE</B>:
    1. SVL Scale Voltage to EU.vi
    2. OAT Digital Tacho Process.vi
    3. OAT Get Even Angle Reference.vi
    4. OAT Convert to Even Angle Signal.vi
    5. OAT Compensate Even Angle Signal.vi
    My question is: How is the synchronization produced at the time of the compensation ? How is it possible to eliminate the errors in a synchronized fashion with respect to the surface of the shaft bearing in mind that I am acquired data at a low rotation speed in order to get the "even angle reference" and then I use it to remove the errors in the vibration signal acquired at normal operation. In this application both operations are made in different acquisitions, therefore the reference of the correction signal is lost. Is it simply compensated without synchronizing ?
    Our application is based on FPGA and we need to clarity those aspects before implementing the procedure.
    Solved!
    Go to Solution.

    Hi CracKatoA.
    Take a look at the link bellow:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=255126&requireLogin=False
    Regards,
    Filipe Silva

  • My Adobe has stopped allowing me to move library books from my PC to my KOBO (both show authorized on the ADE. the message reads : CE_COPY_NOT_ALLOWED - No permission to copy book.  It used to work. Any easy fixed for me?(I already tried uninstall and re-

    My Adobe has stopped allowing me to move library books from my PC to my KOBO (both show authorized on the ADE. the message reads : CE_COPY_NOT_ALLOWED - No permission to copy book.  It used to work. Any easy fixed for me?(I already tried uninstall and re-install)

    Welcome to the Club! Got the same Problem and had a really hard time reaching the Customer Support because they were down due to maitenance! Just wrote to their experts chat and hope to get an answer in this life!
    I tried to authorize my Computer and eBookreader with a new Adobe-ID, but it says I've done used this ID too often, even though it was brandnew! Can't copy my just-purchased eBook because "Copying is not allowed".
    I hold my thumbs for you that Adobe solves this Problem fast enough. Other ways I'll sell my eBookreader and buy the Kindle-Reader from Amazon and say GOOD BYE to Adobe!

  • I'm not techinal so please bear with me. I don't have the bar that allows me to type in a website. I did have a few minutes ago. When I make the page full screen and move my cursor to the top of the page, the bar drops down and I can use it.  help

    I'm not techinal so please bear with me. I don't have the bar that allows me to type in a website. I did have a few minutes ago. When I make the page full screen and move my cursor to the top of the page, the bar drops down and I can use it. I've tried restarting my computer, didn't work. Help!

    Well I figured it out, right click the arrow that makes the screen bigger and unclick the Hide Toolbar. I knew it couldn't be that hard.

  • How do i run an external monitor with my macbook and change settings so that when i close the lid the signal to the monitor is not lost and i can continue using the mac with a mouse and a wireless keyboard?

    How do i run an external monitor with my macbook and change settings so that when i close the lid the signal to the monitor is not lost and i can continue using the mac with a mouse and a wireless keyboard?

    No, nothing will prevent the computer from going to sleep when you close its display except third-party hacks that are designed to do exactly that. I strongly advise against using any of those, as they may interfere with successful entry into clamshell mode (and they carry other downside risks as well). Just wait until the computer is asleep (with its sleep light pulsing), then press any key on the keyboard. It sounds as though your setup is working as it's designed to do.

  • Since I installed Lion on my macbook the LED light does not pulse when I close the screen - the sleep function does not work.

    Since I installed Lion on my macbook the LED light does not pulse when I close the screen - the sleep function does not work neither when chosen after pressing the button nor chosen in the apple menu..

    I have had the same problem but on another forum it was suggested that disabling internet sharing would solve this. This fix seems to work on my machine - why it works I do not understand

Maybe you are looking for