Fire non-user defined event inside another event

I want to call a normal/non-user defined event after an operation has occured inside a different normal/non-user definded event. Is this possible?
The reason I don't want to use a user defined event is that if this can be done this way it would be much cleaner implemenation. Also, cleaner than using a sub-vi which would require a lot of wiring.

From my experimentation with this, it appears that the fired event
will not actually execute until the event currently being executed
(the one that fires the other event) is completely finished. The
"time" terminal of the second event idicates the time when it was told
to fire, but it does not actually execute then. You cannot say do
steps 1,2,3 in an event, temporarily leave that event to do code in
another event, then come back to the first event and complete steps
4,5. If the second event is fired after step #3, then steps 4 and 5
will finish first before the second event executes. This contrasts
with other languages such as Delphi were you can leave one event
temporarily.
On Mon, 25 Oct 2004 11:46:45 -0500 (CDT), chrisger o.email> wrote:
>simple control (any type) you can write the desired value to the
>"val(signaling)" property of the control. this changes the value AND
>raises the "value changed" event, just like the user pushed the
>button. then you can catch this event in the next turn of your loop.

Similar Messages

  • Using iPhoto, can I create events inside another event!?!? Is there a way??

    I would like to create an event inside another one that already exists, is there a way to do that?
    I want to create something like:
    An album called "Euro Trip" and inside this album other albuns called "Madrid, Barcelona, etc"
    By choosing "Divide events", they don't stay in the same "folder".
    Can anyone help me?

    Post this query on the iPhoto forum.  There are people who are oriented to iPhoto issues.
    I don't think you can do it.  The only suggestion I can think of is to start a new iPhoto Library for 'Euro Trip'.
    Ciao.

  • Event inside an event

    Alright, so I've figured out how to make multiple libraries in iPhoto. But now I'm interested in making an event inside an event. I have two iPhoto libraries (family and friends). For friends, I want to make one event per semester (fall 2006, spring 2007, fall 2007, etc...) and inside each of those events, have different events.
    So in fall 2006 I would have six flags trip, barbeque, bowling night, etc... I originally made a new library for each semester, but this makes it annoying to work with faces, since I have to redo it for each library and since I can't view photos from one library while in another. That is why an event inside an event would be really convenient to have. Is there any way to do this?

    No you can't nest an Event inside an Event.
    However, what you can do is create a Folder (File -> New Folder) and name it
    Fall 2006
    And inside that you can have many Albums, for each of your occasions.
    You can make a Album of an Event simply by dragging it to the Albums Heading. Albums take up no extra disk space.
    Regards
    TD

  • Is it possible to have sub-folder events inside an event on iPhoto?

    Is it at all possible to have an Event (eg. Pets) then have sub-events inside that event (eg. Dog, Cat etc.) in iPhoto?
    I can't seem to find anything...
    Any help greatly appreciated.

    No it's not.
    Basically, Events are organisation for those who can't be bothered. SImple date and time grouping of photos.
    If you want more, now it's time to explore Albums and Folders.
    So, a Folder called 'Animals' and within it, two Albums, one for 'Dog' and one for 'Cat'
    Albums are much more flexible than events, you can arrange the photos within albums with much more flexibility. A photo can be in multiple albums using no extra disk space, whereas to have a photo in multiple Events requires a duplicate file and so on.
    FWIW here's a canned answer I use to illustrate some of the organisation possibilities of iPhoto...
    I use Events simply as big buckets of Photos: Spring 08, July - Nov 06 are typical Events in my Library. I use keywords and Smart Albums extensively. I title the pics broadly.
    I keyword on a
    Who
    What
    Where basis (The When is in the photos's Exif metadata). I also rate the pics on a 1 - 5 star basis.
    Using this system I can find pretty much find any pic in my 50k library in a couple of seconds.
    So, for example, I have a batch of pics titled 'Seattle 08' and a  typical keywording might include: John, Anne, Landscape, mountain, trees, snow. With a rating included it's so very easy to find the best pics we took at Mount Rainier.
    File -> New Smart Album
    set it to 'All"
    title contains Seattle
    keyword is mountain
    keyword is snow
    rating is 5 stars
    Or, want a chronological album of John from birth to today?
    New Smart Album
    Keyword is John
    Set the View options to Sort By Date Ascending
    Want only the best pics?
    add Rating is greater than 4 stars
    The best thing about this system is that it's dynamic. If I add 50 more pics of John  to the Library tomorrow, as I keyword and rate them they are added to the Smart Album.
    In the end, organisation is about finding the pics. The point is to make locating that pic or batch of pics findable fast. This system works for me.

  • How to migrate User Define Function to another mapping in other namespace

    Hi Everybody
    I have define many User Define Functions in mapping
    How can i use them in other mapping
    Thank you in advance

    Hi,
    I tried to explain the steps.
    1. Take the JAVA code of your User-Defined Functions
    2. Go to a JAVA editor (e.g NWDS, Eclipse, etc...)
    2.1. create a Java project
    2.2. create a Java class
    2.3. inside your Java class, put each JAVA code of your User-Defined Function inside a Method
    2.4. Export your Java class to a JAR file (e.g my_tools.jar)
    3. Go to IR
    3.1 create an Imported Archive (IA) and upload your JAR file.
    3.2 in this IA, you see your Java class which contains all your methods.
    4. inside your mapping,
    4.1 create a User-Defined Function <u>and import</u> your class
    4.2 use your method.
    So, you define in only one place your code (thanks to a IA) and you will be able to use it inside several mappings.
    I hope I don't forget steps...
    Advantage: if tomorrow, you want to create a new function, just add a new method to your Java class and re-import your JAR file
    Oh, I missed: your IA must be created inside a specific Software Component (SC__TOOLS) and this one must be linked with the others by a "Usage dependency", else your IA will be recognise only in one Software Component (and maybe only in one namespace)
    Mickael

  • How to trigger events from inside an event to another event-stru​cture

    Hello,
    i have two event-structures (struct1 and struct2) which are running at the same time parallel in a loop.
    Currently there is an keydown-event in struct1, so when i press an ok-button then the corresponding event executes in struct1.
    struct2 is used to execute menu-entries from a custom runtime-menue.
    What i want to do is to select a menue-entry (which executes an event in struct2) and the from inside this event i want to trigger an event in struct1 (means simulate keypress ? ).
    Is this possible?
    Thanks for the help
    Solved!
    Go to Solution.

    If I read this problem correctly, you are essentially trying to do the same thing from different events in different event structures.  This type of problem is very common in UI based programs, since you often want to have the same action triggered by multiple events (e.g. button press, menu selection, keyboard shortcut).  You may wish to consider a change in your basic architecture.  Instead of splitting your code into two event structure loops, try splitting it into an event structure loop and a task handling loop.  The event structure only processes events.  At each event, it generates one or more tasks, which are passed to the task loop via queue.  Traditionally, the task data would be an enum for the task name and a variant for the task data.  You can find a discussion of this type of design here.
    For new designs, I would recommend a task object (use LabVIEW classes).  The task data type is the parent task object.  The actual tasks will be child objects.  This simplifies your top-level code quite a bit and makes it easily extensible without changing the top-level code.
    If you need more information, let us know.
    This account is no longer active. Contact ShadesOfGray for current posts and information.

  • Invoking an event from another event

    Hi,
    I'm kind of new to the event structure in LV 7. Can anyone tell me how to invoke another event from the other one. For example i have two events say "calculate" to do something and "popmessage" to pop-up a user defined message box. How do i trigger the popmesage event upon timing out?

    Hello,
    In order to invoke a new event from within an existing event, you need to use programmatically generated (or user) events.
    To find more information on programming with events,
    See the LabVIEW User's Guide
    In LabVIEW, go to Help, Search the LabVIEW Bookshelf
    Click the LabVIEW User Manual
    Chapter 9 describes Event-Driven Programming.
    Read the event-programming tutorials.
    Go to http://www.ni.com and click on Support at the top.
    In Option 3, enter keywords "events labview" (without quotes).
    The first link should be Event-Driven Programming in LabVIEW and the
    third should be Advanced Event Handling with LabVIEW 7 Express.
    Look at example code in LabVIEW
    In LabVIEW, go to Help, Find Examples.
    On the Search tab, enter "events."
    Open "Programmatically Fire Events" for an example of triggering a new event from within an existing event.
    I have also attached a simple example showing how to use programmatic events to invoke a new event from within the current event. However, the new event will not be processed until the current event is finished.
    Is your situation that the calculate event may take a long time and you'd like to pop up a message after a certain amount of time? If so, one solution is to have parallel event structures. In the second structure, only process the user event. However, a simpler solution may be to check the clock before your processing loop and com
    pare this value periodically in the loop to see if a certain amount of time has elapsed.
    Happy coding,
    Grant M.
    National Instruments
    Attachments:
    Programmatic_Event.vi ‏40 KB

  • Event structure: have one event trigger another event

    I have an event structure with two events. I want the finalization of the first event to trigger the second event. Both events are triggered by a boolean value change, say "boolean 1" and "boolean 2". Can I have a local variable of boolean 2 inside event 1. By changing its value, it should trigger event 2. However, this doesn't seem to be working. (see attached example)
    any help?
    Solved!
    Go to Solution.
    Attachments:
    test.vi ‏9 KB

    Tim's reply is the answer you are looking for.
    I would like suggest that you create a sub-VI that doesw the work in the second event you want to fire so tht rather than resorting to having one event trigger another, you can simply use the sub-VI that does the work in event_2 after the sub-VI that does the work for event_1.
    If you decide to stick one event triggering another, please clearly document the sceme in BOTH events. What you want to avoid is latter deciding event_1 should be triggered by Event_2 and the next thing you know, your app hangs.
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • Generate an event from another event

    Hello,
    What im trying to achieve is once a user presses the enter key in a Text Area, it generates another event which is 'pressing a button' without actually physically doing it.
    private JButton btn = new jButton("Submit");
    private void msg_taKeyReleased(java.awt.event.KeyEvent evt) {                                  
        if(evt.getKeyCode() == KeyEvent.VK_ENTER){
           // generate event that clicks button without doing it physically
    } Does anybody know how to do this?
    Thanks

    I would use key binding: [http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html]
    Demo:
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class KeyboardBindingExample {
      public static void main(String[] args) {
            EventQueue.invokeLater(new Runnable(){
                public void run() {
                    new KeyboardBindingExample().launch();
        private Action click = new AbstractAction("Submit") {
            public void actionPerformed(ActionEvent evt) {
                System.out.println("click!");
        void launch() {
            JTextArea text = new JTextArea(20,60);
            JButton submit = new JButton(click);
            JPanel south = new JPanel();
            south.add(submit);
            InputMap im = text.getInputMap();
            ActionMap am = text.getActionMap();
            Object key = click.getValue(Action.NAME);
            im.put(KeyStroke.getKeyStroke("ENTER"), key);
            am.put(key, click);
            JFrame f = new JFrame("KeyboardBindingExample");
            Container cp = f.getContentPane();
            cp.add(new JScrollPane(text), BorderLayout.CENTER);
            cp.add(south, BorderLayout.SOUTH);
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.pack();
            f.setLocationRelativeTo(null);
            f.setVisible(true);
    }

  • How do I move individual photos from 1 event to another event in Iphoto 8

    I have moved from a PC to a mac and was using Picasa before. All my photos are stored on a seperate hard disc and I have imported them all into iphoto. I am trying to edit them and cannot seem to find a way to move an individual photo from one event to another. When you open an event is there any way of seeing the other events and dragging and dropping your photo that way?

    Gale002
    Welcome to the Apple Discussions.
    1 Use PHOTOS view and then select View > Event Titles
    (You can open and close Events by clicking on the wee triangle to the left of the title. option (or alt) - click will open and close all at one go.)
    2. You can now drag and drop pics between Events easily.
    Regards
    TD

  • Call event from another event

    I have a button where i need to call one event from another... does anyone have any ideas on what the syntax would be?
    public class PushButton extends Button
    public PushButton()
    * Mouse Pressed Event
    this.addEventHandler(MouseEvent.MOUSE_PRESSED,
    new EventHandler<MouseEvent>() {
    @Override
    public void handle(MouseEvent e) {
    System.out.println("MousePressed");
    * Mouse Released Event
    this.addEventHandler(MouseEvent.MOUSE_RELEASED,
    new EventHandler<MouseEvent>() {
    @Override
    public void handle(MouseEvent e) {
    System.out.println("MouseReleased");
              *// Make a call to the mouse pressed event????*
    }

    Hi,
    As per your requirement, i hope the below code should work. :)
    public class PushButton extends Button
         public PushButton()
               * Mouse Pressed Event
              final EventHandler<MouseEvent> mousePressedEvent = new EventHandler<MouseEvent>() {
                   @Override
                   public void handle(MouseEvent e) {
                        System.out.println("MousePressed");
              this.addEventHandler(MouseEvent.MOUSE_PRESSED, mousePressedEvent);
               * Mouse Released Event
              this.addEventHandler(MouseEvent.MOUSE_RELEASED,
                        new EventHandler<MouseEvent>() {
                   @Override
                   public void handle(MouseEvent e) {
                        System.out.println("MouseReleased");
                        // Make a call to the mouse pressed event
                        mousePressedEvent.handle(e);
    }Happy Coding !! :)
    Regards,
    Sai Pradeep Dandem.

  • How do I move a compound clip in one event to another event when it is used in a project?

    I've been using FCPX since 10.0.3. The recent upgrade to 10.1 is forcing me to reorganize everything. At some point during the upgrade cycle, Apple decided to store ALL compound clips inside events, automatically, upon creation. I was oblivious to this decision at first. So here's what happened as a result.
    I have 10 projects, numbered 1 through 10. My goal was to have one event for each project. However, it looks like most of my compound clips from my later projects got automatically created and placed in the first event (Video 1) instead of in the correctly numbered event. I'm pretty sure the clips INSIDE the compound clips are referencing the correct event; it's just the compound clip itself that resides in the wrong event. I'd like to move these compound clips over to the event they SHOULD have been created in, in the first place. However, I'm not sure if dragging and dropping them to the correct event will (a) create a new copy of the compound clip (one that is not referenced by any project whatsoever), or (b) move the original compound clip to the right event (removing it from the original/wrong event). Also, I'm really concerned about this, because I'm not sure how this affects the compound clip as used inside the actual project. I often have certain effects, color correction, etc. applied to the compound clip itself, and I don't want to lose that.
    Any advice would be greatly appreciated. I really want to get these clips in order.

    You can freely drag compound clips between events as you've seen.
    If you do this between events in the same library, it will be a move by default; holding down the Option key will make it a copy operation.
    If you drag between events in different libraries, this will be a copy operation. All clips contained in the compound clip will also be copied (or references as sym links) to the target library in order to keep the library completely self-contained (libraries never references each other and never span volumes).
    Mark

  • How to listen one event before another event

    Hello All,
    In my code i m using 2 Events (selectionEvent , FocusEvent) at one object(Gallery). when i select any object in gallery , focus event comes first before Selection Event. but i want selection event shud come before Focusevent. so that i may perform some operations in widgetSelected(SelectionEvent e){...} before the method focusGained(FocusEvent e){....}
    please suggest me in this direction.

    You should, however, be able to write your focusGained method in such a way, that it does different things according to the selection state of your widget and your widgetSelected method in such a way, that it does different things according to the focus state of your widget.

  • Calling mouseClick from another event

    I have some code built in to my mouseClick event that I want to re-use. Is there a way to call the mouseClick code from inside another event. Thanks.....

    Just write a method outside of the event method.
    // INSIDE EVENT HANDLER
    class ActionListener extends blahblahblah {
       public void actionPerformed(ActionEvent e) {
             myReusableMethod(e);
    // outside the event handler, like all the other methods
    public void myReusableMethod(ActionEvent e)
        // do some stuff
    }

  • How do I move selected photos from one event to another in iPhoto

    Using iPhoto 9.5.1, how to I move selected items from one event into another event. I do not wish to merge both events. Thanks.

    select the photos and flag them - then select the target event and use the add flagged photos to selected event command
    LN

Maybe you are looking for