Important events down into subgroup of experts?

I have a sub - VI that has a bunch of controls, I want to map support, so 'a', 'b', 'c', or "d" will turn one of the four controls Boolean.  I wrote the code to handle this event, and it works fine when I run the sub - VI by itself.

However, I would like to run this VI in a subgroup of experts, and the pressures on the keys sent to event loop of the Subvi.  Before asking this Question, I found two similar queries for a decade, saying it was a "known behavior for the new subgroup of experts of LabVIEW 7.0 feature and is under consideration for a future release.  There was also a mention that suggested that some clever use of registrations for events may be useful.

I will to try to decipher it, myself, but would appreciate any advice (or downright "solutions"), if others have managed to understand this.

Bob Schor

No, I have not.  However, I did some research and found this note (not quite unexpectedly) OR help:

  • When you use the secondary controls, the top-level VI which contains the secondary control handles the event.

So, I've "inverted" my logic.  I got the key down? Event in the Secondary VI, with a reference to controls (in the secondary, VI) I wanted to affect.  I just moved this event to the event loop in the first level VI, past the reference at the top level before you start the event loop, then used exactly the same event loop button down? code in the first level VI.  He has a little 'twisted' - a key down event (say, 'a') in the Top level VI is trapped by the Down button? Event code, the "a" is processed and associated with a control-to-be-changed in the sub - VI running in the subgroup of experts, I use the reference to the controls of the sub - VI to edit the appropriate control of front panel on the sub - VI, using a Value property (signs) to ensure that the Subvi knows the value has been changed.

It worked the first time I tried it!  I didn't know it would be so easy.

Bob Schor

Tags: NI Software

Similar Questions

  • Subgroup of experts can pass events to the top-level event loop?

    I'm working on a VI that may have up to 1000 controls (Yes, she really need that much).  To reduce the size of the user interface and increase the modularity of code, I partitioned design into subgroups that are loaded in tabs.

    Subgroups are responsible for:

    "VI reference to open"--> "invokes the method: Run VI '--> ' invoke the method: Insert VI»

    (Sorry, I don't know how to incorporate images here, yet)

    The upper level has some of its own controls in addition to the case of the Sub-group of experts, and it will be built on the design of producer-consumer model.  The loop of consumer manages the interaction with the hardware (write-only).  Each sub-group of experts will also have its own event loop to manage coordination of the user interface within the Sub-group of experts and also a preprocessing of data that results from the activity of the user within the Sub-group of experts.

    Here's the problem: go in the subgroup of experts, how do I pass an event up to the top-level event loop so that the hardware access request can be entered into the queue of the consumer?

    At first it seems I could solve this problem in two ways:

    (1) rather than to use an Invoke node to insert the Sub-group of experts, is it possible to connect the frame of the Sub-group of experts against a VI that is instantiated in the block diagram?   If there is, I can simply use dataflow to bring jury secondary to the upper level events.   But for now, it seems there is no way to have a subgroup of experts except by using the Invoke node.

    2) there is another way, that we have found, but this is an ugly hack. The reference to the 'Open VI' VI using, I use ' call method: control value: Get.  Gives me the value of a control in the Sub-group of experts, but there is no case of signaling, so I have to resort to polling stations, which slows down the user interface and breaks the model "Event Loop".

    Y at - it of other ideas for how to get events from the Panel under treaty to the next level?

    (of course, this isn't * all * the events we manage.)  The Sub-group of experts will actually a pre-treatment and then send only the selected events to the highest level user-defined)

    Thank you and best regards,

    J.

    I have not used the secondary method before, so I can't save what I think with real experience.

    But,

    If the Subvi who is put in a secondary control on front panel for a queue reference, I think you'd be able to do the Invoke node to set the reference queue control before calling the functioning of the VI.

    The other idea would be do not to have a reference of queue control to pass.  But use named queues and leave the Subvi in high school to create its own queue reference based on the same name that was created in the main VI.  When it ends, it could destroy its unique queue reference and not to force a destroy all and reference to the queue in the main VI would still be a queue works valid waiting for an another sub - VI at the secondary level to generate his reference to the same queue and sends the data in.

  • Single object imported from Illustrator broken down into graphic frames

    Whenever I try to copy and paste a gradient layer to Illustrator, he seems okay - but is broken down into 4 unequal "graphics fames" - when I resize it, it becomes allmessed upward...

    Untitled-1.jpg

    The best way to get a gradient of Illy to ID is to create a very simple object like a rectangle, fill with the gradient and then copy/paste code. This will add the gradient in the swatch Panel, and you can then delete the pasted object and use the gradient.

    Bob

  • Importing audio files into Windows Movie Maker

    Trying to import music files into a movie in Windows Movie Maker, I get a message saying that the name of file.MP3 music could not be imported, but it does not give me a reason why the audio file cannot be imported. Is there something I can do?

    Hello

    This forum is for your comments and your question should be asked in the answers – Windows Forums for
    your version of Windows.

    Answers - Windows Forums
    http://answers.Microsoft.com/en-us/Windows

    =====================

    My friend John Papa - MVP - is the expert on Windows Movie Maker.

    PapaJohn.org
    http://Papajohn.org/

    PapaJohn - online tutorials
    http://www.Papajohn.org/mm2-online-tutorials.html

    Windows Movie Maker Tutorials - check the sounds of the addition in the left menu and others on the
    main screen.
    http://www.windowsmoviemakers.NET/tutorials/

    Windows Live Movie Maker that works on Vista and Windows 7, see the link under Windows Live Essentials.
    http://windowslivehelp.com/

    I hope this helps.

  • Had an accident and I want to import my favorites into Firefox but the only option in the Import Wizard is that is my B/brands are saved on a memory stick. Any solution please. ?

    Had an accident and I want to import my favorites into Firefox but the only option in the Import Wizard is that is my B/brands are saved on a memory stick. Any solution please. ?

    How bookmarks are stored? If they are in an HTML file, you can go to bookmarks > organize bookmarks > import and backup > import HTML, select "in a HTML file" and go from there.

    If you have not currently saved favorites and b / m to import is already in a FF bookmarks file you could just more copy to your profile.

  • ActiveX controls disappear when VI is loaded in a subgroup of experts with the use of the modal to start dialog box

    Hello

    I have a secondary to a VI (VI1) in which one another VI (VI2) is charged. VI1 is used as a module for an Action step in TestStand. Vi2 has controls ActiveX as ExpressionEdit and Adobe PDF reader etc. VI1 VI2 in charge in a subgroup of experts and calls Dialog.vi Modal start. I put 'Show the front panel when it is called' true to VI1 so that the VI appears when the sequence is executed. During the execution of the sequence and when the VI begin dialog is called VI1, all controls ActiveX VI2 (loaded in the Sub-group of experts) modal disappears. Here is the screenshot of the façade of the VI1 operating sequence:

    This problem occurs in TestStand 4.2.1 TestStand 2010 and TestStand 2010 SP1 (for as far as I tested it.) May occur in older versions too). In the attached file, VI1 is 'ExprEdit Test.vi' and VI2 is 'SubpanelLoad.vi '. The sequence attached is developed in TestStand 2010 SP1.

    How can you solve this problem?

    Thank you

    Ganesh Kumar

    Hi all

    Found the solution to the question . The problem is that the front of the VI in which start Modal Dialog.vi is used should not be open before start Modal Dialog.vi is called. In the files that I have included in my previous post, .vi ExprEdit Test (does not work) had the ability to 'See the façade when it is called' enabled in the properties of VI. It was the origin of the problem. When I disabled this option, all started working well (ActiveX controls do not disappear during the execution of the sequence). I had accidentally turned off in .vi ExprEdit Test (work) that worked. A comprehensive review of the differences between the 2 screws led to find the cause of the problem.

    Thank you

    Ganesh Kumar

  • Can you import PDF files into CS6 ADW?

    Can you import PDF files into CS6 ADW?

    Can you import PDF files into DW CS6?

    Laughing out loud

    But you can open your PDF files in Acrobat.  And then copy & paste the content in your HTML document.

    Nancy O.

  • Impossible to import photo files into LR6

    I can't import photo files into LR6 since update on the same time on el capitan update & LR. . Apple says that my computer is ok. Please tell me what to do to fix this

    Hi johnp,

    Have you updated the Lightroom to Version 6.3. Reference: Lightroom CC 2015.3 / 6.3 now available

    Please try to move images from your camera on the desktop and then try the import into Lightroom.

    Kind regards

    ~ Mohit

  • When I import my photos into lightroom, the images are completely black, so I can only see the image in the browser. How can I solve this?

    When I import my photos into lightroom, the images are completely black, so I can only see the image in the browser. How can I solve this?

    Go to Lightroom preferences

    Click the performance tab

    Deselect the graphics processor

    Restart Lightroom

    Kind regards

    ~ Mohit

  • Just bought the new Canon 5 d. Impossible to import RAW files into LR5.

    Just bought the new Canon 5 d. Impossible to import RAW files into LR5. Any suggestions?

    Support for the camera was only added in Lightroom 6, you can upgrade to level or you cam d/load the latest DNG Converter and convert them to DNG format that will be readable in Lightroom 5...

  • Is it possible to import Raw files into the LR catalog...... including all changes in an external file raw editor such as Capture One?

    Is it possible to import Raw files into the LR catalog...... including all changes in an external file raw editor such as Capture One?

    I can import the Raw file successfully, but can't see all the changes that have been applied in Capture One. IM assuming not, but just to check.

    Your assumption is correct, Capture One, Lightroom and other third party raw processors have their own exclusive process and profiles to render the raw data.

    They do not make permanent changes to the raw data and save changes to a .xmp file or to a Lightroom catalog file.

  • When I import a picture into my document they appear polyhedral someone can help?

    When I import a picture into my document they appear polyhedral someone can help?

    His display performance setting. Choose View > display performance > high quality display. Note that the default value is governed by a setting in preferences, and individual object level adjustment is possible.

  • Loss of audio when you import video clips into PrE12 of Nikon D7100

    When you import video clips into pre 12 from organizing the audio becomes uneven (guard droping in and out).

    Clips will play finme in Movie Maker and his plays ok if played within the Organizer, so I know they are. He PC is using windows 7.

    Taken the Nikon D7100 1920 x 1080 30 p (29.97 real rate).  Film are displayed as. MOV and Document Type video/quicktime playback of other threads and works wonder if the question relates to the project settings.

    Digital SLR Edit Mode project settings;  Time Base 29.97 pictures / s; Image size 1920 x 1080; Pixel Aspect square; Calendar-view Format 30 fps drops;  Audio sample rate 48000.

    Can someone tell me what settings should I use for a Nikon D7100.

    Thank you

    Popeye

    What are you - right click the icon on the desktop for Premiere Elements, and then select run as administrator? If so, please return to post 3 where I wrote

    You definitely need a user with the privileges of the administrator account. QuickTime as well as Premiere Elements require that. Sometimes a run as administrator (right-click the icon of the program Office) and selecting run as administrator can help. Please check it out. The permissions are important.

    RTA

  • Can you import PDF files into other software?

    I'm looking to see if there is a software that allows you to push data from a PDF file, software special. I use the accounting software and it would save my company a lot of time if our PDF invoices could be pushed into Quickbooks or converted in order to enter into our system without having to type in it.

    any suggestions?

    The previous answer is just a little - if everyone uses the same format, etc etc, it would be fairly simple to import PDF files into other software. But alas, everyone sends a different format.

    But there are there tools that work well. But they have limits. The tools work best if you have some layouts that you want to import (IE a known provider set). So, you need a reasonable volume of each - if not then just enter the data will be more effective.

    Try looking at ChimpKey who do a good job of importing a PDF file. He does this by converting the PDF to XML, Excel, CSV etc. which will import properly in various popular software. If you have a good amount of data entry, then this approach certainly you will save time and money.

  • How can I import a MKV into first CS5.5

    Hello

    How can I import a MKV into first CS5.5?

    Please help me

    Thank you very much

    I have never used Matroska myself because I only work with material from video cameras, but it is popular and there should be many options that are available to you, but:

    SEVERE WARNING: does not install something like K-Lite codec pack. This will usually require a complete reformat of your boot drive and complete a new installation of the operating system and programs. A typical SNAFU (normal, all contaminated systems upward) situation.

    Post edited by: Jeff Bellune [for content]

Maybe you are looking for

  • Time Capsule and nearby contradictory network of country Codes

    All my gear (Time Capsule 4th generation, MacBook Pro mid-2010 and iPhone 5) was purchased from resellers Apple supported in South Africa. They are all a few years now, but only recently my MacBook Pro and iPhone to my Time Capsule WiFi connections h

  • Remove the sidebar item

    I added a bookmark page to my sidebar and now I can not remove it.Thanks for the help.

  • RESET COMPLETE HP 8600 PRO PREMIUM

    I spent 3 weeks trying to figure this on my own bc that my Bishop case lewis has no idea. Only to keep telling me I can't do that I can't do that he also told me today there is absolutely nothing else that can be done to help me. Then the tech level

  • How do I know what SSD is compatible with the A740?

    I want to upgrade my hard drive but do not know what is compatible? I'm looking at the:

  • wall charger will work?

    OK well I bought a belkin charger the other day because basically, you plug the USB to anything, and it will load the device attatched if that makes sense. Technically speaking, if I plug my player inside this charger USB it won't FRY or something li