Slow running data for heart rate variability VI Please help my thesis is due in 3days!! :(

Hi there i'm having a great issue with a VI i have created to detect heart rate variabilty from ECG and PPG signals and seeing which one is most accurate with regards to HRV.
I initially recorded 25 minutes worth of data and saved this into a text file. which has 2 columns the 1st being PPG data the 2nd ECG. There are at least 1000000 rows of data 
I am now running this data into a VI which should give me results such a RMSDD PNN50, poincare plots and histograms etc  the trouble i'm having is the VI is initially starts of fast then becomes incredibly slow i left it running for over 10hours and it hardly read any data 
and me not being such a big labview expert knows how to fix this. I would be most grateful if somone could help me find my error as my thesis is due in 3 days and i'm stuck on this last part. I have attached my VI below . please please help me!
Attachments:
CV Report1.vi ‏41 KB

First question: does the code produce the correct result, just slowly?
So you have a million data points and process them one point at a time in a FOR loop, updating several xy graphs and charts and building arrays. Most indicators will get overwritten with each iteration.
You are heavily filtering the data (twice!) and take the derivative (twice=second derivative). You are doing a pt-by-pt peak finding on 50 points with every new point added, meaning that you mostly analyze the same data (differing by only one point with each iteration. Seems inefficient. Wouldn't you detect most peaks 50x?
Since your data is filtered, maybe it would be sufficient to decimate the data before the loop processing. How correlated are adjacent points?
Have you analyzed which part of the code is slowest? What is the current execution time ("slow" is subjective) and what speed would you like to have instead?
Things like the histogram only needs to be done exactly once at the end. It seems pointless to do it over and over, a million times in a row even if the data did not change. Same problem for all the graphs.
You seems to take the difference between adjacent points in the generated array. Again you are repeating the same calculation over and over. Wouldn't it be much more effiicent to keep the array of pairwise differences in the shift register and use a scalar shift register to retain the immediately previous point. Subtract the new point from the previous and add it to the array instead.
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • 'Preparing data for exporting' takes forever (Urgent, please help)

    Hello,
    I'm currrently editing a 1920x800 anamorphic Full HD project on Premiere Pro CS5. The original full HD clips were replaced with AE-comps using Dynamic link for color grading. The project is 15 minutes long and mainly consists of linked AE-comps. The sound is filled with gunshot sound effects, music and original recorded audio. That audio is also linked with Soundbooth for some postwork.
    Here's the problem: when i hit the 'Export' on Premiere pro I get the window, i choose my settings (H.264 10 mbps) and then when I hit the 'Qeue' button it shows the progress bar 'Preparing data for export' and Media Encoder starts up normally. The problem is nothing happens afterwards. The project doesn't get loaded in AME and the progress bar keeps on telling forever that it's 'preparing data for export' Normally this process only takes up a minute or 2 max. How can i fix this?
    Editing rig:
    27 inch imac
    4 gigs ram
    2.53 i5 processor
    ATI 4850
    Please help me with this, my deadline is within 4 hours
    Thank you!

    I have some suggestions you can try.
    1. Can you try exporting directly from inside Premiere, instead of adding to AME from PR?
    - press the Export button inside the Export Settings Dialog, not the Queue button
    2. Can you import the sequence directly into AME?
    - launch AME, File menu\Add Premiere Pro Sequence
    3. Try using a different format other than, H.264.
    4. Try using PR CS5.5. You can download the trial version and use it for 30 days.
    Hope this helps. If not, please re-post with test results.
    Thanks

  • I need help regarding measurement of "time domain parameters of Heart rate variability" using labview.

    I need help regarding measurement of "time domain parameters of Heart rate variability" using labview.
    I am using Labview 8 ... I  need to develop a software to accquire the ECG data (simulated enironment ) and compute the time domain parameters of Heart rate variability like "SDNN, SDANN...etc". Can some 1 plllzzzz help me out.Plzz help me if u can.Thanx in advance.

    Hi Andy,
      Thanx for responding.  The input is from a text file. SDNN, SDANN,etc are  the timedomain parameters of heart rate variability.
     SDNN: the standard deviation of the NN or RR interval  i.e. the square root of variance.
    SDANN:the standard deviation of the averageNN interval calculated over short periods, usually 5 min,which is an estimate of the changes in heart rate due tocycles longer than 5 min
    SDNN index, the meanof the 5-min standard deviation of the NN intervalcalculated over 24 h,
     RMSSD: the square root ofthe mean squared differences of successive NN intervals
    NN50: the number of interval differences of successiveNN intervals greater than 50 ms, and
    pNN50 the proportionderived by dividing NN50 by the total numberof NN intervals.
    The problem is dat I am a fresher to the world of Labview. I have jus recently started working on it. Can u please suggest me some some idea as soon as possible.
      As i said  I have the ECG data in the form of text files..I need to create sort of GUI to calculate the time domain parmeters....I need help urgently. Plzzz help me if u can. If u have and .vi example to calculate the RR interval plzz send it to me ASAP.
    Thanku

  • How do you input/uplo​ad the templates for Heart Rates, EKG, etc. onto an already existing form of LabView?

    I have LabView 9.0 and I remember last year when I got it I had to go through several steps in order to upload the templates for Heart Rate, EKG, and Blood Pressure.  However, since then, several of my computers have been worked on within the district and the templates are no longer on the main page anymore and I have forgotten the steps to completete to get them back.  Can anyone help me??!!

    What main page are you referring to? Are you referring to the Getting Started window that has the "VI from Template..." link that pulls up a dialog to select the type of file to create? That has a tree node that you can navigate and there's a VI -> From Template -> User node. If you place the template in the <labview>/templates folder then they will show up in this node.

  • ITunes 10.6.3 Mac running 10.7.3 not responding I have deleted iTunes and reinstall iTunes and it keeps happening I also scanned the computer for any trojans and any other possible viruses but the pc is running perfect waft do I do ? Please help me ?

    I need help iTunes 10.6.3 Mac running 10.7.3 not responding I have deleted iTunes and reinstall iTunes and it keeps happening I also scanned the computer for any trojans and any other possible viruses but the pc is running perfect waft do I do ? Please help me ?

    Hey thanks for replying.
    Here's what I did:
    First I tried the Winsock reset in the Command prompt. Nothing changed.
    Next, I tried the instructions on http://http://support.apple.com/kb/TS4123. The only other program that came up on the 'Winsock Providers' tab on the program was 2 Windows Live applications, which I can do without. So I deleted all Windows Live Applications.
    I did the Winsock reset in the Command Prompt again and rebooted my comp.
    Unfortunately, nothing has changed. iTunes keeps freezing at various stages of the sync, then shows the candy cane-striped bar with either the words 'Finishing sync' or 'Cancelling sync', before showing the Apple logo.
    Sometimes, iTunes gets to the syncing stage - "Copying # of ####" - where it will trudge through the first, second and third tracks before flashing "Copying 4 of ####" for a split second and I catch "Cancelling sync" briefly before the Apple logo appears.
    Again, I've repeated the steps I mentioned in my previous post. Does ANYONE know when the new version of iTunes is set to be released?! This one is driving me INSANE, to say the least!!

  • I am transmitting data over internet and WiFi ,it's working fine with internet but when I choose WiFi for data transmission data is not being transmitted. What may be the possible issues of data transmission failure over WiFi?  Please help me.

    I am transmitting data over internet and WiFi ,it's working fine with Internet but when I choose WiFi for data transmission data is not being transmitted. What may be the possible issues of data transmission failure over WiFi?     Please help me....
    Thanks in Advance.
    Neeraj@iDev

    After a week's worth of debugging, I found the issue.
    The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
    I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

  • Hey, I wanna download Lion for free, so i need UP-TO-DATE , but it do not works , please help

    Hey, I wanna download Lion for free, so i need UP-TO-DATE , but it do not works , please help

    I think you misunderstood the guy. The up-to-date program isn't working for a lot of people. I'm eligible for the free upgrade but it fails to recognise my serial. From what I've read, this is affecting a lot of people who purchased their computers online. Apple seems to be fixing the issue though, so my advice would be to keep trying. Alternatively, click on the manual verificaton link so they can check your order for you and send the redemption code after they do.

  • Please help 'Translate' These codes from AS2 to AS3 for me

    Hi, i need help 'translating' these codes from Action Script 2 to Action Script 3. Please Do it for me:
    toc    loadText = new LoadVars();
        loadText.load("Curie.txt");
        loadText.onLoad = function(success) {
            if (success) {
                // trace(success);
                Curie.html = true;
                Curie.htmlText = this.Curie;
    Please translate it for me, i need it ASAP thanks
    Kenneth

    Thank you for helping me
    Kenneth
    Date: Thu, 15 Oct 2009 05:49:14 -0600
    From: [email protected]
    To: [email protected]
    Subject: Please help 'Translate' These codes from AS2 to AS3 for me
    Take a look at that:
    http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/migration.html
    There is a LoadVars section on that.
    There is also a tutorial here:
    http://www.republicofcode.com/tutorials/flash/as3externaltext/
    Cheers,
    CaioToOn!
    >

  • I've added a pdf to itunes and i want to change it so its visible with an album (digital booklet). But for some reason, when i click get info, its all greyed out and the little box for read only is unticked. please help - urgent! thanks

    I've added a pdf to itunes and i want to change it so its visible with an album (digital booklet). But for some reason, when i click get info, its all greyed out and the little box for read only is unticked. please help - urgent! thanks

    Hi
    My first thoughts are
    • iMovie ill behaving - Trash the iMovie pref file - use to set things right
    • in reg. to Photos - Did You change iPhoto Photo Library - Then iMovie get's lost as it peeks into iPhoto on start up to see where photos are stored. Set iPhoto back to first Photo Library (when iMovie is not running) then start iMovie.
    Yours Bengt W

  • My apple id is not working for my iPhone activation. Please help me.

    my apple id is not working for my iPhone activation. Please help me.
    i'll just restore it.

    Not working in what way?
    Only the Apple ID that was used to enable "Find My iPhone" on the device can be used to bypass Activation Lock.

  • I have a problem with itunes when I sync the saved music and want to sync my iphone 5 ios 7.0.6 no longer passes the music thing is that just stays on "waiting for sync" and not worry please help are more than 400 songs that do not want to hear who are wi

    I have a problem with itunes when I sync the saved music and want to sync my iphone 5 ios 7.0.6 no longer passes the music thing is that just stays on "waiting for sync" and not worry please help are more than 400 songs that do not want to hear who are wi

    Plawexki wrote:
    ...  do you know if the contacts, photos, messages etc will be wiped?
    Yes... Everything will be Wiped and Replaced with what is currently on Your Mac.
    SYNCING with iTunes
    See here  >  http://support.apple.com/kb/HT1386
    From Here  >  http://www.apple.com/support/iphone/syncing/
    You may find this information of interest...
    Have a read here...
    https://discussions.apple.com/message/18409815?ac_cid=ha
    And See Here...
    How to Use Multiple iDevices with One Computer

  • I ordered the IX500 Scan Snap through Amazon and received the incorrect XI Standard disc in Windows format instead of for my Mac.  I contacted Amazon and they suggested I contact Scan Snap who suggests I contact Adobe for the correct disc.  Please help.

    I ordered the IX500 Scan Snap through Amazon and received the incorrect Adobe Acrobat XI Standard disc in Windows format instead of for my Mac.  I contacted Amazon and they suggested I contact Scan Snap who suggests I contact Adobe for the correct disc.  Please help.

    Fujitsu delivers only Adobe Acrobat for Windows, not Mac.
    http://www.fujitsu.com/global/services/computing/peripheral/scanners/product/ix500/

  • I bought a iPhone and I was able to log into my iCloud with no problem and when I tried to update it it kicked me out and now it's asking me for the old apple user please help what can I do...?

    I bought a iPhone and I was able to log into my iCloud with no problem and when I tried to update it it kicked me out and now it's asking me for the old apple user please help what can I do...?

    Contact the original owner, and ask them to remove the device from their icloud.
    http://support.apple.com/kb/PH13695
    HTH

  • HT202159 An error occurred in the App Store. Try again later(13)..I wait for months!!! please help me! Can't download or update, install and buy!  iMac 2008, OS X Lion 10.7.4 (11E53).

    An error occurred in the App Store. Try again later(13)
    Can't download or update, install and buy!
    I wait for months!!! please help me!
    <Email Edited by Host>

    Disable anti virus software.
    Turn off the Firewall in System Preferences > Security (or Security & Privacy) > Firewall
    If that doesn't help, open the Finder. From the Finder menu bar click Go > Go to Folder
    Type this exactly as you see it here:
    ~/Library/Caches/com.apple.appstore/Cache.db
    Click Go
    Move the Cache.db file to the Trash.
    Now here:
    ~/Library/Preferences
    Click Go
    Move these files from the Preferences folder to the Trash.
    com.apple.appstore.plist
    com.apple.storeagent.pllist
    Now here:
    ~/Library/Cookies
    Click Go
    Move the com.apple.appstore.plist file from the Cookies folder to the Trash.
    Empty the Trash, try the App Store.

  • Why isn't my email verify even if I did it so many  times then it says your email is verify for another account can  someone please help me

    I created an apple ID with iTunes gift card
    Then i signed in
    I tried to download a game and it said that
    My email is not verifyed then I to verify it but
    It said that my email is already verifyed for another email
    Can someone please help me with this problem

    Make sure there is no other account using that email. (Try going to https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/ hitting Reset your password, and then enter the email address.

Maybe you are looking for

  • NO Authorization .. EYE 007 -- Need inputs - still issue is there

    Hi Experts, i am very new to BI Authorization, can anyone help me to solve this issue.. <b>I have gone through the SDN Links,</b> I have a Authorization Issue,<b> “NO Authorization “</b>    Error :  <b>EYE 007 ( Insufficient Authorizations )</b> I ha

  • Goods issue not updating in teh standard SAP structures -reg

    Hi, I have three questions to get your support 1. For repetitive manufacturing GR is updated in the SAP standard structure S225 and GI in S226    Like this in discrete where GR and GI happen with reference to production order ,where the data is    up

  • Pure Digital Point & Shoot videos Not Displaying in iMovie

    Just imported some clips from the 60 minute Pure Digital "Point & Shoot" into iMovie on a brand new iMac. The videos play the sound, but give a white screen on the video. The clips will play from the Point & Shoot software, but not in iMovie. I downl

  • Restore iPod nano

    I'm trying to restore my nano, so that I can sell it. I'm restoring it on a PC, its a Mac formatted iPod nano 2nd gen. It goes fine, but when it's downloading the latest ipod software updates... it sometimes says the network timed out, or when i clic

  • Looking For Actual 'Sync' Tool For Multiple Computers

    When I saw that syncing music via the iPod between computers was a new feature, I was Very Excited. I have music on my home machine and on my work machine. Each machine has about 3000 songs, with roughly 70% overlap on content, and only about 10% pur