How can I terminate a subVI using dynamic events?

I've got a VI which can bring up a user-interactive subVI.  The subVI front panel is visible and has event structure associated with it.
I'd like to programmatically terminate the subVI from an action on the parent VI.  Can I do this through dynamically registered events, or user events, somehow?
What I'm trying to do is implement a LabView-like Graphical Control Palette (shortcut menus).  The user should be able to kill the subVI (a menu-like VI) by clicking on the main VI.
My not-so-good approach is to have a short timeout to the subVI and read the value of a control reference which is passed from the main VI.  I'd rather not have to use the timeout for this, though.
Thanks,
Tom
LabView 8.2
Full Development System.

Create a user event and use it. You can see an example here.
Try to take over the world!

Similar Messages

  • How can we change the name of dynamic events selector label in Event Structure

    When retriving references to Control that are contained in a cluster. The default name that
    appear in the Event Structure is: : Mouse down.
    I have found a workaround to correct the problem. But I would apreciate a more convinient way to do this.
    This is the workaround I found to change the names in the Event Structure
    I cast the References using a Reference constant and I change the label of
    that constant.
    See the VI for more detail. It is well commented.
    Is there any way to change the name of a dynamic event without doing the
    cast trick?
    Attachments:
    DynEventStructureName.vi ‏44 KB

    I agree!
    I can't top this approach.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • How can I determine whether to use an event structure or a case structure?

    I'm starting a large project and need a state machine. I can't decide on whether to use a case structure or event structure. Is there an article  or other information that describes criteria for selecting between the two approaches?
    Thank you,
    Chuck
    Solved!
    Go to Solution.

    Hi Chuck,
    Well case structures and event structures differ quite alot.  Here's a link for indepth information on Event Structures, and using them in state machines: http://zone.ni.com/devzone/cda/tut/p/id/2962.  Hopefuly this will help you make up your mind.  
    Let me know if you have any questions after reading it. 
    Regards,
    Dominic Walker
    Cardiff University
    Electrical and Electronic Engineering Student

  • I had a mobileme account, it seems to have continued into a cloud account. how can i terminate this account?

    i had a mobileme account, it seems to have continued into a cloud account. how can i terminate this account?

    You can't teminate an iCloud account; just stop using it and ignore it - it's not costing you anything.

  • How can I specify relative SubVI file path in VIs?

    I use LabVIEW 2009 Service Pack 1.
    SubVIs are referenced by absolute paths, so when I move them to a new folder I may need to set their paths again.
    How can I make a SubVI reference a relative path so that I don't have to set its path after moving VIs to a new folder or a new drive?
    Solved!
    Go to Solution.

    altenbach wrote:
    [...]Where did you encounter any problems?
    From my experience, most of those problems occur when moving VI files directly on disk (Windows File Explorer) individually.
    @OP:
    Altenbach brought up a good point: When moving/copying the project, take care that all project related sources are within a single project folder. Move/copy the whole project folder, keeping its internal setup. In most cases, that is doing fine.
    When moving individual files (VIs), make sure that you use the LV Project Explorer to do so. Add all files used in the project into a single lvproj and then swap to the "Files" tab. Rightclick the individual VI you want to move and select "Move on Disk" from the context menu. This will auto-update all (known) callers as well.
    hope this helps,
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • How can I terminate my account. I am a PC user and cannot load my books.

    How can I terminate my account. I am a PC user and cannot load my books.

    Create a NEW account/ID using these instructions. Make sure you follow the instructions. Many do not and if you do not you will not get the None option. You must use an email address that you have not used with Apple before. Make sure you specify a birthdate that results in being at least 13 years old
      Creating an iTunes Store, App Store, iBookstore, and Mac App Store account without a credit card
    More details of how:
    http://ipadhelp.com/ipad-help-tips-tricks/how-to-get-free-apps-from-the-app-stor e-without-a-credit-card/

  • How can i know what SubVI is on SubPanel?

    How can i know what SubVI is on SubPanel?
    In the main of my application i have three subpanels that open many different SubVI, i need to know what reference of subvi is actually open
    what could be the best way to do it?
    thanks,
    Andres

    I'm not aware of a way of directly getting the VI reference from the subpanel control after a VI has been inserted into it. Seems like an oversight to me if it's not there. This means you will either have to create a mechanism for saving the reference that's currently open at the time that you invoke the "Insert VI" method, or you can use a roundabout means like getting the run state of a VI or reading an indicator's value, as mentioned in this thread.

  • How can I terminate my sequence when DI signal changed?

    Hello, I have a problem that  I want to stop my sequence by DI signal changed.
    How can I terminate my sequence when DI signal changed?
    Thanks
    Solved!
    Go to Solution.

    Hi, you can test the DI signal in vi using a while structure in another thread while main sequence is running. Then you can make use of an if statement to determine whether to get on running the sequence by the value of the vi.

  • How can I Change HR_APPROVAL_REQ_FLAG to Yes-Dynamic

    I have a requirement to change HR_APPROVAL_REQ_FLAG to Yes-Dynamic in a standard process
    in HR_REVIEW_CHANGES its displaying in Attribute Node but when i press edit
    button its not editable (grayed)
    How can I Change HR_APPROVAL_REQ_FLAG to Yes-Dynamic.
    Please help
    Thanks

    Hi,
    If you want to add fields to a list, as you have written your form in JavaScript, you can take consideration of using JavaScript Client Object Model to add/delete fields dynamically.
    How to: Create, Update, and Delete Lists Using JavaScript
    http://msdn.microsoft.com/en-us/library/office/hh185005(v=office.14).aspx
    If you want to achieve it with Form7, it is recommended to post the question to its forum to get quick and confirmed answer.
    Thanks
    Patrick Liang
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Patrick Liang
    TechNet Community Support

  • How can my wife and I use our two iTunes account on one iPad

    How can my wife and I use our two iTunes accounts on one IPad

    Unfortunately it will be difficult. iPads are personal devices like phones and done have credentials. You can of course log out of and into the app store to download purchased apps but the iPad will then have all the apps of both your wife and you (though you could put these into folders I guess).
    /H

  • I have two Apple ID, how can I delete one and use the email address associates to the main one?

    I have two Apple ID, how can I delete one and use the email address associates to the main one?

    If you abandon one of the Apple IDs you will also basically be abandoning any content that you have acquired with that Apple ID. Content can only be updated and re-downloaded with the Apple ID that was used to buy it. Apple will not combine the content of Apple IDs and Apple will not transfer the content from one Apple ID to another Apple ID.

  • I have a company Ipad that belonged to a deceased employee. no access to his icloud or appleID. how can I restore it for use with a new apple ID

    I have a company Ipad that belonged to a deceased employee. no access to his icloud or appleID. how can I restore it for use with a new apple ID?
    The apple ID was his personal account and can no longer gain access. Im sure I can get purchase recipts from the accounting department if needed. I tried to put the Ipad in restore mode and used itunes to "recover" the ipad but it still wont let me in because he registered the device with the "lost iphone" feature or whatever that is.

    Activation Lock in iOS 7  >  http://support.apple.com/kb/HT5818
    The Apple ID and Password that was Originally used to Activate the iDevice is required
    If you do not have that information you will not be able to use the Device.

  • HT1539 How can a digital copy be used in a household with multiple apple ids, synced on the same computer?

    How can a digital copy be used in a household with multiple apple ids, synced on the same computer?  I want to put a digital copy on my device, and on my wife's device.
    Please help.

    you're welcome.
    actually, unless you take an extra step, the first opened swf will close.  if you want the 2nd to close, the initial receiving lc will send a message to sender that causes the sender to close.

  • How can I turn my Mac using iTunes into an alarm clock?

    Here's my question: How can I turn my Mac, using iTunes, into an alarm clock?
    I want to be able to put my Mac to sleep but have it set up so that when it wakes up at the predetermined time iTunes will open and start playing the music I've selected....
    A "musical alarm clock"...
    A friend suggested using the Energy Saver option in Sys. Preferences to wake the computer at the right time. He said that then I could use iCal to start iTunes. I would then have to use an Apple Script to get iTunes to play the song I want.
    But is there a SIMPLER way to do this? Are there any programs out there that do this already??
    Thanks for any help....

    I recently got a copy of AlarmClock Pro from MacWorld UK. It is shareware, I think it is (USD?)19. I haven't had a chance to try it out much, but it does look quite good. I have an older version. The latest version looks even better.
    I'm sure there's plenty of freeware apps out there. You might also want to try looking here for an applescript here Doug's AppleScripts for iTunes
    p53

  • How can I update my app using my own ac?

    can I know if I can update my app from the other ac ?cause when I downloaded the app I used my friend ID  but now I can't contact him .so how can I update the app using my own ac?

    You can't, all content is tied to the account that bought/downloaded it, so only that account will be able to download updates to its apps.

Maybe you are looking for

  • Some notes no longer appear under Reminders Notes in Mail

    On upgrading to Snow Leopard it appears that around 50% of my notes no longer appear under the Reminders>Notes heading in the Mail sidebar. I keep various notes in other folders – such as passwords/login details in their own specific folder – but in

  • CORBA problem after migration to JDK 1.5.0_05

    Hi, I faced some errors with CORBA, after performing migration from JDK 1.4.1 to JDK 1.5.0_02 on Solaris 8 2/02 (SPARC version). I've spend few days on digging in java.sun.com bug database and google archive, but haven't found similar case. The probl

  • I am getting green and purple dots

    I am getting green and purple dots. When I click on icon with video for file info on my 27inch IMAC G5 Quad Intel. Dots are all over the screen. When I grab a window around the screen these tiny green-purple dots and they disappear.

  • Iphone not present in itunes

    hello plzzzz help me i connect iphone to itunes but itunes showing no connected device ??!!! iphone still showing black screen and apple logo screen every few minutes ??!!!!! what to do plzzz ??!!!!!

  • Setting up imac cant get past welcome screen

    I have just taken my beautiful new iMac out of its box and turned it on..but now can't get past the welcome screen.  Won't let me click continue ?  I havn't owned a Mac since 1994...so things have changed.  Thank you in advance.