I have a loop made to read temperature 30 times and averages it down to one value which is then displayed on the screen.

My problem is that this loop is not permitting me to abort instantly because I have to wait until the for loop is done. I am using event structure which is allowing me to interrupt at any time and jump to something else in the software but nothing stops the for loop and I really need to calculate temperature by taking at least 20-30 points. I have been moving this part of the software all over the software and if I solve one problem wherever I put this vi it slows down that part of the software where I put it. I need to read te temp. all the time whle software is running.
Do you have any ideas how to speed up this VI so that it doesn't take t
his long to execute or how to build this software so that read temp.vi doesn't affect software. Thanks for your time. Here is the read temp. vi
Attachments:
Read_temperature.vi ‏50 KB

Hello,
Here is a simple VI (saved in LabVIEW 7.0) that uses a control reference to pass a front panel control's value into a subVI. You can run the VI, then press the "Start SubVI" button, which will cause the subVI to start running. It waits until you press the "Abort SubVI" button, at which point the "Value" property of the boolean inside the subVI is read, and terminates the loop. I am then resetting the boolean value after the subVI returns a value (this is because you cannot use the Value property on latch booleans). This should be enough to get you started.
Keep in mind that you cannot perform this operation inside an event case of an event structure, since the UI is locked while the event structure is processing the event...t
hus, you wouldn't even be able to press the abort button. In your case, you should probably have a loop handling the UI events, and a separate loop handing the data acquisition.
For more examples on using Control References, check out examples\general\cntrlref.llb. There is also extensive help on them in the LabVIEW On-line Help.
Good luck,
-D
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman
Attachments:
ctrlref.llb ‏29 KB

Similar Messages

  • I have only had my iphone for about six weeks and today it will not turn on, nothing happened to it but the screen is black.

    I have only had my iphone for about six weeks, and today it just died. Nothing happened to it, but I went to call someone and the screen was black, now it won't turn on or charge!????

    Standard troubleshooting...
    Try a reset by pressing the home and sleep buttons until you see the Apple logo, ignoring the slider. Takes about 5-15 secs of button holding and you won't lose any data or settings.
    If still a problem restore with your backup.
    If still a problem restore as new, i.e. without your backup. See how it runs with nothing synced to it.
    If still a problem, it's likely a hardware issue.

  • I HATE my new MACBOOK PRO, it will not let me open any PDF files and I downloaded the ADOBE READER three freaking times and it keeps saying that all the files are corrupt. I would rather have my 2008 Dell at this point. what is wrong with this thing

    I HATE my new MACBOOK PRO, it will not let me open any PDF files and I downloaded the ADOBE READER three freaking times and it keeps saying that all the files are corrupt or damaged. I would rather have my 2008 Dell at this point. what is wrong with this thing

    Perhaps the PDF files are corrupted.
    Hit the command key and spacebar, a blue Spotlight in the upper right hand corner appears, now type Preview and press return on the Preview program.
    Now you can try opening the PDF's from the file menu and see what's going on.
    If they are corrupted, perhaps they are trojans from your Windows PC or gotten from a bad location online.
    Download the free ClamXav and run a scan on the possibly infected folder.

  • I plugged in my iphone 4 for the first time to my computer to back everything up. but when i got to the screen to click on "new phone" or restore to the "same phone" i clicked "same phone by accident. now i have all of my old stuff from my G3s on my new

    i plugged in my iphone 4 for the first time to my computer to back everything up. but when i got to the screen to click on "new phone" or restore to the "same phone" i clicked "same phone by accident. now i have all of my old information from my G3s on my new iphone 4. how can i reverse this? please help.

    Hi, raneth's boyfriend!
    Unfortunately, iTunes was told to restore all data from an old backup onto the new phone, and that cannot be undone.
    However, prior to this, iTunes 10 would have also asked to make a backup of the phone before doing the restore.  If the user elects to say "yes" to perform the backup, then iTunes would have backed up the phone before erasing it.
    Hopefully, that backup will still be available in iTunes, and if so, it would be backed up under the new phone's name prior to it being erased and restored (if the name of the new phone is different to the name of the old phone).
    To check if iTunes has a backup of the phone prior to the restore, look in the Devices category in iTunes Preferences.  All backups made are timestamped and are identified with the iPhone's name at the time of the backup.  Look for:
    • a backup of the phone using the new phone's name prior to the erase and restore, or
    • a backup with the same date and time as that when the phone was erased and restored (not the date and time AFTER when the phone was erased and restored!).  This may be the case if the new and old phones have the same name.
    If a backup is available, you can erase and restore again using that backup. The phone will be restored with what would hopefully be the original image of the new phone.
    If no backup was made prior to erasing and restoring the phone initially, then there is no way to
    undo it, meaning your phone's original data has been lost.
    --tonza

  • I accidentally changed a setting on my ipod touch and now it won't change back. I have had my ipod for more than two years and i dont know what to do. If i go to the apple store, would they fix it, or would i need to get a new one?

    I accidentally changed a setting on my ipod touch and now it won't change back. I have had my ipod for more than two years and i dont know what to do. If i go to the apple store, would they fix it, or would i need to get a new one? If it could be fixed, how much would it cost?

    If it is still under warranty you can call the 800 number to apple and enter the serial number and it will tell you if it is under warranty or not if not its like $30 basically for them to help or something like that it said today when i called...
    Or take it to a genius bar if you have one near?
    Or further explain what setting you are needing fixed back and im sure someone here can help you for free!

  • When i go to the app store to update the one app that needs to be updated, the screen is blank.  It used to list all the apps that need updating and have a button called update all.  Now nothing.  Just a blank screen.

    when i go to the app store to update the one app that needs to be updated, the screen is blank.  It used to list all the apps that need updating and have a button called update all.  Now nothing.  Just a blank screen.  How can I fix this?

    There's been a problem with this all day.  Seems to be a server problem  -  wait a day and try again, or use itunes on the computer to update, that works.

  • HT6058 Hello I have a iPhone 4 that's never been updated and I see there are three available, Should I just go with the most recent update ?

    Hello I have a iPhone 4 that's never been updated and I see there are three available, Should I just go with the most recent update ?

    You don't get a choice. If you decide to update, your phone will be updated to the latest iOS version available for your phone. For you, that's iOS 7.0.4.
    Make sure you follow the directions here:
    http://support.apple.com/kb/ht4972
    The update to iOS 5.0 & higher is an erase/restore deal.

  • I have an iphone5 that is eating up data time and I can't figure out why? Any thoughts?

    I have an iphone5 that is eating up data time and I can't figure out why? Any thoughts? I have closed everyting I can, even took the phone to Verizon and they are not sure what is going on.   My company email is active and pushes to the phone....I use Safari regularly to look up stuff for personal and work use.  I am on Facebook but have turned it off in notifications.  Four phones and a hotspot on the account....we have 6g and have never come close to it, until lately and it's my phone that's eating up the gigs.  So what the heck is going on?

    Go to Settings/Cellular and you can see how much data each app is using. You can Reset Statistics, then track all of the apps data usage.

  • HT3775 I just upgraded my ipad to 6.0.  I can no longer expand my audio files so that I can move forwards and backwards.  I used to get a diagonal arrow to enlarge the screen and then have a bar that I can move to navigate. Can you help?

    I just upgraded my ipad to 6.0.  I can no longer expand my audio files so that I can move forwards and backwards.  I used to get a diagonal arrow to enlarge the screen and then have a bar that I can move to navigate. Can you help?

    Hi James,
    I am listening to embedded training files on the Quick Time player (I think). They cannot be copied to protect the information.  You only have the option of listening.   I used to be able to click on the Q in the audio strip and it would provide a diagonal arrow and this would allow me to expand the bar to a full screen. I then had the bar which would allow me to navigate in case I wanted to listen again or in case I wanted to move forward.  After my upgrade, I can no longer expand the strip to a full screen with the adjuster.  Now I have not chance to take a break in listening to these audios and most of them are at least an hour long.  Thanks for your help.

  • I have Windows computers.  My email is Outlook Express and Windows Live Mail.  What email service does Apple use on the MacBook Pro?

    I have Windows computers.  My email is Outlook Express and Windows Live Mail.  What email service does Apple use on the MacBook Pro?

    Hi..
    The native Mac Mail app. Comes pre installed on all Macs.
    http://www.apple.com/support/mail/

  • I run a Mac Mini 10.6.1 and a G5 10.4.11 - they share a screen. Yesterday the contrast on the Mac Mini went mad. Very very heavy contrast and now its impossible to retouch with Photoshop as I cannon judge the colours accuratly. The G5 is fine. John UK

    I run a Mac Mini 10.6.1 and a G5 10.4.11 - they share a screen. Yesterday the contrast on the Mac Mini went mad. Very very heavy contrast and now its impossible to retouch with Photoshop as I cannot judge the colours accuratly. The G5 is fine. I keep the screen image I get on the G5 good and accurate with Huey. I believe I cannot use this with the "Intel Inside" Mac Mini. Does anyone know how I can restore the great screen image I got up to yesterday on my Mac Mini? Thanks. John Suffolk England.

    Likely caused by one of the following: a bad cable, maybe a bad connection or (my guess) bad graphics hardware.
    To rule out the software, see if booting from an installer DVD shows better color.
    Swap the cables and check the connections.
    Then call your hardware support provider.

  • Have just loaded Safari 5.1.  4 times.  It presents a blank page but will not load anything from the web.

    Have just loaded Safari 5.1.  4 times.  It presents a blank page but will not load anything from the web.   What do I have to do to get it to work.   It worked fine until the update was offered.

    Funny thing, even this page was loaded and then quickly turned blank for me (I'm writing from Chrome).
    Hope they fix it soon!

  • If I have a lot of progress in a game on my iPod, but it dies and I get a new one, is there a way to transfer the data?

    If I have a lot of progress in a game on my iPod, but it dies and I get a new one, is there a way to transfer the data? I've been playing a cool game for a while, but I think it might be time to get a new iPod. Is there a way to login with the same gamecenter account, and it will all be on the new iPod? Thx.

    App data is not backed up through Game Center, but rather through iCloud. If you have an iCloud backup and you get a new iPod, after your games redownload from the Internet all data within the apps should be preserved.

  • Why do I have to re-enter my wireless password every time My wireless goes down? Not required on my iphone.

    Why do I have to re-enter my wireless password every time my wireless go down. This is not required with my iPhone.

    Hello, try this...
    Make a New Location, Using network locations in Mac OS X ...
    http://support.apple.com/kb/HT2712
    10.5.x/10.6.x/10.7.x instructions...
    System Preferences>Network, top of window>Locations>Edit Locations, little plus icon, give it a name.
    System Preferences>Network, click on the little gear at the bottom next to the + & - icons, (unlock lock first if locked), choose Set Service Order.
    The interface that connects to the Internet should be dragged to the top of the list.
    Instead of joining your Network from the list, click the WiFi icon at the top, and click join other network. Fill in everything as needed.

  • My ipad will not start.  It is 1 year old...I have tried holding the two buttons and nothing..I have it connected to my desktop and it will make a ding noise but nothing comes up on the screen.

    My ipad will not start.  It is 1 year old...I have tried holding the two buttons and nothing..I have it connected to my desktop and it will make a ding noise but nothing comes up on the screen.

    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPad Frozen, not responding, how to fix
    http://appletoolbox.com/2012/07/ipad-frozen-not-responding-how-to-fix/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    Black or Blank Screen on iPad or iPhone
    http://appletoolbox.com/2012/10/black-or-blank-screen-on-ipad-or-iphone/
    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
     Cheers, Tom

Maybe you are looking for

  • ITunes silently fails to launch in just my user account

    I'm running Windows XP SP3 32-bit with an administrator level account, installing iTunes for the first time ever on any of my systems in order to use it with my new iPod touch 5th gen, only to find that after install it won't launch. Went through the

  • Black Vertical lines and a thin yellow haze in the center of my screen

    I can't seem to find the answer to this question, or one that my be a solution. I recently discovered black vertical lines and a yellow haze in the center of my ipod nano 4GB. One discussion said I should put it to sleep for 4 hours and the lines wil

  • Frontrow not seeing my remote itubes library

    Hey here's my setup I have a mac mini, Ethernet connected to a switch. It has an external drive containing all my media. I'm using iTunes as the media server. It has sharing enabled. It has the latest OS and patches. I have a new an iMac Ethernet wir

  • How to use itunes store purchased music in SP?

    Hello, I know that iTunes store music is copywrited and you can't use it in any commercial product. But I am making a movie of my vacation that maybe 10 of my friends and family will see. I would like to use my iTunes music in this movie and of cours

  • Can we put margin for text inside available Tile Templates ?

    Hi all ,         We are developing a windows phone silverlight 8.1 application. Using WNS as push notification service. For tile notification using the template "TileWide310x150PeekImage02" for wide tile . Text attribute with id 2 is appearing a litt