Multiple "generate user event" in event loop

Hello.
1.)  I am wondering if you can user a "generate user event" into an event loop to create a quasi-state machine.
For example create an event loop with the events "event a", "event b," "event c," and so on.   The in "event a" put in a function to generate a user event to call "event b".  Then "event b" will call "event c" and so on.
2.)  If this is possible, then can u put multiple generate user events into a single event loop and have it queue the generate user events up.  For example have the "event 1" case use the "generate user event" 3 times (generating "event 7" "event 8" and "event 9.") to call the next three future event cases in that order?
Thanks
Charlie C.

Of course it is possible, easiest with simply writing signaling properties. (See attached examples, LabVIEW 7.1).
You have to be very careful that you don't create trigger loops, e.g. event A triggers Event B, which triggers Event A ... ad infinitum! :0
Example "Multievents": event 1 triggers event 2, which triggers event 3.
Example Multievents2": event 1 triggers events 2-3-2-stop in sequence.
Message Edited by altenbach on 09-28-2005 01:26 PM
LabVIEW Champion . Do more with less code and in less time .
Attachments:
MultiEvents.vi ‏57 KB
MultiEvents2.vi ‏72 KB

Similar Messages

  • Generate dynamic event of producer loop in multiple consumer loop

    I have one producer loop which used event case to interface with FP controls and 5 consumer loops
    If I have to use the fifth consumer loop to generate dynamic event which send to event case in produer loop. 
    I have to wire register event with dynamic event terminal in producer loop . Also I need to wire user event to consumer loop (at the bottom of screen window) which is far away from producer loop. It is hard to wire them. 
    Is there any other method to let many consumer loop to communicate with one producer loop through dynamic event (the same user event)?

    I like to use an Action Engine to hold control my Event Reference.  Then anybody can send the event commands.
    You may also want to look at the VIs I recently submitted for OpenG here.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • How can I generate a single timer event in a loop?

    I have a simple PID script running inside of a timed loop to control a heating process.  It works perfectly except that I cannot find a clean way to start the timer when it reaches the setpoint.
    Right now, the loop just runs for a set amount of time (e.g., thirty minutes).  I want it to run for a set amount of time after the heating reaches the setpoint.  I can think of several ways to fudge this, for example with a couple of shift registers and a case structure or with a second loop, but these options seem very clunky.
    I am sure there is a better way.  Can I somehow create an event within the loop that only happens once, for example, to give a timer value one time when a boolean value changes and never rewrite it?
    Thanks in advance for your help.

    You could keep the boolean value in a shift register or a feedback node.  You then need a little bit of logic to check to see if the boolean changed from false to true.  From there, you can put in your get timer inside of a case structure.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • Am I able to tag a data point of a spreadsheet that is being created by a datalogging VI such that at the end I have the data with multiple tags which corelate to events during a measurement cycle

    Am I able to tag a data point of a spreadsheet that is being created by a datalogging VI such that at the end I have the data with multiple tags which corelate to events during a measurement cycle
    My final need is to take data from a datalogging VI and store it in a spreadsheet with tags that corespond to events in a subVI which is controlling motor movement. This will allow users to view all data and mark the relevent data for analysis. As usual, user want everthing but with conditions.

    Sure. What you do is take the numeric value acquired, the tags you want, and build them into an array. So now, when you write to the spreadsheet, you'll have a 2D array. One thing you have to keep in mind is that all elements of an array have to be of the same type. So if your tags are strings, you'll have to convert your numeric data into strings as well.

  • Steps to develope user name generation event handler in OIM 11gR2

    Friends,
    Can you please provide me steps to develop user name generation event handler in oim 11gR2?
    Thanks,
    Chakri

    Thanks for providing the detailed steps. This is waht i was looking for.
    I will follow these steps and let you know the results.
    Thanks for your support.

  • How subscribe a user to an event in PHP?

    Hello !
    I'm using the webservice Oracle CRM On Demand, and i want to do something.
    I have no idea what i'm doin, and i have no idea if you can undestand what i say.. ^^
    So, I have "Contact" (users) and "Campaign" (events). I can add a new Contact in PHP (with for example this query AccountWS_AccountInsertOrUpdate_Input and the goods parameters), and i can add a new Campaign, same way. For each, we need to use an wsdl (ex Contact.wsdl)
    Now, i login my oracle account (on my browser), if i click on a campaign (event), i can add a Contact (user) to this event. It's something like if a user subscribe to an event. Ok. If i do this on my browser it's ok, i can add an user to an event.
    But now, i need de to that in PHP.....My problem, where is the link between Campaign and Contact in fact ? In Contact.wsdl ? Campaign.wsdl ? Other ?
    If you have an idea.... Thanks !
    Ps : Do you understand me ? ^^

    Ask here:
    https://discussions.apple.com/community/ilife/iphoto

  • Need to monitor event ID with Event Level :Critical , Also how to generate (powershell or otherwise) an event with Event Level :Critical

    Need to monitor event ID with Event Level :Critical , Also how to generate (powershell or otherwise) an event with Event Level :Critical

    Hi
    First, we Need to clarify what do you want.
    1) You want to Monitor a Windows Event with the severity "Error" (there is no Critical for Windows Events, only Error").
    2) You want to create an Event in SCOM. I think you if you talk about "Event" in SCOM you mean actually an Alert.
    There is no direct way like a tool/powershell script  of only creating an Alert in SCOM only if you are going to use the SCOM SDK
    http://msdn.microsoft.com/en-us/library/hh329086.aspx or using the Orchestrator Create Alert activity.
    If you want to create a SCOM alert depending on a Windows Event you either can create a rule
    http://technet.microsoft.com/en-us/library/ff730470.aspx or a Monitor
    http://jimmoldenhauer.blogspot.ch/2013/03/scom-2012-how-to-generate-alerts-from.html 
    Cheers,
    Stefan
    Blog: http://blog.scomfaq.ch

  • User event or event structure time-out

    Hi,
    I have two VIs one is a producer, one consumer.
    The consumer VI is called programatically (i.e. not wired) when the producer VI is run
    Both have user interfaces using an event structure.
    I have a control on the producer that i wish to use to trigger an event in/pass a value to the consumer VI. I have implemented this in two ways, but am not sure which is the 'preffered solution'.
    Solution 1:
    Detect  control activation in the producer VI using event structure, load new value in to a global variable.
    Use the time out event case in the consumer VI to load the value from the global variable.
    Solution 2:
    Set up a user event in the producer VI, load the Event Registration Refnum in to a global variable, use the event structure to create a new event when the control value is changed by the user.
    Use  Event Registration Refnum global variable in the consumer VI to trigger the event structure (loaded once, when the VI is first loaded).
    Solution two means the time-out event case does not need to be active, meaning the consumer VI will be doing nothing except waiting for either the user event, or direct user interaction. It will also not have the potential time delay of up to 1 x the time-out value of the event structure. It does require a sequenced start of each VI for the Event Registration Refnum to be loaded in to the global variable before the global variable is read by the consumer VI.
    My end application will be utilising a number of consumer VIs and will require user interaction information from the producer to be passed to them. Which proposed structure would be the generally accepted better practice? 
    ...or if i've missed the best solution, where should i be looking? 
    Thanks,
    Blue 
    (xp, LV 8.6) 

    Example of Queue based function Globals.To store the events and data.
    http://forums.ni.com/ni/board/message?board.id=170&message.id=240328#M240328
    Balaji PK (CLA)
    Ever tried. Ever failed. No matter. Try again. Fail again. Fail better
    Don't forget Kudos for Good Answers, and Mark a solution if your problem is solved.
    Attachments:
    AI Queue.vi ‏30 KB
    DAQmx AI.vi ‏59 KB

  • I can no longer use all of the "Computer Management" tools against a remote computer. "Local Users and Groups", "Event Viewer", "Performance Logs and Alerts" and "Device Manager"

    Hello All,
    I can no longer use all of the "Computer Management" tools against a remote
    computer. "Local Users and Groups", "Event Viewer", "Performance Logs and
    Alerts" and "Device Manager"
    kindly see the below snapshot for assistance
    REGARDS DANISH DANIE

    This link may help....
    http://windowsxp.mvps.org/admintools.htm
    Freeman

  • What causes multiple entries in my calender events in my iPhone 4s?

    What causes multiple entries in my calender events on my iPhone 4s?

    Hi jeffpetit,
    Here is a link that will help you troubleshoot this issue with the camera on your iPhone:
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    Camera isn't functioning or has undesired image quality
    If the screen shows a closed lens or black image, force quit the Camera app.
    If you do not see the Camera app on the Home screen, try searching for it in Spotlight. If the camera does not show up in the search, check to make sure that Restrictions are not turned on by tappingSettings > General > Restrictions.
    Ensure the camera lens is clean and free from any obstructions. Use a microfiber polishing cloth to clean the lens.
    Cases can interfere with the camera and the flash. Try gently cleaning the lens with a clean dry cloth or removing the case if you see image or color-quality issues with photos.
    Try turning iPhone off and then back on.
    Tap to focus the camera on the subject. The image may pulse or briefly go in and out of focus as it adjusts.
    Try to remain steady while focusing:
    Still images: Remain steady while taking the picture. If you move too far in any direction, the camera automatically refocuses to the center.
    Note: If you take a picture with iPhone turned sideways, it is automatically saved in landscape orientation.
    Video: Adjust focus before you begin recording. You can also tap to readjust focus while recording. Exiting the Camera application while recording will stop recording and will save the video to the Camera Roll.
    Note: Video-recording features are not available on original iPhone or iPhone 3G.
    If your iPhone has a front and rear camera, try switching between them to verify if the issue persists on both.
    Take care, and thanks for visiting the Apple Support Communities.
    Cheers,
    Braden

  • Imovie keeps getting hung up generating thumbnails for new events.  How do I fix this?

    I imported several movies from my miniDV camera without issue.  Yesterday I tried to import another movie, only about 30 minutes long to a new event, and the "generating thumbnails for new event" has taken 12 hours and is still not complete.  I tried to force quit and reopen the program it just starts the process again upon opening.  I went online and downloaded and installed the imovie updates.... still no luck. I can't even use imovie now because when I open it it just goes back to generating thumbnails.  Any thoughts?  Im new to the Mac, and I just bought this computer 3 days ago and want to love it, but this is frustrating.

    What version of iMovie 2011.  Make sure you have installed all updates.  There has been several updates addressing stability issues.  If you have a newer system there were compatibility issues.  Hopefully this will fix your issues.  I have a new 2012 MBP 13 and works fine.  It did lockup (pinwheel) 2x and has been fine.
    After the updates running Disk Utility and repair permissions as well.  Make sure things are correctly referenced.
    Good luck
    Brian

  • Generate User Login in "Create User" Request

    Hi Guys,
    I have more a problem. To create user, I am using a Request (Create User Template), I managed add the attributes that would necessary normally, but I use a Event Handler (Post-Process) to generate user login. So I marked the User Login in Attributes Restrictions, fixing an user login default for example: autogenerate.
    Then I created a new request to create user, I filled out all the fields that I marked to appear. I approved this request, and the user is created with the User Login generate by my Event Handler normally. The issue is, when I create 2 create user requests, as I use a Default value in the User Login attribute, if the first request still isn't approved, the second request isn't created because the "autogenerate" user login already being used.
    Exists some otherwise to I resolve this issue?
    Thanks

    Hi Bikash,
    Use a prepopulate adapter an attribute with timestamp is nice idea, but I use the "Create User" template CreateUserDataSet.xml and not exists a form in Design Console to associate the prepopulate adapter.
    I had thought in eventhundler because I use a method that check on Active Directory if the user login generated by other method, already is being used. And I use this eventhandler in HR GTC recon too.
    About XL.LDAPReservationPluginImpl, I opened the oracle.iam.identity.usermgmt.impl.plugins.reservation.ReservationInOID but I not understood as use this option. If I needs add in this class my method of generate user login. If I needs implement an new class similar to this class, using my methods and associate the name of class in XL.LDAPReservationPluginImpl.
    Thanks a lot

  • An Error occurred in the following Event Subscription: Event Subscription

    Dear All,
    i got a mail from WF mail which is below:
    +From: XXXX WAX [mailto:wfmailer@XXX WAX.com.xx]+
    Sent: Monday, March 28, 2011 3:24 PM
    To: XXxxHrmsSupport
    Subject: Action Required: Local Event ERROR : oracle.apps.ar.hz.Location.update / oracle.apps.ar.hz.Location.update32336
    To  SYSADMIN
    Sent  28-MAR-11 15:23:08
    ID  265172
    An Error occurred in the following Event Subscription: Event Subscription
    Event Error Name:
    Event Error Message:
    Event Error Stack:
    Event Data: Event Data URL
    Other Event Details:
    Event Field                    Value
    Event Name                  oracle.apps.ar.hz.Location.update
    Event Key                    oracle.apps.ar.hz.Location.update32336
    From Agent                  WF_DEFERRED
    From System                 PROD.OWSC.COM
    To Agent
    To System
    Priority                          50
    Send Date                  28-MAR-2011 15:20:18
    Receive Date              28-MAR-2011 15:21:35
    Correlation ID
    Parameter : USER_ID 2085
    Parameter : RESP_ID 50348
    Parameter : RESP_APPL_ID 660
    Parameter : SECURITY_GROUP_ID 0
    Parameter : ORG_ID 81
    Parameter : LOCATION_ID 924
    Parameter : #CURRENT_PHASE 101
    Parameter : ERROR_TYPE ERROR
    Parameter : SUB_GUID A242DC2FF79D70A7E030
    Action History
    Num
    Action Date
    Action
    From
    To
    Details 1
    +28-MAR-11 15:23:08+
    Submit
    SYSADMIN
    SYSADMIN
    Please click on one of the following choices to automatically generate an E-mail response. Before sending the E-mail response to close this notification, ensure all response prompts include a desired response value within quotes.
    Retry Raise Event
    Retry Raise Event: Abort   Raise Event with Event Key   Raise Event with Event Key and Event Data   Raise with Event Key, Event Data and Parameters  Request Information
    The client expecting detailed mail regarding this OED.. kindly help me to find this WF mail answer,,
    What is this mail, what is the reason, what action i have to take for this ?
    Regards
    Hameed

    Dear Hussein,
    Thank you for your support,
    You have mention the excat document which is realted to my error.
    Oracle.Apps.Ar.Hz.Location.Update / Oracle.Apps.Ar.Hz.Location.UpdateXXXXXX [ID 352888.1]i saw the soultion in this above document, still i have dought will you kindly clarify me !!
    · If the event is enabled with subscriptions and that is giving some error message, it means that the user is trying to update the location and he is doing something wrong. Is this correct?
    · If I disable the subscription from the production will that create any problem?
    Kindly expecting your suggestion
    Regards
    Hameed
    OS: Windows server 2003
    Application : 11.5.10.2.0

  • Multiple database users, ORM, entity framework, best practices

    Hello everyone!
    You've already helped me several times, however I must ask for an advice once more.
    I was assigned to develop .NET application with Data Access Layer and I've decided to use Oracle Database Software to provide sample data.
    As I'm absolute novice considering creating DAL I'd be grateful if you can examine my plan in terms of security and reliability:
    My database:
    1) I've created database with sample tables and relations between them. All tables belongs to databaseAdmin.
    2) I've created HR and Manager database users and granted them some privileges on certain databaseAdmin's tables. My intention is to reduce access to unnecessary tables. If my application user want to make some changes to Customers table it should be enough to connect to database as HR.
    And now I'd like to map my database using Entity Framework in my application. And that's where I have a problem:
    -If I create Entity Model basing on databaseAdmin tables I get perfect model, however every Entity SQL query would be executed on behalf of databaseAdmin, which breaks my idea of hiding unnecessary tables.
    -If I create Entity Model for HR and Manager users, my models could overlap on tables that both users have access to and no connection between tables would be generated (as from their point of view those tables are just some tables that belong to databaseAdmin)
    Could you help me with this deadlock? Or maybe my assumptions about multiple database users are incorrect? Please, bear in mind I'm a novice.
    I was trying to find a solution in web, and there're tons of data discussing technical aspects of Entity Framework etc., but not so many documents about conceptual model of database.

    hi Michael,
    Thanks for you posting!
    Sorry for I am not totally understanding your issue. Maybe two points need your confirm:
    1. I confuse with the "Service controller"? IS your meaning MVC controller? Or ServiceController(http://www.codeproject.com/Articles/31688/Using-the-ServiceController-in-C-to-stop-and-start
    2.whether  The type of ID in the model is match to the database ? In other words, Is the type of IDin .edmx matched to the database?
    By the way, it seems that this issue is more related to EF. You could post this issue on EF discussion for better support.
    Thanks & Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Disabled button fires events to event structure

    Hi all,
    I was trying to disable a Button on the frontpanel by using its enabled property while the event was executed. The ide wa not to create more events of this buttopn while its fucntion was executed. However thsi did not work.It was creating events even though it was greyed out.
    I troied two different versions:
    1) in the event case of the button (value changed) in a sequence I first dispalbned the button, execuded the code and then enabled it again
        Result: All events were generated even though the button was greyed out
    2)  in the event case of the button (value changed) in a sequence I disbaled the Button and then started a second event. The Second event executed the code and then enabled the Button egain
       Result: Even though the Button was greyed out events were generated
    3) in the event case of the button (value changed) in a sequence I first dispalbned the button, execuded the code and in the timeout event I thenenabled it again
       Result: No additional events were generated
    it seems that the enable state of the button is analysed at teh time when the event is execute din teh event case but not at the time when it was created?
    So I Tried the Time Input of the case expecting that it woudl give me a time stamp of the time when the key was pressed - but instead it gave me the time point when teh event was executed...
    Teh only othe rsolution was to set teh cursor to busy (however I dont want to see the changed cursor during the busy cycle)
    So how can I make shure that no additional events are fired during the time teh code of the Button s executed?
    Thanks for any help,
    Rainer

    to altenbach:
    The evet takes about one or two seconds - I checked the behaviour as shown in the attached examples with LV 8.5, LV 2010, TV2011, LV2012 - allways exactly the same behaviour.
    It does not make any difference weather you use switch when pressed or latched when pressed.
    It does not make any difference weathe ror not you tag "Lock front panel" for that event
    to sth:
    > If you disable a front panel control (ie the button) you cannot click on it and a value changed event will not be
    generated.
    This is my experience so far as well, but if you disable and enable the control within the same event it does not work (see attaced example 1) and 2). It only works if you do the enable in the timeout event.
    > The time stamp from the event case left hand property is the time of the event not the time of execution.
    > If you ask for the timer value inside the event case it will be the time of event case executing.
    In the attached exampel this is not the case. The time differecne between the Time input on the left and the Tick count
    placed in the event is 0 for all events generated whil the button is supposed to be disabled.
    As I wrote before, the explanation I have for this behaviour is that the events are generated by windows weather or not
    the button is disabled and they are queued to the event cue. Only when the event is handeled LabVIEW tests weather
    or not the button is disabled and ignores the event in case it is disabled. If the Disabling and enabling is done
    withim the same event the button pressed events are added to thw event queue and the button is set to enabled before the  next event (button pressed while it shoul be disabled) is handeled. When that event is handeled the button is enabled again (by the original event) and therefore the evenet is not ignored (because by the time of execution of the event the button is enabled again).
    If the button is enabled in the timeout event instead of the button change value event all event in teh queue are executed before teh timeout event. At their time of execution therefore the button is steill disabled. Only then the timeout event enables the button again.
    If the vi is set to busy (sand clock) this is activating actually a windows function/property and no events are queued to teh event queue by windwos. Therefore no button change event is added to teh queue.
    Funtciomn of the 3 attached Vis (LV 2010):
    Run the Vi, then press the Test button once - when it is greyed out click it a few more times. The test button value
    changed event has a 2 second delay. You will see the event counter increase, and you will see the time difference
    between the time property on the left of the event and the tick count vi whci is displayed in the waveform chart.  
    DisableButton 1: Disable and enable are ste in teh same event  
    DisableButton 2: The button is disabled then a second event is called to do the work and then enable teh button again
    DisableButton 3: The Button is disabled in button change value event and it is enabled again in teh timeout event.
    Attachments:
    DisableButton1-3.zip ‏29 KB

Maybe you are looking for

  • Copy and Paste from MathType

    I am using MathType with Adobe InDesign in  Mac computers (OS X 10.4.11 and Leopard OSX) . After creating an equation in MathType and copying to the clipboard I paste it in an InDesign CS3 file. When pasting the equation, which was written using an a

  • Iphone 5 MICROSOFT MESSAGE TO VERIFY MY ACCOUNT

    MICROSOFT HAS BLOCKED MY EMAIL INBOX REQUESTING VERIFICATION OF MY EMAIL ACCOUNT.WHEN I SEND AN ALTERNATIVE EMAIL THEY NEVER SEND ME A CODE TO UNBLOCK MY HOTMAIL INBOX ON MY IPHONE - HOW CAN I STOP MICROSOFT ASKING ME TO VERIFY MY EMAIL ACCOUNT.I HAV

  • IPhone 5c won't update applications

    Hello, I have been trying to update my phone apps for a over a month now and every time I click on 'update', it takes me to the app itself I'm still on version 7.0.2 I deleted some apps and files to gain more storage thinking that was the problem, bu

  • Where can I find the serial key for my creative cloud academic membership?

    I installed after effects with creative cloud login-ed with my academic membership ID. But when I try to start the application of after effects, there comes a dialog ask me to activate the software with serial key, WHY? I have never faced this proble

  • BBP_PDH_WFL_APPROVAL_SIMULATE

    Hi, I need help regarding BBP_PDH_WFL_APPROVAL_SIMULATE While creating shopping cart this FM gives exception WORKFLOW_NOT_FOUND (as seen in debug mode) Whereas if it is run from se37 for already existing shopping carts, it does not give the exception