Deletion of arrays during specific time intervals...how to get it working?

i am trying to calculate the average peak values in a systolic pressure waveform during a specific time interval. for example, every 5 seconds, i want to average out all the peak values in that interval and after calculating the average, i want to delete the array of peak values. however, what i am finding is that the array is always 0 if i use the delete array in my vi. therefore, the average is always NaN, because the array is empty and there is a divide by 0 error....
what should i do? i have been stuck on it for a long time now, thankyou very much"
Attachments:
help.vi ‏57 KB

It is very difficult to make sense of your diagram, because all the control references are missing, so it is not possible to tell the various data sources apart.
Where is the data coming from? How do you prevent race conditions between the acquisition and analysis parts?
Overall, the diagram is overly complicated and very hard to read. For example clearing the array does not require reading the old array, measuring it's length, followed by "delete from array", followed by writing back to the array. Why don't you just wire an empty array to it? Same result! :-)
You go to tremedous lenght calculating a simple array average, using numerous property reads and indexing arrays inside FOR loops. There is "mean.vi" that does it in one step. (If you only
have base LabVIEW, it might not be available (?), so use "Sum" and divide by n. No loop needed). To find the largest element in an array, use "Array Max & Min" from the array palette, again in one simple step.
I would highly recommend going over some LabVIEW tutorials or look at some of the shipped examples. Make yourself familiar with basic programming concepts such as auto-indexing at loop boundaries. An "index array" wired to the loop counter is never needed.
I suspect that your problem is due to a race condition between acquisition and analysis code, but there is no way to tell unless you include all control references and also the companion VI that gets the raw data from the instrument.
LabVIEW Champion . Do more with less code and in less time .

Similar Messages

  • EA6100 AC1200 Blocking Guest internet access during specific times?

    I see that you can disable guest internet access for specific times but only for specific devices. What I want to do is turn off Guest access for all devices during specific times. 
    I am using this in an environment  where I will have different guests at different times with different devices and can't go in to block each one each time. 

    I think your only option at this time is to manually disable the Guest Wireless network when wanted.
    Please remember to Kudo those that help you.
    Linksys
    Communities Technical Support

  • My computer is a macbook pro 10.5.8 and my iphoto randomly deleted from my computer. Any ideas how to get it back on?

    My computer is a macbook pro 10.5.8 and my iphoto randomly deleted from my computer. Any ideas how to get it back on?

    Reinstall it from the computer's original disks or an iLife 09 or earlier install DVD, and then run all applicable iPhoto updaters.
    (104407)

  • TS1814 I have an iPhone 3GS and was trying to restore it. Now it won't let me activate my phone and my itunes tells me I have no SIM card inserted when I do. Any ideas on how to get it working again?? I'm dying without it!

    I have an iPhone 3GS and was trying to restore it...
    Now it won't let me activate my phone and my itunes tells me I have no SIM card inserted when I do.
    Any ideas on how to get it working again?

    This means that the phone was previously hacked to carrier unlock (unauthorized unlock), and when you restored, the hack was removed and it became re-locked to its original carrier.  It will now accept a SIM card only from that carrier.
    Your only option is to contact the carrier it's locked to and enquire if they will provide authorized unlocking.  Not all carriers will unlock and those that do usually have requirements and qualifications - i.e. you have to be a current or former customer in good standing.

  • Ive just upgraded to Mountain lion, I was using Safari and tried to use iCloud tabs. When I open it up there are no tabs there, anyone have any ideas on how to get it working?

    Ive just upgraded to Mountain lion, I was using Safari and tried to use iCloud tabs. When I open it up there are no tabs there, anyone have any ideas on how to get it working?

    Can you check system update? I think I did a system Update 1st, a day before installing OSX Lion and there is a Safari update. If not try logging in iCloud.

  • I installed Photoshop Elements 12 and its icon is on desktop, but when I launch it, I get error messages.  How to get it working?

    I installed Photoshop Elements 12 and its icon is on desktop, but when I launch it, I get error messages.
    How to get it working?

    My guess is that you won't be able to do much if you threw away the serial number before using it.  The serial number will not have been externally visible on the box though... doing that would make it available for use by anyone who sees the box in any store.
    To locate the serial number:
    http://helpx.adobe.com/x-productkb/global/find-serial-number.html
    If you remain unable to locate the serial number you might need to head back to wherever you purchased the product to confirm whether or not you might have thrown out the serial number or if it could even possibly have never been provided.
    Beyond that you need to resolve serial number issues with ASdobe Support directly.  Here is a link for chat:
    Serial number and activation chat support (non-CC)
    http://helpx.adobe.com/x-productkb/global/service1.html ( http://adobe.ly/1aYjbSC )

  • Hi My Iphone 4 keeps on turning off with no reason and there is no way of turning it on. any advice of how to get it working?

    Hi My Iphone 4 keeps on turning off with no reason and there is no way of turning it on. any advice of how to get it working?

    I guess but that was what I was on earlier but it wasn't of much help.
    I need to chat with an apple person but don't know how if I don't have a phone accessible.
    Is there a way to connect thru a laptop or something?

  • How to get a work roster into ical

    Hi there
    Does anyone know how to get a work roster into ical so I can then sync it with my iphone and view my roster on my phone?
    Any help would be greatly appreciated.
    All the best
    Enigma

    Depends on the format of the "work roster" - if it's a calendar file, you can import it with File menu > Import. If it's some other file type, you may not be able to import it and need to enter the events manually instead.
    You might try the iCal forum.

  • How to get QTP11 work with FF17. Unable to get Quicktest Proffessional11 plugin

    How to get QTP11 work with FF17. I have already installed Patch_090 and 0122.
    Unable to get Quicktest Proffessional11 plugin even after creating temp directory, into FF “extensions” directory.
    Please help

    If I may ask is there a recommended version of Firefox for the extension? [http://www.qatutorial.com/files/QTP_Install_Guide.pdf] is all I could find on how to install the software, is this the right add on?

  • Power management reportings - report how many computer are on during day time and how many during night time

    Hi All
    I'm just wondering if anybody could help me out. I'm quite new to configuration manager, and I've
    Is it possible for a specific periode to tell how many computer are runing during the day and how many are on during night time.
    I started working with power management reportings but i can't find a way to exclude non working days.
    Has anybody worked on this already? Is there another way or tool for this need?
    Thank you all in advance for helping.

    Hi,
    The following articles could help you to create a custom report.
    Creating Custom Reports by Using SQL Server Views in System Center 2012 Configuration Manager
    Create Custom Reports for ConfigMgr 2012 with Report Builder
    Note: Microsoft provides third-party contact
    information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    Best Regards,
    Joyce

  • I am trying to delete a large number of songs from my Itunes library without having to delete them one at a time.  How do I do that?

    I am trying to delete a large number of songs from my itunes library without having to do it one at a time.  How can I do this.  All of my songs have check marks by them.  Help!

    Then I suspect you do not have iTunes Match enabled. Using that "delete all" command in the Settings does not remove the music from the cloud, nor does it disable iTunes Match. With iTunes Match enabled you will still see all the music.
    So go to Settings > iTunes and App Store and make sure iTunes Match is set to ON (green).

  • How do I set iCal alerts to a specific time the previous day, regardless of their specific time (so I can get an overview of tomorrow)?

    I think it would be incredibly useful to be able to get at, say, 10pm each evening, a pop up overview of the next day's events. I'm hoping for a tick box somewhere to set my default reminder as a specific time on the previous day, in the same way that you can do '15 minutes before'. Currently you can set reminders for a specific time and date, but, entering this for every item – especially if you want them to coincide – is more than slightly tedious. Furthermore, I input a lot of my Calender events on my iPhone (they sync via iCloud), which has no such functionality, rendering this essentially defunct.
    Any ideas?

    apple don't have a version of windows
    only microsoft have windows
    as how one automatate windows to send mails at a time
    googled it for you
    http://www.howtogeek.com/125045/how-to-easily-send-emails-from-the-windows-task- scheduler/
    more options in the search
    https://www.google.dk/search?client=opera&q=automatically+send+email+in+windows& sourceid=opera&ie=UTF-8&oe=UTF-8

  • Servlet that executes at specific time intervals ?

    Hi
    I need to have my Servlet that is loaded onto the webserver, run at specific time intrevals, say every 10 minutes.
    How do I do that ?
    Thanx in advance
    Aragorn

    I have trouble with this concept.
    HTTP is a request/response protocol. Usually a servlet runs when it receives an HTTP request and sends back an HTTP response.
    If you want the servlet to wake up and do something at a fixed interval, it's not responding to an HTTP request anymore. What does it do with the HTTP response that's generated? What happens if it receives an HTTP request from an external client after waking up and starting the timed process? Have you made sure that your servlet is thread-safe in that case?
    This feels less like a servlet and more like something else (e.g., an RMI service, EJB, or multi-threaded server). It sounds like you're using the servlet engine/container as a convenient service container, but I don't think servlets were meant to be used that way.
    I'll be happy to take instruction on this if I'm incorrect. I just thought I'd disagree to see what the response might be. Thanks - MOD

  • Allow RDS Logon during Specific time of day

    Is there a way that we restrict Logon to our Terminal Server so that users can only Logon between specific times...?
    We are using windows Server 2008 R2
    for example between 8AM and 6PM

    You could set up a scheduled task to enable drain mode on the server which will prevent new logons (but not reconnections), This task woud set HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\TSServerDrainMode to 2.  No new sessions
    could be started but disconnected users could reconnect.  Admins ca still connect by running
    mstsc /admin.   Then you would need another scheduled task to disable drain mode, by settinge the above key back to 0.
    HTH,
    Jeremy

  • I upgraded my mac book pro to sox mountain lion to v10.8 and have subsequently lost my email edit button which allowed me to mark lots of emails for me delete en masse. I now have to delete each one individually, can someone advise how to get it back pls.

    I Recently updated my mac book pro to sox mountain lion v10.8 and appear to have lost my email edit button which allowed me mark multiple emails then delete those marked en masse. I now have to delete individually. Can any one advise how to correct this please. Thanks.

    MacBook Pro
    https://discussions.apple.com/community/notebooks/macbook_pro 
    https://discussions.apple.com/community/mac_os?view=discussions
    http://www.apple.com/support/macbookpro

Maybe you are looking for

  • Running Win 7; FF DL process stops at DL of "stub". Help.

    When I try to download and install FF on my Windows 7 machine, the process stops after [apparently] successful download of Setup Stub 29.0.1. I have tried repeatedly to do this, always with the same results. To proceed would be, by definition, insani

  • Clips are out of order when drug to Timeline

    I was working with final cut pro, showing a friend how to use it and ran into a problem that has never happened when I've used it on my machine. We did log and capture, and captured the video. then I went Mark-> DV Start/Stop Detect. From there I sel

  • Donwngrade Java 2 for version 1.4

    Dear Sirs, I need run an application 3270 Mainframe emulator, and it run only with Java 2 version 1.4. Not later. My Mac OS X 10.4.10 has a later version, is it possible downgrade for 1.4 or emulate 1.4 in newer version to run 3270 emulator? Thanks,

  • Bapi_goodsmvt_create and PMCO data

    Hi, We have this report which creates goodsmovements batchwise via "BAPI_GOODSMVT_CREATE". All works well, for each entry in the worklist, a document is created for the given material and quantity. The only problem is the costs of this material are n

  • Compaq Presario cq50, power.

    A while ago, I had a problem with my laptop, caused by several updates. Suddenly, it stopped working, (battery was ruined), and I thought the power cord was the problem. So I bought a new one (according to the specifications of the previous one). And