It's impossible, but it happens.

LV2013, Win7
OK, I'm working on a project which has a container window ("MegaMonitor").
On the window is a single TAB control with 12 pages.
On each page are 6 SubPanels, nothing else.
There is a single VI called the "Block" VI.
I put one instance of that VI into each of those 72 SubPanels, and the whole thing should run.
There is a TCP data stream coming in at 10 Hz, that gets decimated into various history arrays.  Each Subpanel chooses a way to view a certain set of channels from that datastream.
The problem is, sometimes the process works just fine and dandy, The window opens up and starts running in 3-4 seconds, it shuts down in less than 1 second.
Sometimes it's like walking thru sludge - it takes 20-30 seconds to open up and run, it takes 60 or more seconds to shut down and recover.
I don't know what will make it work fast or slow - a restart TENDS to make it work fast the first time after, but not always.
Here is the launching code, in the container window:
I've tried CALL and FORGET, and CALL and COLLECT methods, rather than the RUN VI method - no real difference in behavior.
I've tried AUTO DISPOSE REF bothe TRUE and FALSE - no difference.
I need to know when the process has shutdown.  The BLOCK Vi, as the first thing it does, puts a value into a STOP queue, and as the last thing it does, it takes a value OUT. 
So the CONTAINER window can look for an empty queue to determine that it's done.
Here is that Shutdown Code:
There is an EVENT which triggers shutdown of the window - each block sees that event and shuts down:
After the event is heard, we log a debug message:
We save a few things in a PREFS structure:
We log another debug message:
And, as the last thing we do, we de-queue an item from the STOP queue:
The "SAVE A FEW THINGS" part is pretty simple - just store a structure into an array:
The SEND DEBUG thing just formats a string and sends via UDP to a receiver elsewhere.  The sludge behavior happens whether debugging is turned on or not.
Stay Tuned for the impossible part...
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And Tricks
Solved!
Go to Solution.

So, here is a debugging log, with comments interspersed:
287115 - MM Unit 0 Block 3 Queue Event.
287115 - MM Unit 0 Block 1 Queue Event.
--- The QUEUE event is normal operation - Here we get a STOP event.
287189 - MM Unit 0 Block 1: About to Close
287234 - MM Unit 0 Block 6: About to Close
287235 - MM Unit 0 Block 10: About to Close
287236 - MM Unit 0 Block 4: About to Close
287236 - MM Unit 0 Block 14: About to Close
287237 - MM Unit 0 Block 12: About to Close
287238 - MM Unit 0 Block 16: About to Close
287238 - MM Unit 0 Block 18: About to Close
287239 - MM Unit 0 Block 19: About to Close
287240 - MM Unit 0 Block 26: About to Close
287240 - MM Unit 0 Block 23: About to Close
287241 - MM Unit 0 Block 28: About to Close
287241 - MM Unit 0 Block 7: About to Close
287242 - MM Unit 0 Block 5: About to Close
287242 - MM Unit 0 Block 11: About to Close
287243 - MM Unit 0 Block 8: About to Close
287244 - MM Unit 0 Block 15: About to Close
287245 - MM Unit 0 Block 20: About to Close
287245 - MM Unit 0 Block 24: About to Close
287246 - MM Unit 0 Block 3: About to Close
287246 - MM Unit 0 Block 0: About to Close
287247 - MM Unit 0 Block 27: About to Close
287247 - MM Unit 0 Block 25: About to Close
287247 - MM Unit 0 Block 31: About to Close
287248 - MM Unit 0 Block 53: About to Close
287267 - MM Unit 0 Block 30: About to Close
287267 - MM Unit 0 Block 32: About to Close
287268 - MM Unit 0 Block 41: About to Close
287268 - MM Unit 0 Block 36: About to Close
287269 - MM Unit 0 Block 35: About to Close
287269 - MM Unit 0 Block 13: About to Close
287269 - MM Unit 0 Block 37: About to Close
287269 - MM Unit 0 Block 22: About to Close
287269 - MM Unit 0 Block 9: About to Close
287269 - MM Unit 0 Block 34: About to Close
287269 - MM Unit 0 Block 57: About to Close
287269 - MM Unit 0 Block 21: About to Close
287269 - MM Unit 0 Block 33: About to Close
287270 - MM Unit 0 Block 2: About to Close
287270 - MM Unit 0 Block 43: About to Close
287270 - MM Unit 0 Block 45: About to Close
287270 - MM Unit 0 Block 46: About to Close
287271 - MM Unit 0 Block 48: About to Close
287271 - MM Unit 0 Block 49: About to Close
287271 - MM Unit 0 Block 50: About to Close
287271 - MM Unit 0 Block 64: About to Close
287271 - MM Unit 0 Block 51: About to Close
287271 - MM Unit 0 Block 29: About to Close
287271 - MM Unit 0 Block 54: About to Close
287290 - MM Unit 0 Block 47: About to Close
287290 - MM Unit 0 Block 55: About to Close
287291 - MM Unit 0 Block 44: About to Close
287291 - MM Unit 0 Block 42: About to Close
287291 - MM Unit 0 Block 40: About to Close
287291 - MM Unit 0 Block 39: About to Close
287292 - MM Unit 0 Block 38: About to Close
287292 - MM Unit 0 Block 56: About to Close
287292 - MM Unit 0 Block 58: About to Close
287292 - MM Unit 0 Block 17: About to Close
287292 - MM Unit 0 Block 59: About to Close
287292 - MM Unit 0 Block 60: About to Close
287292 - MM Unit 0 Block 71: About to Close
287292 - MM Unit 0 Block 70: About to Close
287293 - MM Unit 0 Block 68: About to Close
287293 - MM Unit 0 Block 66: About to Close
287293 - MM Unit 0 Block 52: About to Close
287293 - MM Unit 0 Block 62: About to Close
287293 - MM Unit 0 Block 67: About to Close
287293 - MM Unit 0 Block 63: About to Close
287293 - MM Unit 0 Block 69: About to Close
287293 - MM Unit 0 Block 65: About to Close
287294 - MM Unit 0 Block 61: About to Close
--- OK, all 72 blocks got the event and are preparing to stop.  They start closing:
287294 - MM Unit 0 Block 1: Closed
287294 - MM Unit 0 Block 6: Closed
287294 - MM Unit 0 Block 10: Closed
287294 - MM Unit 0 Block 4: Closed
287295 - MM Unit 0 Block 16: Closed
287295 - MM Unit 0 Block 14: Closed
Here, the container window chimes in, it's waiting for an empty queue.  The population is still 72, but it's only been 1 mSec since they started closing, so no big deal.
287295 - Queue population: 72
And 39 more blocks are closing:
287295 - MM Unit 0 Block 12: Closed
287295 - MM Unit 0 Block 18: Closed
287295 - MM Unit 0 Block 19: Closed
287295 - MM Unit 0 Block 26: Closed
287295 - MM Unit 0 Block 23: Closed
287296 - MM Unit 0 Block 28: Closed
287296 - MM Unit 0 Block 5: Closed
287296 - MM Unit 0 Block 7: Closed
287296 - MM Unit 0 Block 11: Closed
287296 - MM Unit 0 Block 8: Closed
287296 - MM Unit 0 Block 20: Closed
287296 - MM Unit 0 Block 15: Closed
287296 - MM Unit 0 Block 24: Closed
287296 - MM Unit 0 Block 3: Closed
287297 - MM Unit 0 Block 0: Closed
287297 - MM Unit 0 Block 27: Closed
287297 - MM Unit 0 Block 25: Closed
287297 - MM Unit 0 Block 31: Closed
287297 - MM Unit 0 Block 53: Closed
287297 - MM Unit 0 Block 30: Closed
287297 - MM Unit 0 Block 32: Closed
287297 - MM Unit 0 Block 36: Closed
287297 - MM Unit 0 Block 35: Closed
287297 - MM Unit 0 Block 41: Closed
287297 - MM Unit 0 Block 13: Closed
287297 - MM Unit 0 Block 37: Closed
287297 - MM Unit 0 Block 22: Closed
287297 - MM Unit 0 Block 9: Closed
287298 - MM Unit 0 Block 34: Closed
287298 - MM Unit 0 Block 57: Closed
287298 - MM Unit 0 Block 21: Closed
287298 - MM Unit 0 Block 33: Closed
287298 - MM Unit 0 Block 2: Closed
Now, here, for some reason, LabVIEW stops doing what I ask it and goes into a corner and pouts:
287557 - Queue population: 33
287689 - Queue population: 33
287821 - Queue population: 33
287953 - Queue population: 33
288085 - Queue population: 33
288217 - Queue population: 33
288349 - Queue population: 33
288481 - Queue population: 33
288613 - Queue population: 33
288745 - Queue population: 33
288877 - Queue population: 33
289009 - Queue population: 33
289141 - Queue population: 33
289273 - Queue population: 33
289405 - Queue population: 33
289537 - Queue population: 33
289669 - Queue population: 33
289801 - Queue population: 33
Here it finally gets around to closing one more:
289861 - MM Unit 0 Block 43: Closed
And now, it's back to pouting:
289933 - Queue population: 32
290061 - Queue population: 32
290189 - Queue population: 32
290317 - Queue population: 32
290445 - Queue population: 32
290573 - Queue population: 32
290701 - Queue population: 32
290829 - Queue population: 32
290957 - Queue population: 32
291085 - Queue population: 32
291213 - Queue population: 32
291341 - Queue population: 32
291469 - Queue population: 32
291597 - Queue population: 32
291725 - Queue population: 32
291853 - Queue population: 32
291981 - Queue population: 32
292109 - Queue population: 32
292237 - Queue population: 32
292365 - Queue population: 32
292493 - Queue population: 32
292621 - Queue population: 32
292749 - Queue population: 32
292877 - Queue population: 32
293005 - Queue population: 32
293133 - Queue population: 32
293261 - Queue population: 32
293389 - Queue population: 32
293517 - Queue population: 32
293645 - Queue population: 32
293773 - Queue population: 32
293901 - Queue population: 32
294029 - Queue population: 32
294157 - Queue population: 32
294285 - Queue population: 32
294413 - Queue population: 32
294541 - Queue population: 32
294669 - Queue population: 32
294797 - Queue population: 32
294925 - Queue population: 32
It apparently did absolutely nothing toward closing the VIs for about 5 seconds.
Steve Bird
Culverson Software - Elegant software that is a pleasure to use.
Culverson.com
Blog for (mostly LabVIEW) programmers: Tips And Tricks

Similar Messages

  • HT4718 I can't reach recovery system when I reboot- I press 'command' and 'r' quickly, but nothing happens, the progress bar begins to load... Any thoughts?

    I can't reach recovery system when I reboot- I press 'command' and 'r' quickly, but nothing happens, the progress bar begins to load... Any thoughts? It gets about halfway through loading and then stops, no mouse, no nothing. I think I'll be able to move past it if I can reach the Recovery options.
    Thanks!

    If you are really sure that it's impossible to click in Recovery mode, then something is wrong with the machine.
    Make a "Genius" appointment at an Apple Store, or go to another authorized service provider.
    Back up all data on the internal drive(s) before you hand over your computer to anyone. There are ways to back up a computer that isn't fully functional — ask if you need guidance.
    If privacy is a concern, erase the data partition(s) with the option to write zeros* (do this only if you have at least two complete, independent backups, and you know how to restore to an empty drive from any of them.) Don’t erase the recovery partition, if present.
    Keeping your confidential data secure during hardware repair
    Apple also recommends that you deauthorize a device in the iTunes Store before having it serviced.
    *An SSD doesn't need to be zeroed.

  • HT4623 I cannot get pass the security issue of identify a 'rescue email address'.  I hit next, it dims, but nothing happens.  Is there any help anyone can offer?

    I cannot get pass the set-up of 'rescue email address'.  I hit 'next' it dims, but nothing happens.  Has anyone experienced this issue, and if so, could you offer a suggestion to help? 
    Thanks

    Well, thanks for trying. Actually, I don't believe Huffyuv uses even the color space YV12 (it's primarily designed for YUV, but, does support RGB.) Well, that codec would have been something I would consider using for the intermediate lossless videos, but, it won't install. The installer tells me I need quicktime 4.1.2 or later. I'm guessing it's one of those poorly written installers that just check for a built-in set of version numbers and refuse under the assumption it's too old if the program isn't one of those numbers.
    Anyway, due to time concerns, I'm forced to just go ahead and use only WMV. I would like to request that they consider adding support for HuffYUV as it is a common thing to use when one wants to work with lossless video (often used for intermediate video files or video captures.) I understand AVISynth may be impossible because QuickTime doesn't use the less reliable DirectShow method of decoding, but, HuffYUV shouldn't be too hard to support (especially since it is open source.)
    x86   Windows XP  

  • I am using the big date calendar template and when I submit it to apple for printing I lose the name of two months. These names are not text boxes. I see the names when I send it in but something happens during the transmission to apple. It was suggested

    I am using the big date calendar template in iPhoto. I am on Lion 10.7.2, macbook air. The names of the months are on each calendar page but something happens when I send the data to Apple. The names are part of the template. They are not text boxes. I lose two names on the calendar after it is sent to Apple. Apple suggested I make a pdf file of my calendar before sending it in and check to make sure every name shows. I did this with a calendar I just sent in. The calendar was correct. All names of the months were showing. After sending the data two month names disappeard because when it arrived by mail, it was incorrect. Apple looked at my calendar via a pdf file and it was incorrect.  This is second time this has happened. I called Apple and they had me delete several folders in the Library folder, some preferences and do a complete reinstall of iPhoto.  I have not yet remade the defective calendar. I am wondering if anyone else has had this problem?
    kathy

    Control-click on the background of the view all pages window and select "Preview Calendar" from the contextual menu.
    You can also save the pdf as a file to compare to the printed calendar.  If the two names are visible in the pdf file then the printed copy should show them.  Contact Apple for a refund.  Apple Print Products - Apple Store (U.S.)

  • HT1719 My itunes doesn't list "devices" above the playlist.  How can I sync the music I have purchased to my new ipod shuffle if it doesn't give me the option?  The shuffle is plugged into my computer, but nothing happens.  Help please!

    My itunes account doesn't list "devices" above the playlist, as the syncing instructions give.  How can I sync the itunes I have purchased & downloaded to my computer, to my ipod shuffle?  The device is plugged into my computer, but nothing happens.  Shouldn't the computer recognize the device? It doesn't.  Please help!

    As a test, shut down your computer and disconnect ALL USB devices.  Do this procedure to Reset the shuffle
    http://support.apple.com/kb/HT1655
    Start up computer with nothing connected, except for standard keyboard and mouse (if it's not a laptop).  Run iTunes.  Connect shuffle to a direct USB port on the computer.  See if there's any improvement,
    If the shuffle is now recognized, there may have been a USB device conflict previously, or maybe all of the devices connected at the same time overloads the USB bus (for power).  An iPod charges its battery while connected, so it is a high-power USB device.

  • I have tried to download Mavericks on my 2010 iMac(10.6.8), but nothing happens, not even the install app downloads, also I tried to download chrome, I moved it to the applications folder and when I opened the folder it wasn't there

    I have tried to download Mavericks on my 2010 iMac(10.6.8), but nothing happens, not even the install app downloads, also I tried to download chrome, I moved it to the applications folder and when I opened the folder it wasn't there. I have a 1tb hard drive that is mostly empty. By the way I just got this imac used from a reseller.

    Mavericks downloads into the Applications folder, where you can install it.   Some Mac App Store Troubleshooting information and how to resume a download that was interrupted; some of the information here might get you an answer.   Failing that, try contacting Apple Support.

  • When I turn my computer on I receive a message that Apple wants to make a change to the hardware. I click on yes but nothing happens. I think this has something to do with Apple "push". I had a problem with this in iTunes when I tried to sync my iPod Touc

    When I turn my computer on (Windows 7) I receive a message that Apple wants to make a change to the hardware. I click on yes but nothing happens. The change has something to do with Apple "push". I recently had a problem with"push" on iTunes when I tried to sync my iPod Touch. I have latest software for iTunes and iPod. Can anyone tell me what to do to get this change to install?

    ptford wrote:
    When I turn my computer on (Windows 7) I receive a message that Apple wants to make a change to the hardware
    Since hardware cannot be changed with software, perhaps you would be so kind as to post the exact wording of the message?

  • I am locked out of my computer (macbook air) I just got it back from the apple store and they reset it. I put in a new password, and now it doesnt let me log in anymore. Command R doesnt work, all i hear is a sound, but nothing happens.

    I just got it back from the apple store and they reset it (becuase it kept shutting down and not turning back on).
    I put in a new password because i needed to start over from factory settings, but now it doesnt let me log in anymore. (I don't know if this is because it doesnt accpet my password, or I forgot my password in less than 5 minutes, or because when i typed in my new password, i typed it in wrong twice)
    Command R doesnt work, all i hear is a sound, but nothing happens.

    What I don't understand is why it is rejecting a password I am creating.
    Perhaps the password you are creating is too short, or has characters that are not allowed, or is not secure enough because it is a word in a dictionary.
    FileVault may have standards for what it considers an acceptable password. If the password is part of the 128-bit encryption scheme, it might have to be 16 characters, for example. (Don't know if that is true, but it's a possibility.) Check your documentation for password requirements.

  • I recently deleted a partition on my mac that was intended to install windows. Now it is just blank space. I attempt to resize my Macintosh HD partition to cover entire hard drive space and hit apply but nothing happens (disk utility). Any ideas?

    I have a few problems...
    I wanted to make a partition to install windows, I tried to use bootcamp 5 where it wanted to partition and install windows at the same time. I do not have a cd of windows but instead had it on a flash drive. Bootcamp couldn't find it. Instead I was reading forums and found that there was another way to install windows by partioning your harddrive using the disk utility, downloading the bootcamp drivers, and installing rEFIt (an app that when starting the compouter a menu would come up to boot windows from the flashdrive). I try that and the windows install screen gets me to the point where I pick a partition. I attempt to pick the partitioned drive but a message comes up telling me that "this is of the GPT partition style" and windows cannot be installed on the drive.
    So now I went back to disk utility and deleted the partition but there is still blank space. I wanted to retry and install windows through bootcamp (somehow) but a message comes up that there cannot be any partitions or that a partition must be created using bootcamp. SO i keep trying to drag the partition over the blank space and hit apply but nothing happens.
    By the way I was trying to install windows 8 pro, some forums would say that you cant install win8 however I found others that said you could. How do I fix my partition and how do I use bootcamp to install windows (preferrably 8)?

    Csound1 What Ive been trying to explain is that I have been running bootcamp, I open the app where the first screen is the introduction, i hit continue, the first time I select "download the latest windows support software fromm Apple" then I return and instead select "Install Windows 7." Then hit continue. The third screen is where I "Create a Partition for Windows" I set Windows to 80 gigs then hit INSTALL. As stated before Bootcamp cannot find the install drivers saying "The installer disc could not be found." My windows software is on a USB drive not a disc, I tried using a virtual disc reader to make it appear that the windows software was running on a disc, still no luck. What I would like to know is how to install windows on bootcamp.

  • My ipad is hung what to do?i cannot switch off for 2 weeks because of i cloud it say full and cannot be back up i try to close or open the settings but nothing happen anyone can help me thanks a lot in advance

    my ipad is hung what to do?i cannot switch off for 2 weeks because of i cloud it say full and cannot be back up i try to close or open the settings but nothing happen anyone can help me thanks a lot in advance

    Welcome to Apple Support Communities
    Hold Sleep and Home buttons for 10 seconds until the device restarts

  • I've recently updated my podcasts but now it kicks me out after 15 seconds no matter what. I have tried reinstalling and a soft reset but still happening. Any ideas please?

    No matter what. I have reinstalled it and done a soft reset but still happening. Any ideas.

    KaiserJDV wrote:
    Have been looking forward of owning a Macbook Pro since our family is a Windows user but if this persists, I might throw it away.
    Take it back and and exchange it for one that works. 14 day return policy.

  • My iphone 4s wont turn on,it wont even charge,when it does eventually start to charge the apple icon on the screen will appear for a few seconds then itll disappear, i have tried to do the soft/hard reset but nothing happens, can anyone help me please?

    My iphone 4s wont turn on,it wont even charge,when it does eventually start to charge the apple icon on the screen will appear for a few seconds then itll disappear, i have tried to do the soft/hard reset but nothing happens, can anyone help me please? do i have a dead iphone on my hands? isit worth me going into the apple store and seeing what they can do or isit pointless? please help!!!

    Try to backup and restore you device in itunes...restoring the device is like removing the iOS software off the device and re-add in a newer software, after you have restore you device, MAKE SURE YOU SET UP YOUR DEVICE LIKE A NEW DEVICE, DONT NOT RESTORE FROM BACKUP!!... give the device a chance to use the newer software and see if the issue still persisting, if the issue still on going then its would be a hardware issue.
    Call Apple Care and see if your device is still under warranty to get it replace

  • I have a mac book pro.  Yesterday the mail app failed to open.  I have tried to open it fomr the dock and the application folder but nothing happens.  Does anyone have any suggestions to get it to work?

    I have a mac book pro.  Yesterday the mail app failed to open.  I have tried to open it from the dock and the application folder but nothing happens.  Does anyone have any suggestions to get it to work?

    You don't need iDVD unless you are going to make DVDs. If you are just trying to share files, iDVD won't help you at all.
    What you want to do is in iMovie, choose File/Share/File, and export that way. It creates an .mp4 file that should be readable on Macs or Windows.
    You could also File/Share/YouTube if you don't mind posting them to YouTube, because of course YouTube videos are watchable by any Mac or Windows computer made in the last 10 years.

  • Hello, my i phone froze suddenly and it won t start up. when people call me they hear it ring but the phone is dead, the screen all black and when i press the start up button nothing happens. i tried to connect it to the macbook but nothing happens

    hello, my i phone 4 froze suddenly.  before it did, the battery was 80% full.  i called it from another phone and i can hear a ringing tone but my phone is completely dead.  i pressed the operating button and nothing happens. also i tried connecting it to my mac but nothing happens. i also put it on the charger but nothing happens.  any tips please?

    Try this yet then.
    How to reset your SMC >>
    Run fsck.
    1. Reboot/Startup holding your Command-S key down.
    2. At the command line type the following and hit 'Return.'
    /sbin/fsck -fy
    3. After it has check/repaired your disk, type 'reboot' and hit 'Return' again. Unit should bootup normally.
    -Bmer
    Mac Owners Support Group
    Join Us @ MacOSG.com
    ITMS: MacOSG Podcast
     An Apple User Group 

  • I paid for lion because my 2006 mac pro will not run anything newer (arbitrary decision by apple). Downloaded it, but nothing happened. App Store now says i've already downloaded it, so I can't try again. App store also says lion isn't available in usa.

    I found out that an 06 mac pro cannot be updated to anything more recent than lion. They guys at the local shop told me this after they tried to update it for me so I could run logic pro 9 in 64 bit mode. I bought lion. Waited two days for the emails. Spent hours following the instructions which sounded so simple until you try them. Finally I found the "redeem" button that was hidden because the size of my safari window was too small to show it and there was no bar at the bottom to scroll over. Without googling "how do you find the app store" and "how do you find quick links" I never would have figured it out. I only mention this so that others may learn from my mistakes. Finally I downloaded lion, supposedly, but nothing happened. There is no indication that anything downloaded, other than the fact that when I try to download it again, it says it's already been downloaded. I spent four hundred bucks at the shop updating, plus whatever they charged me for lion, and I've still got snow leopard and logic pro running at 32 bits. I'm pretty sure nobody can help me, but could you please arrange for the return of my time?

    You can go to "Purchases" tab and check again.
    If OS X Lion is still not downloading, try at a different network environment.
    By the way, Mac Pro (2006) with a newer graphics card runs Mavericks perfectly with modifications in the installer.
    It's not allowed to be discussed here, but you can simply google how to do it.

Maybe you are looking for