Is it possible to generate a user event when shared variable value change on RT target?

Hi,
    I wonder if it is possible to generate a user event when a network published shared variable value change?
    Thanks a lot!
    Regards,
    Tom

Tom,
I understand not wanting to waster resources on polling but I am not aware that LabVIEW can automatically generate an event on a SV change.
Maybe a better solution...
You could implement lower level TCP communication (i.e. have a look at STM - simple messaging protocol) for passing data betweeen RT and PC (instead of using a SV).  You could send a generic command (boolean trigger maybe?) from your RT system when the value of whatever it is the SV is storing has changed.  You can avoid polling on the non-RT system this way.
Dan

Similar Messages

  • Intel_iommu1 DEBUG generated a fault event when translating DMA read

    Hello List,
    I'm getting
    "intel_iommu1 DEBUG generated a fault event when translating DMA read on address for PCI(0,0,6). The reason is : The READ field in a page-table entry is clear when DMA read ... pte not found in domid3 for faultin."
    The hardware is IBM X3500 server and OS is Solaris 11.1 Express 64bit.
    I have tried to edit grub with -B immu-enable=false -B intel-iommu=false -v -k -B  but I'm still getting the same message on boot screen.
    I have also tried with intel-iommu=no & intel-iommu=0
    Can someone please help ?
    Thanks.

    hi Cindy,
    I have disabled the Intel virtualization from bios and changed the disk mode to ide. Im still facing the error.
    i have also tried command line options to grub such as intel-iommu=false intel_iommu=false. I tried to replace false with "no" as well as 0 but the error is still there.
    can you help please help me with the exact grub setting?

  • How can I fire an event case on the value change of an indicator, or a network variable?

    Hi!  I have an event structure setup to look for a value change of an indicator on the front panel.  The indicator is updated by the value of a boolean network-published shared variable through a seperate parallel loop that is polling all of the network-published shared variables.  The event, however, does not fire when the indicator changes value.  I have switched the indicator to a control and tested it with user interaction and that works just fine.
    I want to use the event structure space for my code exectution because it seems logical that that is where it would go, and it will help keep my block diagram tity.  The code is also something I would like executed with the front pannel temperarily disabled.  I would rather not have the code in my network-variable polling loop because again the tity issue.   I would also rather not use a notification VI wired to an independent loop for this particular code.
    Is there a way to have an event structure fire an event with the value change of an indicator, or a network variable directly?
    Thanks for your input.
    LV 8.5
    -Nic

    Thanks for the reply.
    I went about things a little differently, but got them to work so..... .  It really was not my desire to have a boolean indicator on the front panel.  As previously stated, my ultimate goal was to have an event fire on the change of a network variable, which I had to poll for anyway but that is tucked away in a section where I am handling all my network variables.  I ended up using that Create User Event, Register User Event, and Generate User Event SubVIs to handle the task.
    I've read the help for all of those SubVI's and it is not entirely clear to me if the event fires every time the "Generate User Event" receives some inputs, or if it only fires when the value changes.  I could do a test to find out.  It wouldn't be too difficult to add a shift register or a feedback node and place the Generate User Event in a case structure so that it is only fired when the input changes state.

  • Event structure to detect value change of a control within a cluster in an array

    I have 1D array that contains a cluster. The cluster contains a numeric and a boolean control.
    If the user starts to edit the numeric control value i would like to call one subVI, and if the boolean control value is changed, call a different subVI.
    The array control on the front panel allows the user to edit a number of the array elements. 
    I would like to use an event structure to detect a value change in the cluster. When editing the Events, in the Event Sources panel i get the option to select only the array, not the cluster within the array or the controls within the cluster. Can the Event structure be opened up to show controls within clusters and arrays?
    The solution i am using is to detect a mouse up event on the array and then use property nodes to  determine if the key focus is on the numeric, and  a case structure to determine which subVI to call. This works, but is there a better (simpler) way?
    Thanks, Blue.

    Thanks for the responses guys.
    The tricky bit was that i wanted the numeric control values to flag they were going to be edited, so i could call a subVI, before their values were changed by the user. This is done by using the key focus property node, - i need to detect changes on the fly rather than post the event.  Probably didn't make this clear enough in my original post. 
    The array is of variable size depending on if the user decides to insert or delete elements. The user also has the option to click and edit the array without having to do to much scrolling through the array index, as the FP shows several elements at a time. The Event Structure does a good job of automatically determining which element in the array is being edited, and returning those values to the property nodes. Turned out simpler than i thought it might be at one point!
    Cheers, Blue. 
    Message Edited by BlueTwo on 01-15-2009 06:52 AM
    Attachments:
    evstrct1.jpg ‏63 KB

  • How to trigger a event when there in any change in category in the service request

    Hello Experts
                            I need to set Employee responsible dynamically when the exact category is chosen in the service request. i am following a approach to register a function module in the crmv_events so that the event will be called as soon as categorization is changed in service request.I have never configured crmv_events.please guide me its urgent.
    Please tell me if a better approach is available.
    I will award points immediately .Reply as early as possible as its urgent.
    Thanks in advance

    Hi Rashmi,
    I would say, instead of doing it from any event function module, do it from web ui bol layer itself.
    Define get P method of category and set event on the value change. Create that same event from event handler and write the code for getting(use FM) and setting emp responsible in that event using bol programming.
    Please let me know if you need the codes for doing all this.
    It would be great if you can paste the the screen shot of the view you are using in web ui.
    Thanks,
    Bhushan

  • PDA build error when using a 'value change' event on two controls

    I get a build error when I use a 'value change' event on controls of a different type or even a different numeric representation. I'm using LV 7.1 PDA with no other modules installed. Attached is a picture of the entire code and the error message.
    Try to take over the world!
    Attachments:
    PDA Error.jpg ‏48 KB

    Hi,
    I verified the error that you are seeing. It appears to be a bug hence I have reported it to our developers. Hopefully this bug would be fixed in the next relaese of the PDA module.
    Thank you for pointing this to us. It is through feedback that we can make LabVIEW PDA module even better.
    Regards,
    Ankita A.
    National Instruments

  • Possible Bug (or Perhaps User Error) When Importing Audio

    During a recent session I wanted to import some vocal samples I purchased. The vocal samples are 24bit WAV and when started to preview them via Logic's browser, things got strange.
    When previewing the audio, the vocal samples automatically "fade out" after about 5 seconds, when the actual samples are much greater in length, some up to 15 seconds long. I place the file into the arrange window and after selecting "no" to the option of importing the tempo information, the placed region reflects the previewed audio in that it is much shorter than what is should be length wise. I even have the project tempo identical to the sample tempo. Here's where it gets stranger.
    These same samples play in their entirety when using iTunes. As a test, I converted a couple of the samples to AIFF and WAV via iTunes, and then imported these new files into Logic. The files play in their entirety now, however, because they were converted in iTunes they have been resampled to 16bit. As a purist, I like to keep my audio in its original state until mixdown/bouncing from Logic.
    Has anyone had a similar issue with their audio files? I'm well versed when it comes to using Logic and this is something I've never encountered before and have exhausted all attempts to solve this problem on my own.
    All help/suggestions much appreciated.
    Cheers.

    Thanks for all the input.  The biggest problem I'm having with all this - is the PE-11 on my laptop lets me drag iTunes songs directly to the video project.  The PE-11 on my desktop has the error.  I have uninstalled and reinstalled, on the desktop - but the problem still exists.  Within iTunes, you can right-click on a song and make an mp3 copy (which is then added to your "recently added" tab in iTunes).  I have converted the songs I want to MP3 so I can finish the project.  I didn't have to make a .wav file - and the copyright protection is a non-issue, as my brother is the artist who's songs I'm trying to use on my latest project.
    iTunes has relaxed their policy on inclusion of iTunes music in videos (which is why it works on my laptop).  Yes - you still need the artists release agreement for copyright - but according to what I've received from Apple today - iTunes isn't stopping me from putting the songs in - it's got to be an Adobe thing.  Strange thing here is both machines (laptop and desktop) are Dells.  Desktop is an Alienware Auroa R4; laptop is a Dell Latitude E6430 -- both running Win-7.
    Once I finish the project - I'll see if I have the same issue with Premiere Pro CS6 - which we have at work.  Years ago - the only way to use a songs from my iTunes library was to burn the desired songs to a playlist on CD, then re-import into iTunes, with mp3 as the default importer - then move the files into the project.  At least now - within  iTunes, you can convert a song directly to mp3 without creating a separate disk - but I'm bothered as to why the mp4 works fine in PE-11 on one machine - but not the other.  Obviously, I can't solve it today (smile) so I'm moving on in order to finish the video project.
    Again - thanks for all your help.  I'll advise (next week) how my test of iTunes on Premiere Pro CS6 works (natively or mp3 conversion required).
    Coach B.

  • How to setup to trigger an event when choose the value from cookie

    Hi,
    I define an firepartialaction event for the messageTextinput, this event can be triggered when the user key in the via keyboard. but failed to be triggered when the user choose the value from the cookie. How to setup or program to trigger the event even the user choose the value from the cookie?
    Best Regards,
    Jiang

    Hi,
    so the next missing information is what the event is that you expect to fire. If the cookie value is displayed in a list then John is correct and you populate the input field behind the scenes in which case e.g. no ValueChange listener fires or autoSubmit action is issued as you don't update the data through the UI component
    Frank

  • How to create integration event when Contact's address changed?

    I want to create an integration event and send contact's address to an external system whenever a Contact record type is modified. The problem is contact's address is not on the track changes list so I can't select it. I talked to Customer Care and they said you can't do this currently.
    This is important to me since we want to send updated address info whenever it's changed. I'm able to send updated contact email and phones info since they are available on the track changes list.
    Does anyone know how to get around this limitation regarding contact address?
    Thanks

    Hi, dirty, but yes...
    workaround: just configure for every change on contact(use modified date in your integration event config as the only audit field) and check in the workflow condition if the person address has changed...there you go.
    Best Regards
    SL

  • How to use workflows to trigger an event when an infotype is changed?

    Hi,
    I need an event to be triggered when a new record is created in infotype 672. This infotype doesn't have a module pool program. Can you please explain about the procedure to get this?
    Thanks....

    First you need to have appropriate entry in SWEHR1. This links the infotype to the business object type.
    You now make further configuration in SWEHR3 to assign what happens when some change is made to the infotype. This can raise an event directly or call a function module that performs some other logic and then raises the event if appropriate.
    You can link a custom business object type to an infotype in SWEHR1. So, if your infotype doesn't have a corresponding business object type, or for some reason you need a custom one, then first create your business object type in the BOR (SWO1).
    Hope that helps!
    Margaret

  • 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

  • About user event

    I have a basic question about  a user event (UE).
    I got to know UE needs at least two "while structure" (for main event structure and generate UE).
    Even In this case, is there still some advantage such as reduction of CPU time and guarantee the interaction of block diagram?
    Cast a glance at two while structures, what is different thing with normal while structure?
    according to NI document at http://digital.ni.com/public.nsf/websearch/86256A47004E16D286256B490060C5A1?OpenDocument
    it seems to exist the limitation of using event.
    What else in using Labivew?
    메시지가 09-09-2005 05:39 AM에 labmaster에 의해 편집되었음
    Attachments:
    user_event.vi ‏42 KB

    First of all, yes event structures are not only in the "base" version of LV. But given the number of other things that NI excludes from that package I can't imagine anyone doing any sort of serious work with it. I've always seen the base version as a very high-priced demo package...
    Second, if you structured a real program like that example, there would not be much reason for using events. However, most real applications would typically only have just the one loop to handle the event. The event would be triggered in either other VIs (by passing the event reference to them as a parameter) or in other events in the same VI. The attached shows one such possibility... With this you type characters into the input string until you press the return key. The code detects this character and generates the user event to transfer the data to the output display. Replace the output string indicator with a VI that sends a command string to an instrument, and you can see why you might want to do this.
    Third, never forget to incorporate error handling in event structures, other wise you can be left in a situation where you can't exit the event loop because an error prevents you from generating the event required to exit.
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps
    Attachments:
    user_event.vi ‏46 KB

  • Event Handler/Cr​eate User Event bug

    This is a problem I've run into a few times on my system (Win2k) so I finally went back and reproduced it step by step since it wasn't too hard. It causes LabVIEW to crash and exit without saving.
    - Create an Event Handler
    - Place 'Register Events', wire output to dynamic event terminal
    - Place 'Create User Event', wire output to 'Register Events'/User Event
    - Place an Empty String Constant [""], wire to input of 'Create User Event'
    - Set empty string property -> Visible Items > Label = True
    - Rename label from "Empty String Constant" to other such as "Event"
    OR
    - Create a cluster constant with something in it
    OR
    - Place a boolean constant
    - Set boolean property -> Visible Items > Label = True
    - Name label something su
    ch as "Event"
    - 'Add Event Case...' to the Event Handler, select Dynamic / : User Event
    - Delete the constant wired to 'Create User Event'.
    - Place a constant of a different data type and wire it to the input of 'Create User Event'
    LabVIEW immediately disappears (all changes are lost) and this error is displayed:
    ================================
    LabVIEW.exe has generated errors and will be closed by
    Windows. You wlil need to restart the program.
    An error log is being created.
    ================================
    If there is a more appropriate place to post things of this nature that don’t really add to the discussion group, but need to be brought to the attention of NI, please post a URL or submittal method. Thanks...

    Thanks for the detailed request. We are aware of this exact issue, and the problem was actually fixed for LabVIEW 7.0 for Mac/Unix. Unfortunately, it did not get fixed for the initial release of LabVIEW 7.0 for Windows, but we have plans to include the fix in the first LabVIEW patch for 7.0.
    Also, the Discussion Forum is great for notifications of this kind. For future reference, you also have the options of emailing NI engineers directly, or calling us with suspected bug fixes, if you would like more direct communication.
    Thanks again, and have a great day!
    Liz Fausak
    Applications Engineer
    National Instruments
    www.ni.com/support

  • Responding to two user events with same name

    LV 2013, Win 7, & LVRT 2013, PharLap OS
    I have a situation where I create an ARRAY of User Events, one for each "domain" .  
    A "domain" is an area of DAQ: there is a SCXI domain, a CDAQ domain, an EtherCAT domain, several domains dealing with TCP instruments etc., about 25 domains all told. The name of the event is "New Channels This Domain".
    When a new configuration comes to the PXI from the host, I sort out the channels by their domain and generate a user event for whichever domains have channels that have changed: more channels, fewer channels, differences. If a domain has no channels that have changed, I do not generate an event for it.
    There is a handler for each domain: in that handler, I pick out the event for this domain from the array, and register to receive it.  I have an event structure that responds to the NEW CHANNELS THIS DOMAIN event.  Since it is an array, then no matter which domain I select, the name of the array is "New Channels This Domain".
    All this works fine.
    Now I have a situation where it makes sense to have one handler for TWO domains.
    I can pick out TWO elements of the array just fine, and register them both.   (See attached pic)  But now, in the EDIT EVENTS FOR THIS CASE list, I have TWO events called "New Channels This Domain".  I can select one for one case, and the other for the other case and it seems to work.
    --- Is there any heartache ahead with this scheme?  
    --- If I change the events in the clusters before, is it going to confuse LabVIEW?  
    --- Is there something I can do to change the name of the event after I pick it out of the array?  
    --- Is there something I SHOULD do at that point?
    Like I said, it seems to work, but I'm leery of it staying that way - I've had event structures disturbed before (LV2010) when changing cluster order.
    Steve Bird
    Culverson Software - Elegant software that is a pleasure to use.
    Culverson.com
    Blog for (mostly LabVIEW) programmers: Tips And Tricks

    CoastalMaineBird wrote:
    Thanks, Greg for that link.  I gave kudos to the idea of the COERCE TO TYPE function, and it seems like it would do the trick, but as of LV2014 it's still not on the palette.
    My question still remains: is it necessary?  Will the event structure remember that it's supposed to use the SECOND event named "X", through all edits and recompiles?  My guess is no, but I'll listen to alternative stories.
    I've been using the Coerce to type for this and enums in versions 2011 through 2014 since learning about it.  I've seen no issue using it in these cases.  I'm guessing it doesn't behave in an expected way for extreame uses which is why NI doesn't release it yet.
    As for would it always know to go to the second event if they are named the same?  My guess is yes.  They maybe named the same but they have different references.  I would think it would be just like having two controls with the same label.  You should never do this, but if you did, and made a local variables on one and wrote to it, it would always write to the correct control.  It would never write to the different control with the same name.  Now even if this is the case it could be confusing to a developer looking at the code, which is why I strongly suggest having unique names.  But if you don't I suspect every thing would work fine, just have a bold comment or something explaining what each case actually is handling.
    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.

  • Handling User Events in sub panel vis and main vis with same Event reference Number.

    Hi All, Iam trying to work to handle events in both subpanel vi and main vi.
    I have a main program, and 2 sub vi. I will load the sub VI in 2 sub panels in main vi. Each sub pael vi has controls on it.
    I have created 2 User events for 2 sub panels vi. One user event consits of a Cluster with 2 Booleans (x & Y) and Other User Event consists of cluster of 2 unsigned 8 Numbers (a & b). These are created and registered in the main Vi and event register refnum is passed to the subpanel vi from the main panel vi.
    I have Event structure in main panel and sub panel vis.
    In one sub panel vi, When the value of one boolean(i.e. X) in the clusters changes, the Events structure in sub panel vi should perform some operation in sub panel vi only. When the value of other boolean (i.e. Y) changes it should perform some operation in main vi. I will try to Generate user event with the x value and Y value changed based on the control clicks in the sub panel vi.
    The OTher panel vi should behave in the smae way when the a & b value changes.
    The "Generate User Event" is working fine some times and sometimes there in no event triggered in the sub panel vi or main vi.
    Please let me know what is the problem Ramesh.

    There is a lot of talking, but not much understanding.  It'd be better if you posted some example VI's of what you are trying to do so that the words will make sense.
    One thing I can tell you is that you don't want to have two event structures handle the same event reference number.  You want to have two event registrations with each one going to its own event structure.

Maybe you are looking for