Change the condition in the structures of the event

Hi all

I am a student doing a project. I am very new to labview and I don't really know much of the function in labview. In any case, I have this timer made by using the structure of the event if I'm not mistaken (I downloaded this timer among the post on this forum). This timer will start at 0 sec, count up to 20 years, then stop. So what can I do to change the time of the end of this timer? Let's stop at 50?

The program is attached. Please please explain or change the program and attached as a response. I tried to understand the help function, but still do not understand.

I thank very you much in advance!

Hello

Thanks for your inquiry. The attached VI uses programming structures: while in the loop, the structure of the event and structure of the case. You'd have to change is in fact the case structure. Before going to, let us go through the different structures. Open the block diagram by going to the Menu bar of the front panel and go to the window-> open diagram.

The while loop resembles a Do loop in text-based programming. It runs until a condition is met. Since the attached VI, it stops running when you click the exit button.

The event structure is a structure that consists of sous-schemas. The structure meets the interactions with the objects of the front panel. For example, if you click Start or stop in the façade, the structure of the event will be a case that corresponds to this interaction. In the attached VI, the case, which corresponds to the interaction with the button start or stop, called 'Start', 'Stop': change the value. Each box contains an event handling routine.

Structures of the case are like spending statements in the programming of text. Take a look at the 'Start', 'Stop': value change event. It contains a routine which consists of a box structure. The case structure meets the called Start input terminal (which is in fact the Start button on the front panel). The case structure switches between cases according to this entry. To display the different case just browse the structure of the case by clicking the left and right buttons. There are only two cases: true or false, as the entrance is a Boolean value.

Now let's take a look at the VI. Take a look at the case "Timeout" of the structure of the event. This is where the change should be made. Change the structure of matter by editing the case. Change the numbers in the structures of the case: ... 20000 to ... 50000 and 20001 at 50001 This should do the trick.

Kind regards

Alan Bong

Tags: NI Hardware

Similar Questions

  • Lightning: How can I permanently change the event organizer email address when he invited?

    I have two email accounts with Thunderbird; one is the default account from which my emails are sent. However, when you attempt to send an invitation to the event through lightning, my secondary email is displayed in the field of the organizer and it cannot be changed.
    Thank you, in advance, for all the answers.

    Right click on the calendar in the left pane - properties
    Change the e-mail address you like.

  • Change the value to trigger record data for 1 s sampling frequency of 50 KHz

    Hello

    I have a VI with NI9215 and cDAQ-9178 chassis hardware. The function of the VI came out an instruction to RS232 interface and record 1 second of data every time that the set point is changed.

    The procedure is

    (1) modify the policy to the flow regulator

    (2) wait 2 seconds.

    (3) record of 4 channels for one second to the sampling frequency of 50 KHz.

    At present, the problem is for the first edition of this program, two seconds (rather than) data was saved and corn, the error message 200279.

    II. I revised for the second edition of the structure of the producer and the consumer who can increase the speed of the buffer.

    The question is how to configure the trigger to start the backup of data and limit data save for one second whenever the set point value changes.

    (1) which edition is best for my application?

    (2) how to trigger the data record?

    (3) how to record only a second of data?

    I also checked this announcement and the elapsed time seems not to work for this case.

    Any help would be greatly appreciated!

    Melody

    Hello

    you have not used properly the nodes property.

    1. replace the case structure in the first loop, with DAQmx features, with a structure of the event. Change the event fires for a worth of control of the setpoint change.

    Edit: as stated in your first post, use the structure of the event, but put inside the while loop.

    2. DO NOT connect error output from the stop command property node. Replace it with a local variable for the stop button.

    Try these and let me know.

  • Buttons stops responding when the event takes place

    I have two independent loops while in a VI. A while loop have a structure of the event. Buttons stop responding when the event takes place. Is there a solution for this problem.

    If you change the event you can see the 'Lock Front panel' option, if you uncheck the box that your PC will not be locked. But the wisest method does not perform any operation within the structure of the event.

  • Problem at the opening of the event calendar in my application

    I create a new event calendar with this code:

    CalendarService service;
    Event CalendarEvent;

    event.setAccountId (1);
    event.setFolderId (1);

    event.setBusyStatus (BusyStatus::Busy);

    event.setSubject (QString::fromUtf8 ("title model"));
    event.setBody (QString::fromUtf8 ("a model body"));

    event.setLocation (QString::fromUtf8 ("fictional location"));

    event.setTimezone("Europe/Berlin");
    event.setStartTime (QDateTime::fromString ("2014-08-23 15:30", "yyyy-MM-DD hh: mm; :")) "))
    event.setEndTime (QDateTime::fromString ("2014-08-23 17:15", "yyyy-MM-DD hh: mm; :")) "))

    event.setReminder (120);

    service.createEvent (event);

    It works very well. Get an event ID valid and I can see the event in my calendar. Now, I want to open/edit the calendar inside my application entry, so I try to invoke an application to change the event:

    Application of InvokeRequest;

    request.setTarget ("sys.pim.calendar.viewer.eventcreate");
    request.setAction ("bb.action.EDIT");
    request.setMimeType("text/calendar");

    QVariantMap map;
    Map.Insert ("accountId", event.accountId ());
    Map.Insert ("ID", event.id ());
    Map.Insert ("file", event.folderId ());
    Map.Insert ("startTime", event.startTime (m:System.NET.SocketAddress.ToString ()));

    bool ok;
    QByteArray data = PpsObject::encode(map, &ok);)
    request.setData (data);

    m_invokeManager-> invoke (request);

    This opens the calendar inside my application, but with a new empty calendar event.

    What I am doing wrong? I already searched this forum for other people who have or had this problem and I found a few old son but their code looks like mine and I can't find a real difference.

    Okay, I found my mistake.

    bb.action.EDIT<-->

    bb.calendar.EDIT<-->

    :-)

  • leads the value change in the structure of the event

    Hello

    Please the the VI attached.

    I would like to know what event triggers when the value true or false of the changes led?

    In the case of structure above the structure of the event, the values of true or false of the led are changed.

    From the change, the analog output for Acquisition Card changes. However, the change event of the value in the structure of the event never fires, I know that I run the Vi with the selected highlight enforcement tool.

    Thank you

    Venkat Rao

    Changing the value in an event structure occurs only if one of the two following situations occurs.

    1. the user who modifies the control on front panel.  That may not happen since these LEDs are indicators and does not control.

    2. the program writes a value of property of the Value indicator/control (signalling) node.  Writing to the terminal of the indicator, or the local control variable / indicator not fire the event.  Given that you do not use value property (signalling) nodes in your program from this moment, won't happen either.

    Note that the value change event is a bit misnamed.  The change event is triggered, even if you do not actually change the data.  So if your LED is currently worth, and you write a True Boolean value for the Value property node (signalling), the event always fires even if you're not technically change the data.

  • Can I record a value Object Variable Global change in a structure of the event?

    I have revealed a global variable to the user via a panel of sup, so that the user directly changes a global variable Panel.  This works very well for this application.

    However, I would like to respond to that in a structure of the event.

    I tried to register for the GV-> [command] Panel.  It seems to work, but the changes do not generate an event.

    I then tried to save the commands individually.  Also hosted in the code, it did not work at run time.

    Is this possible?  Any ideas on how to make it work?


  • Structure of the event run only on first change of the value

    Hi all

    I would like to a structure of the event to run only on the first change of value. I currently put to run on the change in the value of a Boolean value. I'm only interested in what happens the first time that the Boolean value changes; However, he changes several times during a single run of my vi. Is it possible to limit the structure of the event so that it runs only on the first change of value? I have attached the relevant part of my VI. Thank you in advance for any help, you will be able to provide.

    Thank you

    yp21


  • Button value change records in the structure of the event, but does not change appeaance?

    Hello world

    A quick question... I hope someone can answer...

    I have a code that uses a PS button within a structure of event to trigger a signal of AO... My code is below. The code works fine and the OD goes off when you press the button E-Stim... But when pushed the button does not change with reliability the appearance (i.e. of the gray 'off' red 'on' color)... Sometimes color changes; no other time not... If I remove the structure of the event and the survey button in the appearance changes as expected.

    What is going on? I would like the button to change the colors on the user interface to indicate that it works... Should I programmatically control the color?

    Kind regards

    Jack

    I guess that when query you the button you have some delay in your loop? Locking means that the button will change its value when you press it, then switch back to the original value once the value of the control has been used by the code. When you ask, this means that until he reaches the next iteration of the loop, but in the case where the structure that will happen immediately.

    The default setting for the buttons to modify its behavior as in most of the application would be latch releasing. You then raise the event when the button of the mouse over the control. This also allows "drag" control if you push down on the subject, given that you do not release control in this case.

  • change of the indicator with time using the structure of the event

    Hi all

    I use a structure within the meaning of the event to change the State of an indicator. At this point, I was wondering is there a way I can monitor this change of State in a time interval?

    Which means that how I can raise the event only when the state change is long enough (for example 5 seconds), if there is a change of State, but the State eventually back to normal (less than 5 seconds), the event is not triggered.

    Thank you and hope someone can give me some advice on how to do this?

    Sorry for this reading does not completely. Here's a version that works and not stuck to wait.

  • Behavior of structure the event when a property of the control is changed

    Hello

    Is the normal operation of VI attached? Why the change of ownership of a random control would affect the behavior of an event structure?

    THX

    Don't don't never use a structure of the event within a structure of the event.

    Reading guard and recommendations when using events in LabVIEW

    What you saved to lock the hard VI, is that you turned off the setting of Panel lock before your event to their default value being checked.

    The reason why he reacts this way is that the component: the mouse to the top of the event occurs when you go and click on the toggle.  So as soon as you mouse down on the chain, this internal event structure already as the pane: mouse event queue to the top and runs immediately.

    (In fact, that while loop is useless because the while loop can execute only once.)

  • Mass changing the structures of events

    I have a VI in which I am coding a drag and drop events. The front panel has more than 200 indicators and Boolean values in which I want to make it able to accept a decrease from an event drag. My problem is the time it takes to change the structure of the event for all controls, one by one. Does anyone know how to change mass event structures quickly? Unfortunately I can't figure a way to do a drop with references to component event.

    There may be a way to do it using LabVIEW to script to automate the creation of a more complicated case of event.

    But you can try using the user events.  Use of control references tables introduced in a loop For to register for events on each control changing value.  Then you have a case of user event in the structure of the event which manages it.  If you dynamically build your event programmatically while running your VI, rather than do it manually by manipulating the event dialog boxes.

  • structure of the event recorded does not change value

    I have a VI that communicates with an FPGA via a telnet interface.  I have several Boolean controls on the front panel.  When you click a control, it sends a write command on the face i in telnet to the FPGA.  Similarly, if a process in the FPGA himself wrote the same registry (that control written when I clicked on it), an order is generated in the FPGA and returned to the VI and the control (via a local variable) lights or unlights accordingly (based on value).  In other words, these controls are read-write...

    It's all workers, except for one important thing.  I have the code that runs through a structure of event whenever the value of the control changes.  I can see that this code executes in fact when I click on the control via the front panel.  HOWEVER - when something is generated in the FPGA finally changes the value of the control, the structure of the event does not, even if I see the value of the change of control on my front.

    A specific example, I have a control named CLIENT_LB.  When I click on CLIENT_LB, I see it lights up, and I see the event structure code run.  Now, if I have the FPGA process to set CLIENT_LB to 0, I see unlight on my front, but does not run the code structure of the event.  I have probes in place who have checked the associated local variable CLIENT_LB evolving impact of values.  The structure of the event reads: 'CLIENT_LB': value change.

    Shouldn't an event structure "value change" run when the value changes, regardless of whether if it happened manually (i.e. me by clicking on the control) or automatically (i.e. the FPGA written in VI and changes the value of the control)?

    The VI is great, and you would not be able to test it in any case unrelated to the material, to remedy that I've attached 2 screenshots, I have described below.

    1. This is where the string from the FPGA analysis occurs.  The chain between the sub - VI, and then the data chain part is hidden to determine if the Boolean value of the control is true or false.  I put a probe on CLIENT_LB, and I see that as the FPGA changes the value of the register, CLIENT_LB passes from false to true as a result.  I checked this several times.

    2. it is the structure of the event.  This code runs when I click on CLIENT_LB on my face, but does not run when the peak CLIENT_LB #1 local variable is changed.

    Writing to variables never fires events to "change the value. If writing should raise this event, use the property "Value (follow the signs).

    Norbert

  • Structure of the event with value changes

    Hello, I had a problem with the use of a structure of the event. I want the values to change the table itself when the user changes the units, such as the flow rate 4 l / min = 240 l / h... It should appear in the same table. I've already got a code here, but it's quite confusing and does not

    Could you please help?  Thank you

    So that it doesn't?

    How it did not work?

    What you want it to do?

    What did do?

    We cannot read your mind, you must explain in detail.

  • How to trigger the value change in the structure of the event

    HII everyone, like the title, how should I trigger the value change event to display a message... Here is my connection... I want to trigger structure of the event to bring up the subvi, when the flame and the led are TRUE State... I have using the node property, but still not able to run event structure... How should I connect? Thank you very much...

    There are several ways you can do. First of all, you need to configure your sub - vi while he does everything you want when you run (in the properties of vi, top most window for example) and to make sure that it closes completely when you're done (when you click on the 'OK' button, for example).

    Spend you need an asynchronous call to the subvi. There are several ways to do so. My favorite one below. You go in the palette under 'Application control' and select a static reference VI. I like this approach because it keeps track of the way subvi for you, as long as the subvi is in the same project. Then, drag the sub - vi on the empty square which will be changes to your sub - vi icon. Then, you connect to an invoke node in the same palette under and select run VI. "Wait, that 's" set to false and the main VI will continue to function after the start of the vi of Sub. Together "Auto Ref" is the best way to go. Otherwise, you will need to follow the sub - vi reference and shut up yourself when you are finished.

Maybe you are looking for

  • How to protect yourself on: configuration values change by third-party tools?

    Many installers for third-party tools change firefox settings. Things like addons, start pages, new pages tabs, search enignes of firefox are changed without me having a chance to stop them. Why? What can I do? Trustwhorthy the tools (or at least the

  • its 3 good macscan?

    Read an article recommending Macscan 3.  Someone has used and ifs is it useful?

  • What WLAN card has Satellite C70D-(PSCENE)?

    Hey guys,. can you help me please? I need to know what wireless adapter is integrated in the PSCENE of C70D A satellite.I guess that's an Atheros. But what model exactly? Need to know this, because I want to install the adapter in Windows 7. THX!

  • Where are the drivers for my 220cs Satellite?

    Hi all! revently I put my hands on this thing.I reinstalled windows 98se on it, just to give it a clear departure.My problem is, I don't have any what CD driver with her, and I could not find the drivers for the series 220cs on toshiba sites. someone

  • How to add a record button on the front panel to save waveform data

    Hi, I'm new kind of LabVIEW and I worked on a code for an agilent oscilloscope communicate via GPIB and so far it works well on the collection of these two analog channels one by one, "Not UNLIMITED" but it does the trick (vpp, Vrms, frequency, etc.)