Generating Event with Subvi Control on Main Vi

We are creating a code in which on pressing set up button( present on main vi front panel ) we are calling one subvi as pop up window which further contains some boolean controls and every boolean control has further one subvi associated with it, when we press on that button a window comes that has several numeric and string control, what we want is after entering all values on numeric and string control and after pressing ok button, these val;ues should get updated to the sequence list present on main vi front panel, i have tried to do this using queue but what we want is that on pressing ok button( present inside subvi) we need to generate a event on main vi that it should dequeue elements to the list only when that ok button is pressed, i have tried to do it using value signalling property node but this is not working, i am not getting how to do this or there if there is any other better way to do this
I have attached the code for reference.
Attachments:
Automation.lvproj ‏9 KB

A better way to do this would be to enqueue the state that the event case is calling from the instrument state.  Then you don't have to poll the global variable and worry about signaling the event.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Attachments:
queue up state.PNG ‏9 KB

Similar Messages

  • Can I use AWT elements in a JSP, and so could I generate events with them?

    This is because I�m doing a simple JSP that showing a button, my JSP is:
    <html>
    <%@ page import="java.awt.*" %>
    <%! Button b = new Button("Hola!!!"); %>
    <% add(b); %>
    </html>
    But when I tried to see the button in the browser, my JSP generates the following:
    Compilation of '/RAID5/weblogic/myserver/classfiles/jsp_servlet/_gep/_alterno/_23_mayo/__mr4.java' failed:
    /RAID5/weblogic/myserver/classfiles/jsp_servlet/_gep/_alterno/_23_mayo/__mr4.java:79: cannot resolve symbol
    probably occurred due to an error in /gep/alterno/23_mayo/mr4.jsp line 7:
    <% add(b); %>
    Could somebody help me please?.....
    Can I use AWT elements in a JSP, and so could I generate events with them?
    Thanks!!!

    There are 2 ways to run a web page dynamically:
    1) Reload the page via use of javascript or some other scripting language.
    2) Use an applet to regularly check a URL for the data
    Remember, as Paul pointed out, JSP's only generate HTML output. AWT components need to run inside a JVM not a just the browser.
    I could recommend an applet but you may have problems with IE6 not supporting java. Otherwise there shouldn't be too much of a prob.
    If you prefer to use an AWT/Swing setup (for example an application) rather than a JSP setup, Webstart is good for delivering online applications which operate standalone or remotely.
    When you consider that the Java-Plugin and the Webstart puligin are about the same size it's just a matter of weighing up who your target clients are and whats easiest.
    Cheers,
    Anthony

  • Generating events from a control inside an array of clusters

    Hi, I have a question regarding UI events. I would like to capture a mouse down event generated in a string control inside of an array. Each element of the array is a cluster that has a Boolean control, a numeric control and a string control. When I try to add an event to handle the mouse down the only option available in the event structure is the one available for the entire array. If this is not possible to map event from the individual controls inside of the each cluster that are part of the array, could you provide with an alternate way of "knowing" when the string control is selected. The application has a touch screen without a keyboard and mouse. I need to display the touch screen graphic keyboard when the textbox is selected.
    Thanks,
    Diego F.

    I'm not sure, but I think your only option may be to do some calculations. The mouse down on the array will give the coordinates of the click in VI coords. You can get the coords and size of the cluster and the coords and size of the string using their property nodes. Then, you have to calculate whether the click was on one of the visible strings using addition, subtraction and quotients. Once you make a subVI out of this, it should be easy to use.
    You should watch out for the index display and the label, as they change the values of the coords. I'm sorry, I can't think of any easier way to do this.
    Correction - I just thought of one. If you use the KeyFocus property on the string inside the mouse down event, it seems to work. I'm not sure whether this will work when bringing the keyboard to the front, which is why I left the other suggestion in place. Here's my test (7.0)
    Try to take over the world!
    Attachments:
    key1.vi ‏29 KB

  • How to generate event on other control within one event

    Hello
    I am using event structure.
    When program is inside the event case of one control, I want to trigger the �mouse down� event on another control at that time (without operating that another control),
    so that next time, another control�s event is called.
    I have many controls and hence thrir event cases , after which I want to trigger a specific event case corresponding to a button control.
    (I wish to keep the contents of button2 case inside the event only)
    In attached example:
    When user clicks �button 1� or �button 3�, event must be generated so that contents of �button 2� event are executed when program comes there next time
    Thanks
    Attachments:
    Trigger_Other_Event.vi ‏35 KB

    Sorry, I just noticed that you only use LabVIEW 6.1 where signaling properties are missing.
    Here is a simple solution for LabVIEW 6.1:
    - set all buttons to latch.
    - set all button events to "value changed"
    - merge the timeout event with event 2
    In event cases 1 and 3 set timeout to zero, in all other cases to -1 (no timeout).
    See attached example. I placed a 500ms wait.
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    Trigger_Other_EventMOD.vi ‏31 KB

  • Controlling event with two controls

    Here's what I have.
    I have two separate Time loops. Inside each timed loop I have an event structure. Each even structure is trigger by pressing a button each. This works just fine.
    However, I'd like to add a third button, that executes both event structures. I want to do this without creating additional events in each structure. Is this possible to somehow wire this third button to the other two and trigger the two based off the action of the third? I'm having trouble getting that to work.
    Thanks
    Message Edited by crazyjay on 02-24-2010 09:15 PM
    Solved!
    Go to Solution.

    Quick example
    Attachments:
    Event with Value Signaling.vi ‏12 KB

  • How to handle event from subVI in the main VI?

    Hello,
    I'm doing some measurement. During the measurement I want the user to see some activity dialog - that's easy to do. Before the measurement starts I dynamically run VI (EX_Progress.vi) that shows some activity and then I do the measurement (in my example simulated by random number generation) . After the measurement is done (or error occurs) I can dynamically abort the activity indicator. But on the other hand I want to give to the user chance to abort the measurement manually via the activity dialog by STOP button. There are some ways how to do it via global variable and check every iteration in the main VI it's state but isn't there some better way? Would be nice to run event in the main VI when the user pushes the STOP button in the Progress VI. Is it possible to achieve this using register events? I tried but don't really now how I'm not familiar with this technique.
    Thanks in advance
    Message Edited by ceties on 11-26-2007 01:34 PM
    LV 2011, Win7
    Attachments:
    Ex.zip ‏374 KB

    OK, here's an example using User Events. It doesn't directly have the main VI listen for the Button press event in the subVI. Instead, it has the main VI listen for a custom User Event that the subVI fires every time there's a button press. You could theoretically directly listen to the button press directly from the Main VI, but you would have to somehow get that control's reference to the main VI. That would require storing a copy of it in a global or some such method. This method I will show here is very common and is definitely worth learning.
    For more info on User Events, refer to the LabVIEW help. You can learn more by clicking any of the User Event VIs and selecting Help from the shortcut menu.
    (I didn't set the subVIs front panel to open automatically, so you'll have to do that yourself to see anything from this demo...)
    Message Edited by Jarrod S. on 11-26-2007 02:51 PM
    Jarrod S.
    National Instruments
    Attachments:
    Example.zip ‏25 KB

  • Register for Events Generated in a Subvi

    Hi Everyone,
    I am a relatively new labview programmer, so please bear with me if any of my questions are simple.
    Basically I have a project which has multiple different IO sources with an overall top level control and display program.
    To start with, I am writing a driver for a GPS device. The GPS driver reads in strings from the COM port, and then passes them to the GPSParserBuffer, which converts each of the possible strings and puts it into a cluster.
    What i would then like is for an event to be generated whenever a new string comes in.
    This event will then be passed to a GPS display VI, which will listen to the events, and display only a portion of the information to the User.
    at present, the driver and buffer work correctly - i can run my code and the GPS cluster fills correctly.
    What I am struggling with is passing this event to the GPS Display vi. The generated event never seems to make it out of the parserbuffer, and hence the GPS display never gets triggered.
    I have adapted this from another GPS driver i have seen which works in this way, but i cant seem to get mine to work.
    Thanks in advance
    Ben
    Top Level tester VI - GPS.vi runs and fills GPS cluster
    GPS.vi initialise case
    GPS.vi read case. Probe "28" and "30" contain the event number, but Probe "32" does NOT - i suspect this is my problem but im not sure what the issue is.
    GPSparserbuffer.vi - initialise case where the event gets generated
    parserbuffer run case - an event is generated every time the GPS cluster is updated
    GPS Display code - register for a data event and put select values from GPS cluster into the GPS Monitor indicator.
    Attachments:
    GPS.zip ‏167 KB

    If I want to generate event from sub VI what I do is...
    1) Create value change event case associate with any boolean(Say trigger).
    2) Pass boolean reference to subVI.
    3) Generate event using value signaling property node.
    4) In your case you can check for new string and generate event using value signaling property node.
     Check attached VI
    PBP (CLAD)
    Labview 6.1 - 2014
    KUDOS ARE WELCOMED.
    If your problem get solved then mark as solution.
    Attachments:
    Main.vi ‏13 KB
    Sub VI.vi ‏11 KB

  • Reference to control on main front panel fails when subvi front panel is closed?

    Hi All,
    I'm experiencing an odd bug. In my code, I use a subvi to control a piece of hardware. This subvi has controls for all of the functions of my hardware.
    I'm changing the value of one of these controls from my main front panel by running a reference to a knob on my main front panel into the subvi, grabbing the value of the knob with a property node, and then updating the value of the subvi control using a signaling property node.
    This works fine when my subvi front panel is open but fails to work at all when the subvi front panel is closed.
    I'm new to labview , so any help is appreciated.
    Thanks,
    Arpan
    Solved!
    Go to Solution.

    What is your LabVIEW version?
    Front panels that are not shown are typically not updated and might not even be loaded into memory.
    The presence of certain code elements (e.g. property nodes) often forces the front panel to be in memory even if it is not shown, but I haven't studied it in a long time so there might be subtleties. Maybe somebody from NI can give more details.
    If it does not work unles the FP is open, open the front panel minimized to avoid distraction.
    Can you attach some code? Maybe there are better ways to do all this anyway.
    LabVIEW Champion . Do more with less code and in less time .

  • 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

  • Control a generator with a control volage by serial port RS232

    Hello everybody,
    I would like to control a generator thanks to a control voltage. This last one would be sent to a switch wich turns on the generator.
    To do that, I want to link the switch and the computer with a serial port RS232 by using NI-USN 232 cable.
    I made some research on this subject and I am only a beginner on LabView but I would like to use one (or several) pin which will send 5V in voltage when I want.
    Is that possible? Is there another way to make it?
    Thanks in advance.

    Thank you for your answer.
    Maybe, I didn't explain myself correctly. 
    For example, on the Raspberry Pi, you can control a card by sending 3,3V signal with RS232 port (I made it last year so it makes a sense).
    What I want to do here is to control an electronic card that turns on my generator after. I don't have enough to buy a generator controlled unless you know one not very expensive.

  • Dynamic event registrati​on wont work with Tab control

    In LTR volume 11 No1 we find the "Dynamic Event Handling.vi".
    I had placed the controls on a Tab control and now this example wont work.
    Is there a solution to this problem?
    Scientia est potentia!
    Attachments:
    Dynamic_Event_Registration.vi ‏51 KB
    Dynamic_Event_Registration(controls_on_Tab).vi ‏64 KB

    Yes. The first stage of the code registers mouse down events for all the controls. When you added a tab control that meant that a mouse down event was registered for the tab as well. So now when you click on an object on the tab LabVIEW must decide whether to fire the mouse down on the tab-event, or the mouse down on the object on the tab event...It goes for the first but since there is no description for the tab no dialog will be displayed. If you add a description for the tab you'll see that it fires the event with the tab and you get a dialog with the tab description.
    So - how to fix. Well, it's not that simple, one might think that to exclude the reference to the tab when you register the events would do the trick, but it rather seems that LV will always t
    hink mouse clicks are on the tab and not on the objects on the tab.
    The solution though is to get the references to the objects by reading the controls on page property of the tab control. So instead of reading the controls array from the front panel read the pages references of the tab and then the controls on page array from that and then register mouse down events on that array.
    MTO

  • URGENT ! JDEV 10.1.2 Problem with data control generated from session bean

    I got a problem with data control generated from session bean which return a collection of data transfer object.
    The dto's seem to be correct. The session bean load correctly the data into and the object's are plenty of data. Using the console to display the dto content is ok.
    When generating a data control from this session bean and associate the dto included in the collection only the first object level and one-to-one dto object are correctly setted in the data control. Object that represent collection into the dto (one-to-many foreign key) are setted as collection with an iterator but the structure of the object is not setted. I don't know how to associate this second level of collection with the dto bean class to obtain the attributes definition.
    I created a case with hr schema like the hrApp demo application in the tutorial with departments and employees table. I got the same problem.
    Is it a bug ?
    It exists a workaround to force the data control to understand the collection data structure ?
    Help is welcome ! this is urgent !!!

    we found the problem by assigning the child dto bean class to the node representing the iterator in the xml file corresponding to the master dto.

  • Collector Rule stays with the same Description after "fast" generated Events - (Custom MP)

    Hi , I have a problem to customize one management pack
    I use this MP for a reference
    http://windowsmasher.wordpress.com/2011/02/07/monitoring-esxi-syslogs-with-opsmgr-2007-r2/
    The problem is when I generate event (they are syslog events) the description Data is all the same for some time :)
    For example if I generate 10 events fast , the description is all the same , but the data inside is different. MP should take XML element with Powershell script and it's working fine for a "slow" published events.
    I don't know why only the description data is the same . I tried to modify the script to NULL the $bag variable and $xmlMessage but without any luck.
    Any help will be appreciated
    I'm trying to build SYSLOG parser to visualize my data and eventually to do some reports.

    Still having a problem? Can you explain a little more what the issue is? Are you saying the event collection provider does not work correctly when there is a burst of events matching your criteria?
    Jonathan Almquist | SCOMskills, LLC (http://scomskills.com)

  • Using Control Reference to change subVI control - sub VI also called using a container

    Hello
    I am in need to update a control inside a sub VI that is also called inside a container in the main VI.
    Please see the project attached.
    My goal is simple -
    Change the "Main VI calling sub VI-Container.vi " panel's "FGV state"
    once the state changes, it needs to be propagated to the sub VI that is called within the container
    The sub VI's (sub VI called is "Check Time FGV.vi")  "FGV state" also needs to change when the main front panel's control
    How do I accomplish this ? just a FYI - the sub VI being called is at "C:\Projects\User Examples\Check Time with FGV\Check Time FGV.vi"
    Also my stop button functionality is broken, not sure why.
    Thanks for your help.
    Attachments:
    Check Time.lvproj ‏6 KB

    OK you have a few problems.  Lets address the Stop button first:
    Add a value change event for the stop button and put the stop button in that case.  Wire the button out of the event structure to the conditional terminal of the while loop.  WHAT IS HAPPENING:  You press "Stop" but the event structure is still waiting for an event so the loop never iterates.  Get rid of the wait.  the CPU will not be hogged unless you are generating events at warp speed.  No user can generate events that fast! so the loop will not be greedy.  The event structure does wait for an event it does not poll for them by running contineously.
    Now your subpanel.  You do know that the FGV runs once when you invoke the run method on it right?  You can change the contol value all you want but the vi won't do anything about it because the vi is not running.  And even if the vi WAS running changing the value of a control that is read once (outside the loop) would not cause the value on the wire inside the loop to change at all.  Does that clear up some of why what you are attempting will not work like that?
    Jeff

  • SubVI's in Main VI

    I am new to this group and relatively new to labview, so forgive me if this
    is a repeat post.
    My question is sort of similar to the "duplication of controls" post
    5/9/200. I have two kinds of subVI's that I want to use in a third main VI.
    The two subVI's are for analog input and output and have associated
    indicators and controls respectively. I want to use these in a third main
    VI. My problem is this. I want the controls and indicators that I have
    fashioned for the subVI's to appear in the main VI front panel and as of yet
    I have not been able to get this to happen. Futher, the only way that I can
    get the VI to work is to wire a "duplicate" control on the main VI diagram
    (but this does not take the form that I have fashioned for it in
    the subVI.
    Also, I was using the AO or AI single point aquistion VI with a while loop
    and global logical variable to start/stop all subVI's in the main VI. It is
    hoped that we can do this to avoid using a while loop in the main VI to
    start stop the main vi and the associated subVI's. Is this the most logical
    way to go about his or should I use continuous AO and AI blocks in the
    subVI's.
    I hope that this has not been too confusing. Thanks in advance for any help.
    Jeffrey Nesiba
    NESAC/Bio Assistant
    Chemical Engineering
    Work (206) 543-8073
    Home (206) 324-2472 (206) 320-0401
    [email protected]

    Thanks for all the help. As far as the second part of the question goes:
    "Also, I was using the AO or AI single point aquistion VI with a while loop
    and global logical variable to start/stop all subVI's in the main VI. It is
    hoped that we can do this to avoid using a while loop in the main VI to
    start stop the main vi and the associated subVI's. Is this the most logical
    way to go about his or should I use continuous AO and AI blocks in the
    subVI's."
    I was still wondering if the route I have taken (AO or AI single point
    aquistion VI within a while loop
    and global logical variable to start/stop all subVI's in the main VI) is the
    most logical. Or should I use a continuos AO/AI blocks. The end use is for a
    simple process control mockup for a chemical engineering process control
    class, so computing cycles are not a big issue if that may be concern.
    Finally, I have in the past I have done what Kevin Kent suggested. The
    problem with this is that the controls and indicators that I have fashioned
    for the subVIs don't show up on the front panel on the main VI, rather it is
    the control and indicators that I have just created by following KBK's
    procedure. I/my professor would rather the student be able to use these
    subVIs on a blank diagram and be able to connect them and use them without
    having to delve to deep in to Labview (as they will have little or no prior
    experience using labview). Having the VI/subVI use a preararnged
    control/indicator would allow them to get started a little quicker with
    process control rather than tackle labviews learning curve. Is there a way
    of doing this that I have not discovered? Thanks again for suggestions and
    help.
    Jeff
    Kevin B. Kent wrote in message
    news:[email protected]...
    > "Jeffrey L. Nesiba" wrote:
    >
    > > I am new to this group and relatively new to labview, so forgive me if
    this
    > > is a repeat post.
    > >
    > > My question is sort of similar to the "duplication of controls" post
    > > 5/9/200. I have two kinds of subVI's that I want to use in a third main
    VI.
    > > The two subVI's are for analog input and output and have associated
    > > indicators and controls respectively. I want to use these in a third
    main
    > > VI. My problem is this. I want the controls and indicators that I have
    > > fashioned for the subVI's to appear in the main VI front panel and as of
    yet
    > > I have not been able to get this to happen. Futher, the only way that I
    can
    > > get the VI to work is to wire a "duplicate" control on the main VI
    diagram
    > > (but this does not take the form that I have fashioned for it in the
    subVI.
    >
    > Create your 2 SubVIs (as you already have) , make sure you wire the
    > controls and indicators to the terminals (right click on the icon of the
    > front panel, select show connector, use the wire tool, click on the
    > control / indictor, click on the terminal to use). Open a new vi
    > drop the 2 subvis on the diagram. Right click on the terminals of the
    > subvi and select Create control (or indicator) . This will create a
    duplicate
    > of the control / indicator on the front panel of the main VI .
    >
    > You will have to move them around to suit your needs.
    > Kevin Kent
    >

Maybe you are looking for

  • Fire Wire: MBP OS X.4.11 Can't see external devices HELP!

    My MBP will not "see" my new MB or my back-up drive-both connected via a firewire 400 (6 pin) cable. Both running Tiger X.4.11 I have used this cable to connect my MBP and a TiBook in the past as well as to back-up onto the LaCie e-drive. I have run

  • Brother DCP7055 after upgrading to Mavericks

    I can't print with Brother DCP7055 after upgrading to Mavericks. No problem via USB. No way via network. Could you help me pls? I can install new printer and so on, but the printer goes immediately on pause and it doesn't print anything... thanks for

  • Slow wired and wireless connections on new Mac Pro

    I have a new 6-core Mac Pro with 64GB RAM that I seem to be having major network issues with. When I restart or first switch the machine on it's fine but after a few minutes the network (web browsing) become painfully slow - when I run a speed test i

  • CS6 Design and Web Premium...functionality

    Can CS6 Design and Web Premium be used to open and edit PSD files? Thanks.

  • Download error cs3 mac

    How can I download cs3 mac when i keep getting error page?