Basic structure example-Help event

Hi all

I'm programming in Labview for two months... starter... I have a desire to use a structure of the event in my case, so I started with examples and had a problem understanding.

It's the example, I don't speak labview\examples\general\dynamicevents.llb\dynamicallr for events.vi registry

(1) the blockdiagram outside can while loop, you please explain the three data entries to the propertis of thrre under the registry event property node?

(2) why use shift registers to send events to registry in while loop? Why dosent a tunnel works in this case?

(3) within the structure of event event why do we still include "Event log" property node and how to reference its properties?

(4) in the while loop, event 1 mouse down event, mouse to the bottom of the property is left free, but moving the mouse was connected to sone refernce, how it works?

I would be happy if can refer me some books on event structures

Thank you

Concerning

Neo

NEO6 wrote:

(1) at the beginning, when I hit the track, that all the events available for the structure of the event in time loop? (If I understand correctly, all of the events associated with the controls on the front panel and move the mouse exists since they are registered outside of the loop. Am I right?)

Technically, all events are available.  It's just a question of what objects will cause events.  Initially, the mouse event move is registered to a NULL VI.  Since it is not one of those around, the event will not happen.  The mouse upwards and the mouse downwards have associated all the controls on the front panel.  If the mouse went upwards or downwards on a control, the event could trigger.

NEO6 wrote:

(2) as well as all the events of pannelcontrol, there are also moving a mouse event is already registered outside the while loop and sent to the structure of the event, but once again in the "Mouse down" event, we again record the event of "moving the mouse" and store in the shift register.  What is the difference between check-in outside loop while and inscription inside the structure of the event "mouse down"?   If registration within a structure of event is the event update already existing or the empty position for the structure of the event?

We simply update object can cause the event.  Inside the mouse down event, we say that the current VI can cause an event mouse move.

Tags: NI Software

Similar Questions

  • An interrogation continues with the Structure of the event, please help me understand

    Dear Forum,

    I'm 3 months in LabView. I created a front panel with what I consider a reasonable set of code below with a basic entry control power boulean a case controlled set of actions. I enclose a strongly striped version to the bottom of this structure with sections deleted button so that the executed code is removed to simplify just ask questions on this control structure. After the recent webinar, I understand this form of control to call a continuous structure of vote - and it makes perfect sense and seems natural for me to the point of programming of data flow.

    But according to the webinar it is preferable to use the structure of the event.

    However, the structure of the event seems really weird to me. My main question here is certainly the structure of the event MUST be voting each of the values itself anyway, otherwise how does he know that an event had occurred?

    So what is the difference between explicitly "polling" the buttons myself with a while loop and using a complex (for me) of the event with 'hidden' polling stations under?

    The vote of the 4 buttons in my example should be done at the same time if Labview is truly multithreaded/parallel? There should be no difference in the level of the computer between my code querying and the code 'hidden' the structure of the event making the mark.

    Thank you in advance for you help to clarify my confusion.

    Sincerely,

    Robert Gibbs

    rg8766 wrote:

    Surely the process:

    Check the OS press > OS encodes this trigger to send > OS sends a trigger that the button has been pressed > Labview checks if a trigger happened > Labview decodes what action has been coded in this trigger > Labview takes appropriate, based on relaxation measurements

    has more steps and is more intensive than processor

    LabVIEW checks the key > Labview performs the appropriate action when you press the button?

    BONE is already this process in any case.  If you are in fact doubly effort without worrying.  And the OS is much more efficient that your code will be.  So just let the OS do work heavy while your code sleeps.

    And think about the trigger more as an alarm clock.  You are asleep (do nothing, with no CPU) when your alarm goes off.  You wake up and perform the task that the alarm tells you to do.  Once done, you are waiting for another alarm, so you get to sleep.

  • Event Structure/AC help

    Hello

    I'm stuck... I have some difficulty to find out how to make my VI attached to behave according to the needs. The highest level 'EventStructure.vi' VI is an interface user of façade to a printing application label (using ActiveX). Loading the VI he sits in internally while loop until printing or buttons on front of output. If the product "select" drop-down has a change of value I love out to the special label for this product file and read a serial number from the label file variable and indicate the serial number on the front. I wish I had the façade VI keep this serial number that there is another change of the value on "Select Product" but right now it only he holds on the front panel so that the next time through the whole loop. Also, the string containing the path to the file of labels only holds in memory until the next time through the whole loop where it is cleared. Is it possible to have these values stored in memory and only change when there is a change in value on the drop-down list box "Select Product"? I do not understand that this behavior is the General event Structures work, but I am unable to find a better way to do it without using a Structure of the event. The sub - vi 'GetNextSerialNumber' calls to an external application using ActiveX and it takes a while (4-5 seconds) so that the application load and process the ActiveX controls so I want to just call the external application when there is a value change on the drop-down list box "Select Product".

    You need to store values that you want to keep in the shift registers. This will allow you to pass the value from one iteration of the loop to the other.

  • Sequential execution of the structure of the event?

    Greetings,

    I'm at the very beginning of the development of applications. I have a list of 10 tests (we just call test 1 test 10). I would (ideally) for a user to have the option of selecting 1 or even 10 tests, any combination basically (listbox, it was what I thought). Now the kicker is, I want a structure of event related to this list box. And run each index table selected by the user. So if the user must select test 1, test 2 and test 6, I had received a table of 0, 1, and 5, respectively. The structure of the event should run sequentially as a result. Right now I plan each event at the outbreak would run a state machine for the test itself. So if test 1 was a simple test of current draw (just for example). The user would choose 1 Test that raises the corresponding event. The event inside a state machine would execute the necessary market, TAKE the MEASURE of CURRENT, STOP says finally.

    I've tried my hand at a cluster with Boolean values, but did not too far. Even though I know there is a solution somewhere within the cluster and the binder for Boolean types inside for the value change. But I need allow the user time to choose all the tests to run before launching the sequential execution of the structure of the event.

    I'm sorry if I missed something, I am still drinking my coffee Sunday I do not have a VI to post. I tried yesterday with no luck and the best test I had too many nested loops.

    Thanks in advance for any help in this matter. I feel I've hit a moment "DUH" in the development process. But I find it difficult to set up a structure of the event to run several events in the event generated by 1 user.

    -Chazzzmd


  • How can I set up a structure of the event that sends text when the user presses the button "Return"?

    I'm new to programming of the Structure of the event.  I am trying a program which causes the content of a control to the string to be processed when the user presses the button back in after typing in the control of the chain.  I think (I hope!) that it is simple, I just can't understand how do.

    Basically, I would take the attached VI and change so that the user can send the value of control 'String In' to the indicator "String Out" either by pressing the 'Return' key or press the button 'send string. '

    Any help would be greatly appreciated.

    This example has nothing to do with the RETURN key specifically.  It fires all simply whenever the value of the control is changed.  If you click outside the text box or on another still controls the value changes and still the event is raised.  This is often the desired so if it works in your application, you good to go.

    You CAN ONLY answer a particular key if you wish.  Set your event to meet 'This VI' > key down.  Then, read the proposal Vcle on the left side of the structure of the event and compare it to the RETURN (for example).  The Boolean result of the comparison gets connected to a structure to deal with your code to run inside.  You can also wire Vcle directly to a case structure and execute different code based on which key was pressed last.

  • How to make the file Vi as of entry into the structure of the event?

    HIII all...

    I had problems when building a structure of the event. The entry in the file (format vi) is not a source of connection of the wires to connect the wire (shift register). For your information the vi that I create only contain a simple mathematical equation.

    I already have the new event handler example. but the entry of the file in this example (buy data.vi) have a source of connection. can someone help me?

    Thank you very much

    [email protected]

    Well, in your sub - VI you need to wire some inputs and outputs of your login Panel.  As I said, a LabVIEW basic skill that you will find in the tutorials.

    You have a number of entries to your Subvi.  The more you do not want to fix on a panel of connectors.  You may need to use a cluster to group them.

    To help you get started, here are the steps to connect a control or the indicator for the login Panel.

    1. open Subvi.

    2. right click on the icon at the top right.  Show the connector.

    3 hover over a block that you want to be a terminal connector, it will change to a coil of wire.  Click on.

    4. go to the control or the indicator on the front that you want to associate.  Click again.

    5. Repeat for the other controls and indicators needed and save your Subvi.  Now the Subvi in your main VI instance can have on connected wires.

    You must plan your login Panel so that the controls are on the left side of the Panel and indicators on the right.  This will allow the data who "throw" and "flow on" the Subvi in a normal search has left to the right orientation.

  • structure of the event

    Hi, I'm new to Labview. May I ask - is it possible to use 'match model' within the structure of the event to detect the shift? For example, if the event detects 'one', it will go in the first round, if detect 'two', it will go to the second event...

    Your help will be very appreciated! Thank you..

    Hello Yee,

    do you really need events and structure of the event at all?

    Why not just use a structure case manages your values according to a the string received?

    Like this:

  • Structure of the event within the structure of the case run once

    Hi all

    I am a controller using myRIO and labview where the program compares a value of the probe in a "Preset" and then choose a structure case depending on what type of air supply is required. What can be seen on the picture, for example, is 0 if saturated air supply is necessary.

    The structure of the event is used to send a signal to step to the stepper motors to open the valves (closing is still pretty much in the same way). In any case, the event turns my valves 90 degrees. I read the sensor all a second, however, when the case remains unchanged, the case runs the event again causing my engines running at 90 degrees per second (essentially continuously). What I'm looking for is a way to send the signal to step only once until a new case is selected.

    He is not on the photo, but this is all within the large loop.

    Apologies for any bad/cringeworthy coding, it is literally my first program always using labview. I can post the full VI if you need.

    Any ideas would be very appreciated! Thank you

    Simos wrote:

    crossrulz you have a simple example by chance that uses the feedback node?

    See if that helps

  • problem with tab structure control and event

    Hello

    My program has a tab control. In each tab, I have an event structure to control some events.

    I encountered some problems. These are:

    1. in each tab, I set tab as an event control, to altogether from the structure of the event as tab change (for example, the image below). My first problem is that when I change the tabs, in the arch depending on whether my program is entered in the next tab environment, happening at the event: change value to main tab! And gives bad result.

    2 - I've scheduled two final tabs as below in the image. I had no routine in these two tabs. Simply, I want when I change the tab, it goes to the next case of the tab control. But when I run the program, it goes to something as busy after one or two changes tab and did not work properly.

    Could someone help me please?

    Thanks in advance

    Baran

    Rebecca wrote:

    I want to have 4 tabs, each tab having 3 Boolean control.

    If in each tab all Boolean control wins 1, a Subvi should be run.

    I wrote this code with some time within each tab loop this case hase 3 for each Boolean control. The result is true.

    But I think that if I write it with a structure of the event within each tab instead of 3 cases, the cpu load will be lower.

    Is it not true?

    Make a unique Structure of the event.

    Add events for all controls (buttons, Boolean)

    When the event is triggeredcheck for active tab control and decide what void / vi to run

    It will work fine you

  • structure of the event: have an event triggers another event

    I have a structure with two events of the event. I want that the finalization of the first event to trigger the second event. The two events are triggered by a change in value of type boolean, say "1 Boolean' and 'Boolean 2". Can I have a local variable of the Boolean 2 inside the event 1. By changing its value, it should raise events 2. However, this doesn't seem to work. (see attached example)

    any help?

    If sue you the property one of the options node is value (signaling). This causes the fire of ot event in the event. See below:

  • LabVIEW 2012 while the structure of the event does not stop

    I am LabVIEW 2012.

    An example of a while loop with the structure of the event inside can not be stopped with the stop key, Boolean.  Something wrong?

    Please see the attached VI.

    Thank you.

    Yes, something is wrong. You must add one for the event in order to detect a change in value on the stop button.

    The thing is now your structure for the event rest waiting for one of the event which she handles and ight now, it handles the "close panel" event, the 'timeout' event is too manipulated, but since you do not have anything related to the terminal of timeout (top left of the structure of the event) the timeout is - 1. So, when you run the VI the while loop is stuck in the first iteration and is waiting for a sign nearby, the stop button will only take into account after that same structure intercepts an event; I think it's because LabVIEW will execute the code related to the Terminal stop of the while until after the rest of the code that he has completed execution of the loop.

    Hope this helps

  • Simulate the structure of the event in the LabVIEW base?

    I have a basic version of LabVIEW (v8.6) who doesn't have the structure of the event. I found it was quite embarrassing monitor the status of several controls (action after clicking a control depends on the State of the other control (s)). Especially if I want to add another function (control), the effort exponentially increase with the current number controls

    I had an idea to simulate the structure of the event using "shift register. First, I will provide all the values for the controls in a cluster. Then I'll put the cluster in a while loop and compare the value of the cluster to its previous value (xor the registry change). If the result of the comparison is false (none of the control is changed), the program moves to the next iteration. If the XOR result is true (one of the control has changed), then the program goes into code (it will pass what control has changed and the entire cluster) event management. So for each change of control, we can write an independent code to process the event. After processing of the event, the event was allowed.

    Here are some of my ugly code currently used to monitor multiple controls. And I think rewriting using above idea so there is less chance a hiden bug.

    Comments, suggestions?

    I'm not quite sure what I'm looking for on your photo of your block diagram because it seems that only the lower quarter right in your code.  I would do the following to detect a change in a cluster without the structure of the event control:

    The basic package include the notifications than us?  You can put your "event management" in another thread by this method:

    The advantage here is your main loop of the program is not "bogged down" every time that a change in your cluster held.  It also allows to separate the code so that it is cleaner.

    Hope that helps!

    -Fisher

  • Structure of the event can be triggered a 1 event

    I am using a structure of the event to trigger a 1 off the coast of the event.  I thought that I could check the State I want to trigger the event and this thread the Val (signaling) a Boolean property.  Then I created an event to change the value on this command expects the event fires when the value from false to true.  I think it is this writing in Val Signaling property raises the event each time not only when the value changes.

    The attachment is a simple vi to try to illustrate this point by using the iteration count to try to trigger a 1 off the coast of the event on the 10th iteration.  The Boolean 'once' varies from iteration from False to True on the 10th, but the event is fired for each iteration.  Need to run in debugging

    Any help much appreciated

    Ken

    I've seen this confusion on the value of property front of signage. You expect it would only trigger an event, if you write a different value than the control or the indicator has been set to. This is not the case. She fires whenever you write to it.

    Your simplified example wrote to the property value of signage in the while loop for each iteration. That triggers the event value changed whenever you write to it. Notice that the property is 'signs of value' and not 'value has changed the signs '.

    Some of the examples were complex with the authors of notifications and user events. But the easiest way is just to put the property within a business structure node while it is written only when you want that one off the coast of the event. It does not matter what you write to the node if you send all the data for the case of the event.

    If there is a reason you must write to the Boolean value of traffic property on each iteration of the loop you can use the value written in sub condition to run code in the event. But notifiers, queues and the user just looks complicated events.

  • Malfunction of the Structure of the event?

    Apparently, an event structure keeps listening events even if the structure has to be inactive as it is located in the inactive case of a box structure. See the attached example.

    Explanations, comments or whatever? Is this yet another bug or a significant feature of LabVIEW?

    Thank you

    Peter

    Peter,

    to add to the post correct Dennis:

    You can either Open the front panel for your events in order to prevent the structure from the event to block the front panel, or you can cancel the registration of events. The unregister method requires registered custom events. For instructions, see this KB .

    hope this helps,

    Norbert

  • How to stop a while loop structure in the event of a main vi

    Hello;

    Sorry for my English

    I have to stop to a Subvi my main VI, the Subvi contains a while loop and an event structure, so I need to stop this loop while I tried directly from my main vi, global variable, but it did not work

    any help please or example!

    How about something like this (solution see attachment) using a user event.

    Explore the User Interface--> range of events and dialogue. To display the dynamic event of the terminals in the structure of the event just right click and select 'display the dynamic event posts '.

Maybe you are looking for

  • Pilot missing 6300 MT

    Have a HP 6300 MT win 7 Pro x 64.  A pilot is missing. Hardware ID PCI\VEN_8086 & DEV_1E22 & SUBSYS_339A103C & REV_04PCI\VEN_8086 & DEV_1E22 & SUBSYS_339A103CPCI\VEN_8086 & DEV_1E22 & CC_0C0500PCI\VEN_8086 & DEV_1E22 & CC_0C05

  • HP Pavilion dv6-7040tx: Pearl of silica gel in the earphone Jack

    Hello A Pearl of silica gel stuck into the headphone jack of my laptop. Please tell me the peocedure ro remove it. Service centre can help guys. They charged me given that the laptop is still under warranty.

  • Properties assistant DAQ does not open

    We use version 8.0.1 LV with daqmx version 8.7.1. Win Xp with a PCI-6025E, SCB-100 card is attached. I can measure the thermistor in the SCB-100 in the measurement and automation for the hardware seems to work OK. The problem is to use Daqmx in LV I

  • How can I get rid of the error oxc0000135 status? It does not my pc start.

    Under XP Home edition, I get the error message status oxc0000135.  Even when I try to reboot from the windows CD.

  • Windows Explorer crashes when you try to copy a file

    Win xp Pro When you try to copy a file using windows Explorer, the application crashes. I tried to use select times of right mouse and select menu with the same results. All solutions short of re - install XP