RT: Dynamic Event possible without polling?

RT Targets only support dynamic events as seen in this demo:
http://digital.ni.com/public.nsf/allkb/42B70D2D0C4B568586256E2F0051441D?OpenDocument
the example uses: "Generate User Event" to fire an event.
The event is fired within an While Loop where two inputs are compared (polling the input all the time....)
I would like to generate an Event on a change of a variable without having to poll.
Is this possible?
thanks a lot
thomas

Hi Thomas,
you can use shared variables and LabVIEW DSC on your RT target without polling but otherwise there's no possibility to avoid polling completely.
Here are some interesting links on this issue:
"Installing LabVIEW DSC, SQL, or MSDE on a Real-Time Target": http://digital.ni.com/public.nsf/allkb/52CC76196A480C6C86256F8900592A25 
This page contains also other interesting links on this issue!
http://digital.ni.com/manuals.nsf/websearch/12BCE84BAF96E2AE862574330022EC46 
"Using the LabVIEW Shared Variable": http://zone.ni.com/devzone/cda/tut/p/id/4679 
"Using Shared Variable Events on Real-Time Targets": http://digital.ni.com/public.nsf/websearch/3AE325EECD9A17AD862570BA00625088?OpenDocument 
The DSC features of the shared variable are limited to use on Windows targets, however you can host variables on a Windows machine and reference them on a real-time target. Another option is to create two sets of shared variables, one set hosted on the Windows side and one on the RT side, with each variable on the Windows set bound to the corresponding variable on the RT side. This would allow you for example to log data on a variable, but have it hosted on the RT side with no network dependency on the RT side to the Windows side.
I hope these informations help you!
Best regards
Suse
Certified LabVIEW Developer (CLD)

Similar Messages

  • I would like to copy pictures stored in Events in iPhoto '11 on my iMac to my MacBook Pro which is running iPhoto '09.  Is this possible without losing the organization of the Events?

    I would like to copy pictures stored in Events in iPhoto '11 on my iMac to my MacBook Pro which is running iPhoto '09.  Is this possible without losing the organization of the Events?

    Only way to do it:
    Export each Event to folders in the Finder from the iPhoto 11 machine, copy those folders to the 09 machine. Import them.
    Apps like iPhoto2Disk or PhotoShare will help you export to a Folder tree matching your Events.

  • Slider mouse up event without polling

    Dear all,
    I have the following problem: I have a multi panel vi. Within this vi there are some numerical slider. I don't want to use the value change event to et the new data value cause this triggers to much events. So I decided to use "mouse up" event for the slider. I think it is known that if you leave the slider while moving, the slider still moves, but the value at mouse p is`nt triggering a event.
    Before LV2009 there was a solution to genervate a dynamic event while the "mouse down" to the whole application for a "mouse up" event. But this isn't supported anymore/not available with LV11.
    Is there any new way to do this? 
    I hope the question is clear and not to confused...
    Thanks a lot for help, best regards

    Hello
    I came up with little workaround. The number of events themselves isn't usually the problem, but processing them is. You may delay processing of your event by waiting until timeout event. Attached vi will explain this idea. But as I said - this is really workaround, and might not be fitting best to your application (depending mainly on other events you are also processing).
    If you want to track mouse events globally (in the whole system), the only LV native way that I'm aware of is Input Device Control pallete in Connectivity.
    Attachments:
    delay_processing.vi ‏16 KB

  • Extending EventDispatcher with dynamic event types

    I'm currently trying to write my own class to extend the
    EventDispatcher class. My goal is to create a Service class which
    acts as a switchboard for incoming socket data. Incoming socket
    data is parsed to create an Event which is Dispatched to the
    appropriate Service object which dispatches the event to any
    registered listeners.
    The problem I'm having is that I'm confused about how to
    handle the event types -- the string parameter which is always
    supplied as the first argument to the addEventListener() function.
    In all the examples I've seen, the value supplied is a class
    constant like MouseEvent.CLICK or VideoEvent.READY. In the case of
    my application, I want the developer to define their own Event
    types without having to go and edit my class files. In other words,
    I'd like to use dynamic event types with my class--maybe something
    like the code I've attached.
    I'm not new to Actionscript but am very new to the
    EventDispatcher class. I'm wondering a bit what that first
    parameter really does in a strict programming sense -- i haven't
    seen it explained all that well in the piles of documentation I've
    read on the Adobe site so I don't really know if I need to define
    my own Event class or what and whether I have to define all those
    possible event type constants/strings in advance or what.
    Any help/advice would be much appreciated.

    I have looked it up here:
    Actionscript
    3.0 Language Reference
    and it just says that the first arg to 'addEventListener' is
    "The type of event" with no further explanation at all.
    I have read this:
    Flash
    Quick Starts: Programming With Actionscript 3.0: Event handling
    It doesn't help much either. It tells me I need the
    appropriate event object which makes me wonder DO I NEED MY OWN
    CLASS? For that first ard to addEventListener, it merely says
    "Substitute the appropriate constant". Given that I want to use
    dynamic types (i think so anyway) that is not helpful information
    either. Every single example on that page uses a class constant for
    event type.
    It links to
    this
    which says "First, the name of the specific event you want to
    respond to. Once again, each event is affiliated with a specific
    class, and that class will have a special value predefined for each
    event--sort of like the event's own unique name, which you should
    use for the first parameter." Still no useful detail about what
    that arg does and the insistence on constants.
    The quick start page also has a link title "Handling Events"
    in Programming ActionScript 3.0 but it links to some documentation
    titled "Working with XML". The only discussion of events in that 10
    or so pages is because some user posted a comment.
    I have read this
    entire
    article which is more helpful than anything in the flash docs
    but still doesn't answer all my questions which (AGAIN) are:
    1) What is the real function of the first argument to
    addEventListener? I have not seen a clear explanation anywhere.
    2) Do I need to write my own Event class?
    3) What about dynamic event types that are defined at
    runtime? Are there any pitfalls or risks that arise from using a
    string instead of a predefined constant as the first param to
    addEventListener() ?
    Please stop telling me to read the documentation. I've been
    reading it for days.

  • Resetting a variable in an event structure (dynamic event)

    I'm working on moving an event structure into a sub VI. This means I have to register dynamic events. 
    The event structure is handling some button clicks. The state of the button (mechanical action = latch when released) resets itself automatically as long as the variable is placed within the value change case.  Leaving the button in this case is not possible when the event structure is put in a sub VI and the variable is located in the parent VI.  How do I make sure the button unlatches after clicking on it?  I have attached an example where all the code is in one VI (the local variable must be moved outside the event structure in order for it to be moved into a sub VI).  Any ideas?
    If you open the VI and run it, you can click Start which will cause the counter to start incrementing.  The button only unlatches as long as the variable is located in the value change case.
    (Btw, how do you put images inline in a post?)
    Rob
    LV2011,LV2012,LV2013
    Attachments:
    img.png ‏18 KB
    main.vi ‏17 KB

    Race conditions are the primary reason not to do that. But since your treating your variable as a latch, I doubt your using the value you read from it anywhere, and in that case it can't create a race condition. There's also the possibility that the control's reference could become invalid. But since this is a sub VI of the control's VI that can't happen (even if it could you can check the error out of the value property node to see when it happens and deal with it).
    I'm not sure about the flickering, Since I can't seem to duplicate it with a simple test case on my machine. It might related to whatever else you're doing in the event apart from reseting the value to false.

  • I sync my iphone with my office computer, but what I really would like to do is syncing only the calendars (because my secretary uses them to set up new apppointments), but syncing all the rest on my home computer. Is it possible without losing apps or mu

    I sync my iphone with my office computer, but what I really would like to do is syncing only the calendars (because my secretary uses them to set up new apppointments), but syncing all the rest on my home computer. Is it possible without losing apps or music?

    Although not recommended, yes.
    Disable automatic syncing when the iPhone is connected with iTunes on each computer.
    The only item you will have selected for syncing with iTunes on your computer at work will be Calendars, which is selected under the Info tab for your iPhone sync preferences with iTunes. Nothing else will be selected under the various tabs for your iPhone sync preferences with iTunes on your computer at work. You will get a warning message that your iPhone is associated with another iTunes library on a different computer which you can ignore when syncing calendars/calendar events only with iTunes on your computer at work.

  • Are you ever required to wire the dynamic event terminals through an event case?

    I remember some time ago, I ran into an issue while using an event case where my program was not functioning properly until, on a whim, I wired the dynamic event through that event case... now the reason I'm asking this in a general sense is because I don't remember what particular code I had this issue with and I could have been failing to update a shift register or something.
    In code I'm currently writing, I'm simply passing the dynamic event wire in a shift reg.  I was just wondering if there's any difference between wiring it through the event cases or simply passing it to the output shift register (without passing through the event cases)...
    any info appreciated!
    Thx
    -pat

    You do not have to wire it through. You don't need a shift register for references since the value will be the same for each iteration. In fact using a shift register is probably what caused issues. You probably updated it with the default value somewhere.
    =====================
    LabVIEW 2012

  • Dynamic events in PD/OM infotypes.

    Hi, I want to know if it's possible to implement dynamic events in OM/PD info like PA info (tableT588Z). If not, other solutions?
    Thanks for answers.

    I don't think so there is any concept of dynamic events in OM.... it's not required....and also not possible i guess....!!!!

  • Using a dynamic event to trigger a signal

    Hi,
         I'm using a state machines approach to control a motor. I would like to trigger the current (for exemple, when current> 10 A, the event Overload happens). I think it is possible by using a dynamic event but I don't know how to do it.
    Does somebody know how to do that?
    Thank you

    I peeked into my tag cloud- I suspected that one of my "BENex.." tags linked to an example from Ben Raynard on this topic.
    Ben posted this example and This link to a Nugget by Ton on dynamic events.
    Jeff

  • Dynamic Events Problem

    I am fairly new to LabVIEW and I am trying to make a GUI that uses
    events to pass messages between three separate event loops, GUI,
    Messaging and Logging. GUI controls the state of the other two event
    loops by generating control events and using semaphores. While the
    messaging semaphore is released by the GUI, Messaging generates
    messages and raises them as events. Some message events are handled by
    the GUI event loop and others by the Logging event loop. Logging, once
    it receives a 'logging ON' control event dynamically registers for
    certain message events and logs the message events it handles to file.
    When Logging receives a 'logging OFF' control event, it dynamically
    unregisters the message events. The logging control events are
    registered for the life of the Logging event loop.
    I have created a cut-down version of my GUI that exhibits the same
    problem. The problem is that after I have turned Logging on and off
    once, it no longer responds to logging control events from the GUI.
    Even though the GUI is still generating the events. I have looked at
    the dynamic logging example in LabVIEW and thought I did the same sort
    of thing but I just can't get it to work that way. The only way I got
    it working was by creating a clean event registration with all events
    each time I want to change the event registration. This is how I have
    done it in the example file and it works. But I don't want to use this
    method, I don't want to have to re-register the control events each
    time I unregister/register message events.
    If anyone knows what I'm doing wrong please edit the example vis and post them back.
    Notes for the example:
    Files are LabVIEW 7.1.1
    Just open the front panels for all the vis before running the GUI vi.
    The Display vi just does the same thing as the logging vi.
    Run the GUI vi and turn on Messaging then turn Logging on and off a few times.
    The example works, but if you wire the event registration refnum
    input when doing dynamic event registration, Logging will only turn on
    and off once, then no longer respond to log control events... what's
    going on?

    I can't tell you how to solve you problems - without code this is always quite tricky.
    But in case you want to log messages to a log file, have a look at this thread
    http://forums.ni.com/ni/board/message?board.id=170&message.id=172117&view=by_date_ascending&page=1
     where I posted a logging-library.
    Maybe it is a useful help for you.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...

  • 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

  • Dynamic Event Handler

    I'm looking for a dynamic event handler subscribe/unsubscribe process, something like this:
    foreach (Control ctrl in form.Controls)
    if (ctrl.GetType() == typeof(TextBox)
    TextBox tb = (TextBox)ctrl;
    if (tb.Name == "tbLocationName")
    ==>tb.TextChanged -= new EventHandler(tb_TextChanged);
    Is this structure possible? Currently, I have to iterate a literal list of controls and I'm looking for something a little more compact.
    timSF

    You could create a MethodExtension for that :). Method extensions need to be declared in a static context, so to keep things organized you can create a seperate static class for all your MethodExtensions (or group them by category).
    Here is an example:
    using System;
    using System.Collections.Generic;
    using System.Windows.Forms;
    namespace ExtensionExample
    public partial class Form1 : Form
    private List<TextBox> _unsubscribeList = new List<TextBox>();
    public Form1()
    InitializeComponent();
    textBox1.TextChanged += Textbox_TextChanged; //Subscribe to event
    textBox2.TextChanged += Textbox_TextChanged; //Subscribe to event
    textBox3.TextChanged += Textbox_TextChanged; //Subscribe to event
    textBox4.TextChanged += Textbox_TextChanged; //Subscribe to event
    textBox5.TextChanged += Textbox_TextChanged; //Subscribe to event
    FooBar();
    public void FooBar()
    _unsubscribeList.Add(textBox1); //Add Textbox1
    _unsubscribeList.Add(textBox5); //Add Textbox5
    //'this' == our Form => Method Extension
    this.TextBoxes_Unsubscribe(Textbox_TextChanged, _unsubscribeList); //Call Method Extension
    private void Textbox_TextChanged(object sender, EventArgs e)
    var txtbx = sender as TextBox;
    Console.WriteLine("Text Changed: " + txtbx.Name);
    //Method Extensions need to be declared in a static context (static class)
    static class MyWinFormsExtensions
    //Form class method extensions, 'adds' this method to the form object and can be called from everywhere (on a Form)
    //This is an easy way to add extra functionality to all kinds of types (note the 'this' keyword before the Form argument)
    public static void TextBoxes_Unsubscribe(this Form form, EventHandler handler, List<TextBox> unsubscribeList)
    foreach (Control ctrl in form.Controls)
    var txtbx = ctrl as TextBox;
    if (txtbx != null)
    if (unsubscribeList.Contains(txtbx))
    txtbx.TextChanged -= handler; //Unsubscribe from the event
    Thomas Goussaert - www.digitalartsandentertainment.com (DAE)

  • Dynamic event registrati​on - FP not in memory ?

    Hello,
    I have problem that I don't understand tith dynamic event registration.
    In my app I have many threads that are initialised when app starts and I switch between them using subpanel.
    In one of this modules I want to register some dynamic events to find whitch controll in cluster was pressed.
    Why I get error 1001?
    I have static reference for all modules in main thread. I start modules but I don't open their FP.
    Solved!
    Go to Solution.
    Attachments:
    err.png ‏30 KB

    Well your image is confusing because you can't run without wiring that reference.  But if you did do that then the error comes from the fact that your VI doesn't have a front panel that is open when you register for it.  So that control reference doesn't really exists.  I mean it exists but you can't reference a control that hasn't been opened.
    I think what you'll want to do is open the front panel, but then set it to hidden.  Then after the front panel has been opened, and hidden, register for the control event.
    Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
    If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.

  • Dynamic event multiple loops

    I'm trying to see if I can use one Dynamic User Event to control multiple Event Structures. It seems that sometimes once a dynamic event occurs and its "interrupt" is answered by an event case, other VIs only have a short amount of time (<50ms) to reach their event case state for accepting this event otherwise the event seems to be cleared and the other VIs are oblivious that the event even occured.
    My Question: Is it possible to use one dynamic event to control multiple Event Structures reliably?
    A previous post somewhat speaks of this issue but does not provide a solution or anything insightful.
    http://forums.ni.com/ni/board/message?board.id=170&message.id=223495&query.id=135563#M223495
    I've included an example of my issue
    Attachments:
    DynamicUE.zip ‏61 KB

    Thanks to both of you. I found the answer to my question in the second posted link. "the common, correct use case is to have one Event structure per dynamic event registration". I tested this out with the previous attachment by registering the User Event refnum from the ESTOP functional global to another Event Registration node. I then ran this refnum to the top loop. (instread of the top loop sharing the registration refnum with the middle loop). Now I can put a delay of 2000+ ms and not even miss an event. cooool. This will probably NOT be my final solution but its good to know in the future.
    Most likely I am going to design each of my main VIs to have a main while loop with a User Event Structure listening for dynamic events. Associated with each of these VIs will be a functional global which contains its User Event Refnum and Registration Refnum. This functional global will act as a gateway into the associated VI for other VIs/Subvis to use. This will follow the "one Event structure per dynamic event registration" rule while keeping my API organized and allowing room for scalability by simply adding more functional globals in the future.
    Just putting this info out there for other users.
    Thanks again,
    Craig

  • Training & Event Management without HCM?

    Hello All,
    I have been asked to find out whether it is possible to implement Training and Event Management without implementing HCM. We currently have R/3 Enterprise 470 (ext. set 110) and I think it may be possible to install the Learning Solution Add-on to give us Training and Event Management functionality even though we do not have HCM implemented. Am I wrong?
    Thanks,
    Paul.

    Hi Vivek,
    Thanks for your reply.  I understand that we would have to set up mini-HR records for all of our employees which would allow us to use much of the functionality of TEM.
    Regards,
    Paul.

Maybe you are looking for

  • Logical database PSJ

    Hi All, I need to add a Y-table in the logical database PSJ and need to assign the fields to one of the Functional Groups. For this I went to tcode SE36 with logical database as PSJ, then went to Extras->Selection Views from menu, I gave the Origin o

  • Error TF10175 The FMS team project does not exist

    We are using TFS and Visual Studio 2013. TFS was working fine for me. However we have to do some Java development and also wanted that code in source control in the project.  I was the lucky one (or not) volunteered to head this up.  I installed Ecli

  • Ap_inv_selection_criteria_pkg disappear in R12?

    Hi, we have a custom import for some invoices to AP. We used to call the ap_inv_selection_criteria_pkg.insert_row in one of our packages, but it seems that in R12 it is not. Do you know if there is a substitute for the ap_inv_selection_criteria_pkg p

  • Which Tablet plays both Flash and Quicktime

    Hello need some advise from you~ I am looking at a Tablet that supports both Flash and Quicktime.  So far I only know that Honeycomb 3.0 supports flash. But you can download this "Rock Player" application to run Quicktime.  On the other hand, I Pad s

  • Captivate 5 Bookmarking Adobe Connect

    Hi we're using Captivate 5 with the latest version of Connect. For some reason content we upload does not seem to bookmark anymore. I've tried various publishing settings but I can't seem to get it work. What are the publish settings we should use to