Force "Wait on Occurrence" function to stop waiting

Hi all,
is it possible to interrupt the "Wait on Occurrence" function, so that it stops waiting?
That's my situation:
In my VI, I'm using occurrences to get event messages from the windows API. See here: http://www.ni.com/example/29394/en/ for an example code. One part is a DLL which takes the reference of the occurrence and sets an occurrence each times an event happens (e.g. mouse down, etc.). In the case, the VI is closed it's necessary to abort waiting to the occurrence immediately, otherwise the application becomes idle until any event happens.
Solved!
Go to Solution.

I haven't looked at the code in years, so I don't really remembers what it looks like, but what's preventing you from splitting the occurence wire to the point where you know the VI stops and setting the occurence there? Obviously, this will cause your code to think that an event occured, so you might need to add another mechanism to mark that this is not the case, but it should be doable.
Another alternative is to use the timeout. Obviously, this will make it poll, with all the implications of that, so that's up to you.
A third option is to add a layer between the occurence and your actual code, which is basically what Nathan suggested, but this suggestion is for doing it on the LV side instead of in the DLL. This doesn't solve the issue you're having (you would still need to write the code to handle it) and it makes the system more complicated, but it can make the API that your final code sees more clean (e.g. using two events). Depending on what the code looks like, this might require some daemons, etc., so you might not want this.
Try to take over the world!

Similar Messages

  • Force Dehydration with Checkpoint Function

    I was reviewing the "what's new in 10.1.2.0.2" document and I saw a note about "Force Dehydration with Checkpoint Function". Where might I find some documentation on how to accomplish this? The only documentation in the users guide is the following:
    [start quote]
    Using Dehydration Points to Maintain Long-Running Asynchronous Processes:
    To automatically maintain long-running asynchronous processes and their current
    state information in a database while they wait for asynchronous callbacks, you can
    create a dehydration point. Storing the process in a database preserves the process and
    prevents any loss of state or reliability if a system shuts down or a network problem
    occurs. This feature increases both BPEL process reliability and scalability. You can alsouse it to support clustering and failover.
    You insert this point between the invoke activity and receive activity. Figure 6–1 on
    page 6-2 shows an example of a dehydration point in the loan application approver
    Web service.
    [end quote] (note, figure 6-1 does not really give any clues).
    I also found this little snippit on the forum and I am wondering if this is the feature being referenced or if there is a new way to accomplish a checkpoint?
    <bpelx:exec name="invokeJavaExec" language="java" version="1.4">
    <![CDATA[
    checkpoint()
    ]]>
    </bpelx:exec>
    Thanks,
    Greg

    right, checkpoint is a function that can be used inside embedded java code only. Exactly as shown in the code snippet, and will force the state to be dehydrated ..
    thx clemens

  • "Save As" function suddenly stops working

    "Save As" function suddenly stops working in InDesign and Photoshop CS3. I hvae restarted several times but to no avail. I also can't make a pdf straight from InDesign. It was fine a minute ago. The Save As menu flashes on for a second and dissappears. After that the programlocks up. Does anyone have any suggestions?

    As Bob mentioned (indirectly), this also has some of the symptoms of the hidden dialog syndrome (I was reading fast last night) where the dialogs are either hidden behind your other windows or are drawn off-screen. This is more common with multiple monitors.
    Since this affecting several applications, and you are able to select the commands, it seems like a good possibility. What happens if you hit escape to cancel the operation after the system "locks up"? If it comes back that would be a strong indicator there is a hidden dialog waiting for you to respond.
    Running flat-screens at native resolution helps, as does the little trick with Photoshop that Bob posted. Another trick to try is hitting Alt + Spacebar, then M to see if you can move the dialog into view.
    Peter

  • The save for the web function has stopped working in my copy of photoshop elements 12.  I get this message, " The operation could not be completed.  The system cannot find the path specified" Resetting preferences did not fix.

    The save for the web function has stopped working in my copy of photoshop elements 12.  I get this message, “ The operation could not be completed.  The system cannot find the path specified” Resetting preferences did not fix.

    my os is windows 7.  elements 12 worked fine for many months then save for the web stopped working

  • The autorotation function has stopped working in my text message app. only.  It is working for all other applications.  What has happened? How can I fix it.  The autorotate is on.

    The autorotation function has stopped working in my text message appnly.  It is working in all other apps.  The autorotation is turned on!  What has happened?  How do I correct this?

    1. Try quitting the Messaging app
    Double tap the Home button, hold the app icon until it wiggles, tap the red dot, tap the Home button twice
    Relaunch
    2. Reset: Hold the Sleep/Wake and Home buttons until the screen goes dark and the Apple logo appears

  • 'open new tab' function has stopped working, even after reinstall

    The 'open new tab' function has stopped working. I even uninstalled Firefox and reinstalled and no help.

    -> Tap '''ALT''' key or press '''F10''' to show the Menu Bar
    -> go to Help Menu -> select '''Restart with Add-ons Disabled'''
    Firefox will close then it will open up with just basic Firefox. Now do this:
    -> Update Firefox to the latest version by going to Help Menu -> About Firefox -> click '''Check for Updates''' -> if an updated version is found then download the latest version and install it. After that follow these steps:
    -> Update ALL your Firefox Plug-ins https://www.mozilla.com/en-US/plugincheck/
    -> go to View Menu -> Toolbars -> unselect All Unwanted/Incompatible Toolbars
    -> go to Tools Menu -> Clear Recent History -> '''Time range to clear: select "EVERYTHING"''' -> click Details (small arrow) button -> place Checkmarks on '''Cookies, Cache''' -> click '''Clear Now'''
    -> go to Tools Menu -> Options -> General -> in Startup section click '''Reset to Default''' button
    -> go to Tools Menu -> Options -> Content -> place Checkmarks on:
    1) Block Pop-up windows 2) Load images automatically 3) Enable JavaScript
    -> go to Tools Menu -> Options -> Security -> place Checkmarks on:
    1) Warn me when sites try to install add-ons 2) Block reported attack sites 3) Block reported web forgeries 4) Remember Passwords for sites
    -> go to Tools Menu -> Options -> Advanced -> Network -> Offline Storage (Cache): click '''Clear Now''' button
    -> Click OK on Options window
    -> click the Favicon on SearchBar -> click '''Manage Search Engines''' -> select all Unwanted Search Engines and click '''Remove''' -> click OK
    -> go to Tools Menu -> Add-ons -> Extensions section -> REMOVE All Unwanted/Suspicious/Incompatible Extensions (Add-ons) -> Restart Firefox
    -> go to Tools Menu -> Add-ons -> Appearance section -> REMOVE All Unwanted/Suspicious/Incompatible Themes (Persona) -> Restart Firefox
    You can enable your Known & Trustworthy Add-ons and Themes later. Check and tell if its working.

  • My scheduled Do Not Disturb function has stopped working; help!

    I have the iPhone 5 &amp; the scheduled Do No Disturb function recently stopped working which I was using daily.  The regular Do Not Disturb (on/off) still works

    A known Issue... This is what Apple says...
    http://support.apple.com/kb/TS4510

  • Function keys stop working

    For a while now, I've been encountering a problem where functions keys stop working. Pressing F8 (for spaces) or F12 (for widgets) will simply yield a "bonk".
    Another symptom is that processes which open on a desktop other than the current one will fail to open because the desktop seems reluctant to switch.
    I know other people have experienced similar problems because there is a post about spaces' keyboard shortcuts not working. The issue has not been resolved for many many weeks now.
    I use a logitech wireless keyboard and trackball (with the logitech control application installed)
    Sometimes this error will occur immediately after booting up. Sometimes it will go for days working fine. I consistently have 4 applications running:
    - iTunes
    - Thunderbird
    - Firefox
    - Adium
    The other most common apps I run are:
    - Quicktime
    - Aperture
    - iMovie
    - Preview
    Yet Another symptom of the problem is that the machine will refuse to shut down or restart. If I kill every "windowed" process in Activity Monitor, the machine will STILL fail to shut down. Ultimately, I have to do a 5-second hard power-down.
    Any ideas/suggestions would be greatly appreciated.

    I am running into the same issue
    I use a Logitech Wireless Mouse.
    The switch Spaces keys, F9/F10/F11 for Expose are not working either, the Mute/F10 Vol Up, Vol Down F11 and F12 work as does the Eject button.
    F18 Show Dashboard or F4 Show Dashboard don't work either.
    Most frustrating

  • 3D functionality has stopped working in Photoshop CC?

    3D functionality has stopped working in Photoshop CC?
    Any ideas anyone.

    Q642910 wrote:
    This all without prior warning with their support team being as much use as none at all !
    As I mentioned above, the minimum VRAM requirement has been published for a long time.  That you chose to ignore that is whose fault again?
    If you want to run some of the most sophisticated software available, you might have to consider getting more sophisticated hardware.  You should have considered it before.
    -Noel

  • Some trackpad functions suddenly stop working

    Hello!
    I have no idea what causes this, but when I'm working on my MacBook, sometimes a couple of functions of the trackpad suddenly stop working. The functions that stop working are always the same: all of the "More Gestures" found in the "Trackpad" system preferences. Just scrolling and clicking always continue to work when this problem occurs.
    When I just log out and log in again or restart my MacBook it works again, however, this can get quite annoying when you have to do this all the time.
    I cannot figure out what causes these functions to suddenly stop working. Does anybody know a solution for this?

    Is your MacBook one with an easily removeable battery? Some users have noted that batteries, particularly older ones, sometimes expand and interfere with the trackpad. To test for this do the following -
    Shut down your MacBook.
    Remove the battery. Examine it for signs of expansion. If any are found DO NOT use it again.
    Leaving the battery out, connect to the MacBook's AC power adapter.
    Start up your MacBook. Test it to see if the trackpad works normally.
    If the problem goes away with the battery gone, or if you notice expansion of the battery, replace the battery.
    Best of luck.

  • When I click on some links, Firefox tries to open a ton of new tabs... I have to force quit. How can I stop this?

    Sometimes when I click on a website link, Firefox goes crazy with trying to open new tabs... it keeps going until I force quit. How can I stop this?
    == This happened ==
    A few times a week
    == I clicked on a link

    See [[Firefox keeps opening many tabs or windows]]
    You can have infinite tabs opening if you have selected Firefox as the application to handle a file if you get an ''Open with'' download window.
    Firefox should not be selected as the application to handle a file and you have to remove the action that is associated with that file type.
    You can delete [http://kb.mozillazine.org/mimeTypes.rdf mimeTypes.rdf] in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] to reset all actions or set that action in Tools > Options > Applications to 'Always Ask'.
    See also http://kb.mozillazine.org/File_types_and_download_actions ("File handling in Firefox 3 and SeaMonkey 2" and "Reset Download Actions")

  • Force wait activity to stop and continue flow

    Dear,
    Is it possible to force an active wait activity (that is scheduled to expire a couple of hours later) to stop and to continue the flow with the next activity?
    Thanks in advance for your feedback,
    Veerle Antonissen

    How would you like to force the wait activity prematurely? AFAIK this is only possible with by setting an alarm on a reveive activity, i.e. waiting for a maximum time (comparable to wait) and at the same time waiting for a message (receive activity), whatever happens first. If you send a message to the receive, it will continue before the alarm times out.
    Does this solve your problem?

  • Run code\function after stopping a QTP\UFT script

    Hi,
    I have a scenario where I want to perform some tasks (like zipping and attaching files to QC) after my UFT\QTP script is stopped.
    The script can stop in all these scenarios:
    1.) forcefully manual-stop the script
    2.) run-time errors
    3.) script test fail (exittest) condition
    4.) script successfully ended.
    I have tried calling the function (which zips and attaches files to QC) inside my script.
    But, disadvantages are:
    1.) i have to be very specific at what are the places of code i want to insert this code into.
    2.) its a huge performance issue, each time i call this function: it does all these tasks "everytime"...zipping and attaching files.
    I just want this function to be called just once, after the QTP script has been stopped.
    Is this possible, please help me out.
    Thanks,
    Nutan.

    Muthu,
    You are getting this error when you do any operation in your page, or when you try to access your page you are getting this error?
    /main/oracle/apps/po/demo/webui/MainPG is your page ?
    Thanks,
    With regards,
    Kali.
    OSSI.

  • N 'Mail' my 'Get Mail'  function suddenly stopped working.

    I have ascertained that I have Mail to be downloaded by checking on the Bigpond mail server. The usual 'Mail Activity' bar is not present when I attempt to 'Get Mail'.  I have tried 'Mailbox'  ---. 'Get New Mail' but to no avail.  I would appreciate any help or suggestions.
    ReggyB

    Do a backup, using either Time Machine or a cloning program, to ensure files/data can be recovered. Two backups are better than one. 
    Try setting up another admin user account to see if the same problem continues. If Back-to-My Mac is selected in System Preferences, the Guest account will not work. The intent is to see if it is specific to one account or a system wide problem. This account can be deleted later.
    Isolating an issue by using another user account
    Try booting into the Safe Mode using your normal account.  Disconnect all peripherals except those needed for the test. Shut down the computer and then power it back up after waiting 10 seconds. Immediately after hearing the startup chime, hold down the shift key and continue to hold it until the gray Apple icon and a progress bar appear and again when you log in. The boot up is significantly slower than normal. This will reset some caches, forces a directory check, and disables all startup and login items, among other things. When you reboot normally, the initial reboot may be slower than normal. If the system operates normally, there may be 3rd party applications which are causing a problem. Try deleting/disabling the third party applications after a restart by using the application un-installer. For each disable/delete, you will need to restart if you don’t do them all at once.
    Safe Mode - Mavericks
    Safe Mode - About

  • Automatically receive emails - function has stopped

    My BB has stopped receiving emails automatically.   I need to turn off the connection and turn it on again to see the "arrows" and receive email.  Very frustrating.  I receive emails on my computer and as I say, they have stopped coming in to my BB automatically on their own.  I am not a business customer - do not have an enterprise server or IT department.  I'm on my own.
    I have no clue why this happens. Maybe I changed or a setting was changed somewhere, but I have no clue and cannot find an answer to this anywhere.
    Solved!
    Go to Solution.

    Hi and Welcome to the Forums!
    Several things could have happend...have you modified the settings within BIS? If not, then try these things:
    1) With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes. See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    2) Register HRT:
    Homescreen > Options > Advanced Options > Host Routing Table > BBKey (it does not matter which line is current) > Register Now
    3) Resend Service Books:
    KB02830 Send the service books for the BlackBerry Internet Service
    If, after about 15 minutes or so, emails are still not coming in (be sure to send yourself a test one so that there will truly be a "new" email), then deleting and re-creating the BIS conduit for that email account would be your next step.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for