Support to the Structure of the event!


I am trying to structure of the event a config in the way, I could change the range of graph of sample to analyze.

I have 3 graphics. The upper part is the input signal.  In the middle is the signal with some calculations and the bottom is the graph where I fixed the width of the sample to be analyzed with other values.

I put the structure of the event in the way that I read from the file and later update the data table to force execution of cases "table 2".

Its only example, but I would change the value 'start' and 'length' of the signal from the sample, but I can't get the data to show it again. I tried different options, like putting another source of the event within the event "together 2.

I could join cases 1 and 2, but the problem is with the command 'start and length', I can't get its display when I change the values.

I created an example since its part of my program, in order to simulate the same way I need.

I thank in advance, Fred.


You need over the value of table 2 for the tunnel exit of the case of the event.  Currently, this tunnel of output is set to 'Use default if Unwired'.  So, since you have no wire to the top of this tunnel, the value in the shift register will become an empty array.

Tags: NI Software

Similar Questions

  • How to aggregate all the events which lead to the occurrence of a complex event?


    Is it possible to aggregate all of the events that lead to the occurrence of a complex event in this complex event?

    Let's say we have six singles events
    id    amount    groupId
    1     1         1 
    2     0         2 
    3     1         1
    4     1         2
    5     2         2
    6     1         1
    The definition of complex event is
    select sum(amount), groupId from myStream[range 20 seconds slide 20 seconds] group by groupId having sum(amount) = 3
    Consider that I have the following class for my complex event:
    public class ComplexEvent {
        private int groupId;
        private int amount;
        private List<SimpleEvent> events;
        // getters and setters
    Is it possible to have two complex events:
    ComplexEvent1 = {groupId=1, amount=3, events=[{id=1, amount=1, groupId=1}, {id=3, amount=1, groupId=1}, {id=6, amount=1, groupId=1}]}
    ComplexEvent2 = {groupId=2, amount=3, events=[{id=2, amount=0, groupId=2}, {id=4, amount=1, groupId=2}, {id=5, amount=2, groupId=2}]}
    How can achieve us?


    I blogged an example of solution to this type of use case since it is a common scenario in the CEP applications:

    There are not currently out-of-the-box support for the events of paging to disk storage. If you really more events that can fit into the Java heap, you can try persistent events of the database or a data grid, such that the consistency and by linking to the database or the cache to create the event complex containing the events of causality.

    Another approach is to horizontally partition the flow of incoming events on multiple servers.

    Kind regards

  • Set priority higher for front panel events in a Structure of the event

    Hey people,

    I need some advice on the management of events in Labview 2013... I have a structure of the event which handles events of façade (keys) as well as some user events. User events come thick and fast from an external dll. The data as well as this event gets queued at the start and then traced / processed.

    The tricky part is if there are great number of events of the user, the response to the event of the façade is significantly delayed. I get about 80 events back to back user every two seconds. So, if I press a button on the Panel before every two seconds (2 seconds, 4 seconds, 6 seconds... etc) is obviously the delayed answer as opposed to pushing in multiples of 3 seconds (3 seconds then 6 seconds, 9 seconds...) where the reaction is immediate.

    Now I know labview 2013 supports two prioritres while generating events (high & normal) but the problem is in my case, user events come from a dll using the 'PostLVUserEvent' method that does not accept a priority. And I don't see a way to set a priority for the events of façade (keys).

    Any thoughts on how this can be managed?

    Thanks in advance, best regards, Abel.

    The best solution would be to separate user and events of the FP in two independent loops, but I understand that this may be difficult if the two event classes operate on the same data.

    Another possibility is to use two loops serialized, encapsulated together in a larger loop, each containing a structure of the event: the first, with a short timeout, would manage the FP events and could go out on timeout. the second would deal with all user events and would be forced to stop after a predefined number of events managed or, better still, when a quantity preset time has elapsed.

  • create subroutines for several structures of the event and common stop button

    Hi guys,.

    I wonder if there is a better way to design algorithm below scenerio that similar technical rehearsal for each structure of the event.

    Please find in annex vi where I designed the code to a boolean (D). I want to design a similar code for all other bolleans. (In the present design code, photo is displayed when the mouse is flown over D). I obviously have other pictures for the other,(A,B,C,E,F) booleans. Can we have a kind of subroutines for other Boolean types and a single stop for all the application button.

    Thank you very much in advance for your support.

    Sorry (I forgot to add vi) Please find attached.

  • driven by the structure of the events

    Hi all

    Please take a look at my VI...

    what I do in it use the same structure to control something that is that when I press the botton that I start getting the random elements of the array that I have bulid. but I can't seem to stop inside any looping in the first inning when I press the stop botton... What am I doing worng... and if a remove the while loop it only run the loop once. I want the event up to the time that I support permanently on the stop or any botton.


    All you need is a loop: the outer loop. You can manipulate the time-out to conditionally generate your values.

    Here's a quick example. See if it makes sense.

  • using the structure of the event in the LabVIEW classes


    I'm new in the use of LabVIEW classes, so don't know much how I can use them.

    In my main program, I have clusters with five elements in each. The elements are controls two States and in some groups, there are three States controls. The user will press the buttons (controls), and different things will happen. In my first program were I not using classes, I had a structure of the event and the controls were cases of event in the structure.

    Is it possible to somehow use an event of cases in one of the methods that is created in the classes, so that say, that's not in the main program?

    I have attached two photos: I wanted to have a structure of the event in servoTouchEvent (in left.tri.lvclass) who is a child.

    Let me know if my explanation is not clear.

    Grateful for the help!


    Yes, you can have a structure of the event in a Subvi rather in your main VI of top-level UI. The trick is to use the 'Save for events' and passing in references to orders that you want to have the event trigger structure for. The refnum output since the function is entered in the terminal of dynamic event of the structure of the event who could live in a Subvi. You can add instances of event where you will see these control events as dynamic events then you can do something with. These excerpts from shows all the code in a simple diagram, but the stuff in the structure of disable diagram could easily transformed into a Subvi:


    All this can be done without classes. What will buy classes you include the ability to encapsulate your screws and also perform different code based on what object on the hierarchy of the parent-child classes is on a wire. If the behavior of your code is different between 2-3 State and controls (which I do not know what state controls 3 you are referring), you can take advantage of the classes.

  • major error with the structure of the event

    IM under LABVIEW 13.0 PRO

    I don't know when this strarted bug happening, but now when I add a business to a structure of the event. Freezes in LabVIEW. I have to close labview with the Task Manager.

    It doesn't matter what code I'm working with, even a new VI, with nothing else than a structure of the event.

    I tried this on my desktop PC, my laptop and my CPU DAQ.

    The error occurs on my desktop and my laptop. But it does not occur on my CPU DAQ.

    Whenever I click on add event usually case, you get a popup to configure and add cases, but with the popup error never comes to the top and labview crashes.

    Theres no code to share the problem ocured when adding events to the event structure. It happened with any structure of the event, in any code, all the time.

    I spoke to an engineer of apllication of labview and suggested to delete the labview.ini file located in the installation of labview directory. I did this and the problem was solved.

    Still not sure what caused this to happen.

  • Structure of the event in primary vi and sub - VI with queues

    Hi all

    I have an application that uses the architecture of producer-consumer in which a queue transmits messages of a main VI by a Subvi, in response to the events of the user in the front panel. Inside the Sub VI, the queue is removed and treaty based on the corresponding message, and the result is displayed on the façade the sub of VI. User events are captured in the main VI using a Structure of the event. This works as expected.

    However, I also the controls on the Panel before the sub - VI to change the queue. My approach is to have another structure of the event in the VI sub for this. However, while the events in the main work of fine VI, events of sub - VI never treated.

    A simplified sandbox VI of what I'm trying to do is attached. As you can see, the main VI events are triggered as expected, but events in the sub VI are never triggered.

    I watched this white paper: detect an event in a Subvi from a high level VI , but it's not exactly what I'm trying to do. Instead, I'm just trying to detect an event generated within the Subvi. I searched this forum and found some research related, but none of them seemed to answer what I'm trying to do.

    Thank you


    Your major issue here is the loop location.  While the structure should be inside the Subvi to make a message in the appropriate queue manager.  In fact, you should have 2 loops within your Subvi: 1) the QMH and (2) of the event loop.  You must use a user event to congratulate the event loop in the Subvi to stop.  You should NOT use the time-out of the Structure of the event unless you absolutely must.  And since everything in the Subvi is the message function, you do not have expectations.  They will be inactive (no CPU using) when there are no items to process from the queue or queue.

  • How to create a Structure of the event, repeating a task until a push a buttom


    I want to make a program that repeats a task until a push a buttom (indicating to begin another task). I know how to do this with a structure of the case, but I want to know how to deal with the event. Any idea?

    OK, I'm going to help you a bit.

    Here's how it works: the upper part (producer loop) will pass the value of the OK button (switch released) to the Message Handling loop (consumer).  When the button is true the consumer runs the code in the case of the real and enqueus another loyal to himself and then wait 1 second.  When the OK button is False, the value false is appeared on the front of the queue and the message handler runs if false, empty the rest of the queue and waits for the next message the event loop.

    The Stop button (by releasing Latch) exits the event and the queue is destroyed causing the Dequeue return an error and leaves the message loop.

    This is obviously an extremely simplified QMH.  To read up more about concepts go to file > Create Project > and click on the "More information" link

  • Control the Structure of the event with text file

    I'm new relativaly in LabVIEW (experience only about 2 weeks). I am currently control a stepper motor using a structure of the event. Similar to the sample code given by LIFA, I entered my settings how the engine not move away, then press a button on the windows before, and it works this way. I also have other equipment that works as well in LabVIEW, as a transnational step; all components operate individually.

    Now, I'm trying to make the more automated system and to ensure that all the different equipment work in the same code. So, I tried to implement a structure of the event using a text as an input file to try to control events. The text file has a table 1 d of numbers going down vertically (only the line numbers change). So, I used a table of index function to take the numbers one by one, use a loop (while loop in this example) to go to the bottom of the column of numbers. However, the event not register the change, even if the indicator shows the value is changing.

    Attached, it's my test code and the text file that I use to try to control the structure of the event. Please let me know what I am doing wrong. Thank you.

    Oh, now I understand what you tried to say. I'm using a loop and a case structure to activate different events with the entries in the table. I thought case structures and event were the same, but you taught me the event structures are used just for the façade stuff. Thank you all!

  • How to avoid multiple simple clicks in the Structures of the event

    I use the event structures in my program and I want to avoid the case when pressed by mistake on the button to click several times, because if the user presses the button to click several times the event is logged repeatedly and funtion within 'Change of value' is repeated several times as well. I want to avoid this scenario.

    Can someone please help in this regard.

    Well, there is the "Lock Front Panel up to that end case of event.  You may also disable the button until a timeout occurs.  Another option if you have LabVIEW 2013 or later version is to limit the number of event (option just below the locking of the front panel in the dialog box change events).

  • How to control the structure of the event

    What I'm trying to do, it's when the condtion is true, I want that the structure of the event to excute. But the event structure wil excute not except if he's changed the puch model, any idea how?

    It is more likely that he wants the sequence of events that he has set up to run after the result once changes.  If you change the logic to check the values after each numeric change (2), you will need to learn how to check to make sure that the latest iteration was not true.  Otherwise, it will start the sequence over and over.

    Really, you have to escape completely the structure of the event.  This isn't what you want.  Your code lends itself to a great state machine.

    You'll want to ask you a few things:

    (1) I want my code to run continuously or I just want to check double-digit times? (your code is currently the second)

    (2) I want the user to be able to stop my code once the sequence begins? (it is usually a Yes)

    (3) what I want 6 Road, path 5 or the comparison to happen first?  I want all run at the same time?  Do I need one before the other? (currently, you cannot predict what will happen first).

    You will need to understand the topics are: State of the machines, the flow of data, structures, business, calendar, and race conditions.  Now, you need to get you into trouble.

  • Front panel locked, but not due to the structure of the event

    Hi it LV community.

    I did a staemachine program that executes an oscilloscope (screenshot of a provided below... the State of the problem). I ran my program yesterday and it worked very well. Then, like a model, a dialog box opens and I just clicked on it in a hurry. now my front hangs as soon as I move the above-mentioned State "the Oscilloscope settings.

    As indicated, I have go a repeat loop that collects successive impulses of my oscilloscope and displays on the front panel (it works fine). In parallel, I have a structure of the event that makes the tail for the real-time feedback of changes to parameters that I placed on the façade (exodus of state change).

    Here's the problem: as soon as I State 'Oscilloscope Settings' using a Boolean button on the front panel for get me there, the front hangs... No event triggered by this point, and even if it did, I already deselected the "Lock panel until the end of the matter for this event" checkbox in the case where the structure menu.

    So WHY is my front lock now? Thoughts anyone?

    Read the detailed help for event structures.

    He urged that a single event structure serve in a VI. There are moments where more can be used effectively, but caution and a thorough understanding of the structure are needed.

    The problem is that you have several structures of the event in the various cases of the state machine and they are set to respond to the same events.

    When the button Set Oscilloscope, the structures of the event in the purchase Menu and home screen States receive the event. The two lock the screen, but only one of these cases may work. It can transfer control to the State of the Oscilloscope settings, but the other event responding to this same event structure maintains the locked Panel.

    The solution is not not to release any of the event. The default value is usually the best setting. The best solution is to spend on an architecture of producer/consumer (events). Who uses two parallel loops. The producer has the one and the only structure of the event and passes orders to consumer loop through a queue.

    Probalby want as the mechanical action on the buttons to lock when you press. Put kiosks inside the respective case of event changed value and local variables becomes unnecessary.


  • reset the timer using a structure of the event

    I wrote a simple code to count the second and the timer can be reset if I press the button "reset".

    It works; However, there are two problems,

    1. when I run the program, the timer takes 1 second to start

    2 when I press the reset button, the timer also takes a second to answer

    I think it's the 1000ms that is connected to the left corner of the structure of the event. Is there a better way to overcome this problem? (the timer starts and resets immediately

    When I launch the program and press the "reset" button)

    Thank you!!

    Dear ivy037

    You can make the time outside the structure of the event as in the attached code.  I would like to know if this is satisfactory.

    Thank you

  • At all indexes on tables of the same value in the structure of the event


    I have a panel with the four bays and I use a structure of the event.

    Now, I want that change of the index of array_1 also affects the index of 3 other tables at the same index.

    But there is only a property "value Exchange" and no property 'index-change' in the properties of the table.

    So I read the 'index' property and write in the other table.

    But: It seems as if I have to do so within the period of waiting-section of the structure of the event.

    Is there another way to do this?

    Thanks for help

    You can use the mouse event on each table to detec the event (of course, that will attract not only a change of index, but I don't think you care too) and then use the 'values of the indices' property on all the table to set.

    See annex VI (LV2012), hope this helps

Maybe you are looking for

  • iPhone 6 capsule to open in 21 years.

    So I intend to put an iPhone 6 in a time capsule to be opened in 21 years. I will of course include charger and cables. What do you thing that the chances are it will load up and be able to run certain applications.

  • Firefox crashes as soon as I click on the Firefox icon.

    When I click on the firefox icon, it opens at all. IT appears just the reported crash. It crashes immediately when I click the icon. It does not start in SafeMode either. How can I get my Firefox working again?

  • Equium A210 - known good cd/dvd drive not recognized by BIOS

    I tried several dvd cd players in this device, but the BIOS has 'no' against the optical drive... readers are good units because they work with a USB caddy on another machine... I need the optical drive to work so that I can re - install, like the ha

  • Question about sound quality software

    Hey,. Is there any software that you can get it if you use mixer that is an external audio device connected via the headphone jack, minimizes your comments and interference? or would I better off buying a USB audio interface for external connection?

  • Just upgraded PC parts and windows XP home or pro install peripheral not during the installation of windows

    Yesterday, I got a new gigabyte motherboard, ripjaws ddr3 memory and a processor AMD phenom II 1090 t edition.  During the installation of windows, it copies the files and reformat my old hard drive.  35 minutes from devices of the installation each