How do i get a boolean indicator to trigger a event structure

I have two parallel loops running, and i need to use a boolean value, one that comes out from an OR gate, to trigger an event in the parallel, event structure loop.  I've attached a simplified version of the loop.  Is there a way to get this done?  I've tried using local variables, value(signaling), etc. and they haven't worked
Solved!
Go to Solution.
Attachments:
Parallel Loop Trigger.vi ‏10 KB

Here is a revised version of your VI. I modified the mechanical actino of the stop button so it kept it's value until it was read. In addition, I added a delay to your upper loop. Without a delay it was running too fast to actually see the button press. I modifed the event in the the event structure to trigger on a value change of Boolean.
You don't really need the outer loop since it will only run a single time in all instances. On the first execution of that loop it will be sitting in the turn inner loops. Once you exit the two inner loops your outer loop will always exit. Therefore, it serves no purpose.
Your OR in the upper loop is completely uses. It serves no purpose since the result will always be equal to the value of the Stop button.
There are better ways of triggering events. a preferred method would be to use a user event and simply generate the event at the appropriate time. This has the advantage of not requiring additional controls/indicators simply to cause an event to occur.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot
Attachments:
Parallel Loop Trigger.vi ‏12 KB

Similar Messages

  • How do I get Iphoto to ask me before merging events?

    iphoto used to ask me if I was sure that I wanted events merged. One day, I checked the box that says "Don't ask me again". I shouldn't have done that!!! Now my kids can mix and merge all my events - easily!!!
    How do I get iphoto to ask me before merging events?
    Thanks in advance for helping me!

    Welcome to the Apple Discussions. Delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your User/Library/Preferences folder and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding the the Option key. You'll also have to reset the iPhoto's various preferences.
    OT

  • My iphone has calendar history for 10 years.  my icloud only shows about 6-8 weeks back.  how can i get icloud to show all the calendar events in the past that are on iphone?

    my iphone has calendar history for 10 years.  my icloud only shows about 6-8 weeks back.  how can i get icloud to show all the calendar events in the past that are on iphone?

    I encountered a similar problem when finally (and with much regret) I was obliged to migrate my MobileMe to iCloud last month.
    Many years of iCal history vanished without trace during this automated transition by Apple and iCloud then kindly synched the resulting vacuum back to iCal on my Mac.
    Fortunately, iCloud wasn’t able to decimate iCal on my other Macs because (1) they are still running Snow and (2) I had switched them off as a precaution.  Good job I did.
    My solution was to export my iCal data on one of those other Macs to a backup file – then I imported that backup file into my Lion-updated Mac’s iCal. That restored all the iCloud-deleted iCal data back on to my Mac and this was promptly synched automatically to my Calendar on iCloud.  So now it’s all there and showing.
    Perhaps you could do something similar?  In the meantime, be very careful not to let iCloud’s amnesia get synched to your iPhone (and other devices).
    Experience has taught me never to trust an “upgrade” until it is proven to be working correctly and always to keep in reserve another Mac with a properly-functioning system and all synching to it switched off...

  • How can I get/Catch the information about Trigger firing?

    How can I get/Catch the information about Trigger firing?

    I am running one application (backend is Oracle) and have written one trigger, which will insert one row in two tables depending on user event (After Update Trigger).
    I want know last fired Trigger Information.
    Thanks

  • How do I get sdo_point into C host variables from OTT structures?

    How do I get sdo_point info into C host variables from structures generated by OTT?
    Databse Version 10.1.0
    I am using OTT to generate C structures for the Oracle Spatial datatype sdo_geometry. The file is generated as
    #ifndef GEOMETRY_ORACLE
    # define GEOMETRY_ORACLE
    #ifndef OCI_ORACLE
    # include <oci.h>
    #endif
    typedef OCIRef sdo_geometry_ref;
    typedef OCIRef sdo_point_type_ref;
    typedef OCIArray sdo_elem_info_array;
    typedef OCIArray sdo_ordinate_array;
    struct sdo_point_type
    OCINumber x;
    OCINumber y;
    OCINumber z;
    typedef struct sdo_point_type sdo_point_type;
    struct sdo_point_type_ind
    OCIInd _atomic;
    OCIInd x;
    OCIInd y;
    OCIInd z;
    typedef struct sdo_point_type_ind sdo_point_type_ind;
    struct sdo_geometry
    OCINumber sdo_gtype;
    OCINumber sdo_srid;
    struct sdo_point_type sdo_point;
    sdo_elem_info_array * sdo_elem_info;
    sdo_ordinate_array * sdo_ordinates;
    typedef struct sdo_geometry sdo_geometry;
    struct sdo_geometry_ind
    OCIInd _atomic;
    OCIInd sdo_gtype;
    OCIInd sdo_srid;
    struct sdo_point_type_ind sdo_point;
    OCIInd sdo_elem_info;
    OCIInd sdo_ordinates;
    typedef struct sdo_geometry_ind sdo_geometry_ind;
    #endif
    I can successfully access the sdo_gtype and sdo_ordinates using the following ProC code
    exec sql begin declare section;
    int sptype;
    double coord[100000];
    sdo_geometry *spgeom;
    sdo_ordinate_array *spcoords;
    exec sql end declare section;
    /* allocate memory for the geometry host variable */
    exec sql allocate :spgeom;
    select bounds into :spgeom from boundary;
    /* retrieve the geometry type from the geometry host variable into a host variable */
    exec sql object get sdo_gtype from :spgeom into :sptype;
    /* allocate memory for the sdo_ordinate_array host variable */
    exec sql allocate :spcoords;
    /* move the coordinates from the geometry host variable into the sdo_ordinate_array host variable */
    exec sql object get sdo_ordinates from :spgeom into :spcoords;
    /* determine the number of coordinates */
    exec sql collection describe :spcoords get size into :numord;
    /* move the coordinates from the sdo_ordinate_array host variable into a host array */
    exec sql for :numord collection get :spcoords into :coord;
    I cannot, however, figure out how to get point data out of the host variable spgeom. If I prepare code analagous to the other types in the geometry structure, I get an error. I can see that sdo_point is different because it is a struct within the geometry definiton of typedef OCIRef but my knowledge of C is sufficeintly weak that I cannot figure out how to get sdo_point into C host variables. Some sample code for getting the sdo_point data would be greatly appeciated.
    Thanks, Chris

    To get point data from geometry column use following
    select a.location.sdo_point.x, a.geometrycolumn.sdo_point.y
    from tablename a;
    Do not forget to alias the table.

  • Imitate boolean switch behavior using an event structure on a front panel indicator

    Hi,
    I am looking for a possibility to imitate the bevhavior of a boolean switch with an event structure. To be more precise, I want a boolean value to change each time I click on the front panel indicator and then remain constant until I click again. I have not worked with shift registers in a while loop yet, but could this be a way to find a solution?

    LordSnow wrote:
    Okay, I figured it out, BUT I still have a problem. Before I first trigger a mouse event on the front panel indicator, I already need the case structure to be executed once. Therefore I assume that I need some kind of default value, but since the event structure does not create any output at first, I have no idea how to do that.
    Are you talking about the shift register you just created?  You can while in a default value on the left shift register ndoe.  It is wired outside of the loop.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How do I access indicators in other windows of an event structure?

    Let's say I have an indicator in 'case 1' called ON/OFF.   How do I get the status or value of ON/OFF if I'm in case 2?
    or - if this seems like a ridiculous question, am I missing some sort of important concept about how event structures work?
    thanks
    -z

    Local variables are certainly an option.  Property nodes are another, but both of which are probably the least recommended around here.
    You can use shift registers, but then you have to be careful about where you update your indicator.  Unless you've got a ton of these that need updating, that's the way I'd go.
    Place your indicators outside the event structure and then just make sure you wire everything through every case (otherwise you'll end up with the default value of your indicator's type).  See the image...  I think it's more clear than my words can be.
    Message Edited by Will.D on 10-31-2006 04:16 PM
    Attachments:
    Update.jpg ‏18 KB

  • How do I get this text indicator?

    Hi, I am new to Labview and I am going through Labview Tutorials and this one has me stumped. I am using Labview 12 and the tutorial is in the White Papers, Module  7, State Machines, step 10. (Coke Dispensing Machine).
    In the last 3 states in the block diagram they show a purple or pink text indicator named "Money Deposited" with a constant wired to it. I placed this indicator earlier on but only one, can have a different constant for each state? If so how do you do that? The tutorial doesn't explain.
    When I wire the right hand tunnel to the right shift register, all the states in the case structure change back to numbers, delete the wire and they return to named states. Am I doing something wrong, the wiring looks identical to the tutorial.
    I really want to get my coke dispensed, any help is much appreciated!

    Hi Doug_M,
    Let me start with the "Purple or Pink text indicator" you saw on the image. Its actually not an indicator but a "Local variable" of the text indicator. You can create a local variable by right clicking an indicator or control and selecting create, Local variable. You can create multiple local varibales and add it in different states with different contant values wired to it. Hope I addressed your first query. (for more info refere to this link)
    Regarding your second question regarding shift registers. make sure that you are doing the steps 6, 7, 8 and 9 properly. After this when you connect the right tunnel to the right shift register, it should not turn the cases to numbers. One thing which you can check is that in all the states of the case structure, the values wired to the right terminal of the case structure is getting the value of the enum. If there is a non enum value passed at any part of the comparison logic, it may eventually cause the change in cases to numeric.
    It would help us to give you better support if you attach the vi which you are working on from next time onwards when ever you post a question. 
    regards,
    NitzZ
    (Give Kudos To Good Answers, Mark it as a Solution If your Problem was Solved )

  • JTable: How do you get the sort indicator shown in the design guidelines ?

    http://java.sun.com/products/jlf/at/book/Idioms4.html#996747
    As opposed to Volume 1, they don't provide any code :-(
    (http://java.sun.com/products/jlf/)

    You need to put your own TableCellRenderer into the table header. You implement the same interface as an ordinary cell renderer, but you install it differently. Here's a snippet of my code that does this:
         private void setupHeaderRenderers()
              for (int i = 0; i < model_.getColumnCount(); i++)
                   TableColumn tc = t_.getColumnModel().getColumn(i);
                   tc.setHeaderRenderer(new SortHeaderRenderer(/* my ctor args */));
         }and the renderer itself is as below. Apologies for dependencies on other stuff of mine, but you get the idea.
    private class SortHeaderRenderer extends    DefaultTableCellRenderer
      RenderInfo r_;
      SortHeaderRenderer(RenderInfo r)
        r_ = r;
      public Component getTableCellRendererComponent(javax.swing.JTable table,
                                                    Object  value,
                                    boolean isSelected,
                                                    boolean hasFocus,
                                                    int     row,
                                                    int     column)
          if (table != null)
            JTableHeader header = table.getTableHeader();
            if (header != null)
              setForeground(header.getForeground());
              setBackground(header.getBackground());
              setFont(header.getFont());
          setText((value == null) ? "" : value.toString());
          setBorder(UIManager.getBorder("TableHeader.cellBorder"));
          setHorizontalAlignment(SwingConstants.CENTER);
          setHorizontalTextPosition(SwingConstants.LEFT);
          // Check if we are the primary sort column and if so, which
          // direction the sort is in
          if ((orderItems_ != null) && (orderItems_.contains(r_)))
            if (sortDescending_)
              setIcon(sortDescending__.getIcon());
            else
              setIcon(sortAscending__.getIcon());
          else
            setIcon(null);
          return this;

  • How do I get the the indicator light to work with Voice Mail

    I recently switched to Digital Voice.  I have a Panasonic Phone that has a light that indicates when I have Voice mail.  The light is NOT working when I get voice mail, however I get the stutter dial tone when I have voice mails.  Is there something that needs to be turned on, if so where do I find it.

    It's something we would have to check on on our end. I have sent you a private message to get more information from you.
    Anthony_VZ
    **If someones post has helped you, please acknowledge their assistance by clicking the red thumbs up button to give them Kudos. If you are the original poster and any response gave you your answer, please mark the post that had the answer as the solution**
    Notice: Content posted by Verizon employees is meant to be informational and does not supersede or change the Verizon Forums User Guidelines or Terms or Service, or your Customer Agreement Terms and Conditions or plan

  • How can I get all of my calendars and recurring events to synch via iCloud with my iPad2?

    Not all of my recurring events sych via the iCloud with my Mac and IOS devices - most specifically my iPad2. For example, my anniversary appears on my Mac and my iPhone, but not on my iPad2.
    I notice that when I click on "Calendars" when the iCal app is open in my iPhone I get 2 lists of calendars - one that is labled "On my iphone" and the other that is labled "iCloud". The same two lists appear in the iCal app on my Mac. But on my iPad2 the only list that appears is "iCloud".
    Can anyone help with this issue?

    Welcome to the Apple community.
    Contacts aren't backed up and therefore aren't restored from a back up either. They are synced with the cloud, so after you have restored your device you should be able to sign back into your account and turn syncing back on again. If you need to check if your contacts are in the cloud, go to iCloud.com on a computer.

  • How can i get my contact data to populate my events in calendar?

    I want to be able to create a calendar event by either typing a name and getting a dropdown list from Contacts, or by clicking on a contact and getting the option to create an event.  Phone numbers and addresses would then be available in the calendar instead of having to separately looking up the contact info.

    Wow, i knew that just as i sent the question i would get something popping up that i just hadn't worded right. 
    I have noted a thread that says i can drag and drop the contact into the calendar which doesn't seem to work anyway.
    But i'd still like the other techniques if available. 

  • HT2513 How do I get iCal printouts to includes notes for events?

    I'm a new Mac user.  Finally figured out how to put events in iCal, add notes, etc.  Now I need to print my completed calendar but I need the notes to print out as well.  I cannot figure this out.  Can someone help me?
    Thanks!

    It is the calendar on my iPad I was referring to and I was looking for a setting on the iPad. I have now found the problem. it was in my settings on my iMac for synchronizing the iPad. I had the box checked that said do not synchronize events older than 30 days. I have now unchecked the box and now have a historical record on my iPad of all events. Great news... thanks for your help.

  • How do I get a carriage return in a Calendar "event"  in Mt. Lion?  I used to be able to do option-return which has worked for previous s/w versions.  Help!!!

    Carriage returns are not working when viewing events!
    Before I installed Mt. Lion, I could hold OPTION while hitting RETURN and it  ould insert an "invisible" carriage return.  This no longer works.  Help!!!  My calendar is becoming non-functional, as I cannot read my clients' appointments... as there is so much run-on info now. 
    When creating events, I need to put anywhere from 3-10 lines  of text, separated by carriage returns.  This is driving me nuts!
    Anyone have a fix for this???

    Carriage returns are not working when viewing events!
    Before I installed Mt. Lion, I could hold OPTION while hitting RETURN and it  ould insert an "invisible" carriage return.  This no longer works.  Help!!!  My calendar is becoming non-functional, as I cannot read my clients' appointments... as there is so much run-on info now. 
    When creating events, I need to put anywhere from 3-10 lines  of text, separated by carriage returns.  This is driving me nuts!
    Anyone have a fix for this???

  • How to make Text Input in Sales Order Trigger Change Event

    Hi Gurus,
    I have a project going on where when a sales order is created, changed or cancelled, an IDoc is FTP to our freight company.
    Now the issues is when we change a sales order text input (for example, shipping note). Nothing happens. The system doesn't take this as a change so no change event is triggered.
    Text fields I'm talking about is the one from Go to --> Header. and for Item Go to --> Item.
    When I input a note in this field, it comes out in the IDoc, but when I go back to the Sales Order and change the note, it doesn't trigger a change and therefore no IDoc is generated.
    how can I go about this?
    thanks.

    Hi,
    Could you initiate the idoc creation from a workflow?
    Have you checked the event trace?
    Is the BUS2032 object type CHANGED raised? I checked our system and event is raised on text change.
    Transaction SWELS to activate and deactivate trace.
    Transaction SWEL to monitor event raised.
    Don't forget to turn trace off
    Hope this helps
    TB

Maybe you are looking for

  • JSP Session populated with class not working after redirect

    Hi, I create a session (code sample 1 below) on my index.jsp page. Index.jsp has a form on it, and a button that points back to index.jsp. The page is dynamically generated. The session is created fine, and persists properly between pages. However, o

  • Acrobat creation:video embed insertion and page showing

    Hi i'd like to insert a video in a pdf presentation i made. I'd like to who which format is the best to use, i need to send my pdf presentation through emails, so i need my final pdf (with video embed included) to be as small as possible, but still n

  • MWST condition type based on Sold-To-Party country

    Hello, I need MWST condition type to be determined with Country,Sold-To-Party country,Tax Classification1 from Customer master and Tax classification from Material master. But in condition table I could not find filed for Sold-to-party Country. Also

  • Unblocking

    I have recently had my Blackberry unblocked for usage on all networks. Since having this done my phone does not receive incoming calls. The caller will just hear one ring then my phone will show a missed call.  I have tried different network SIMs on

  • Do I need Internet to use find my iphone

    I'm trying to use find iPhone , we have three phones on our AT&T account. It's been working fine. Today I blocked data to the teen on our plan and now I can't track her phone. AT&T said I do not need Internet connection to use this feature . I'm not