How to use time with the State in MODE Lab machine

Hello

I tried to use the state machine with function elapsed time so sequentially, start and stop my code. The arrangement is to start the code for 1 minute then stop for 5 minutes. I have attached the code, the problem is when I place the function elapsed time, exit the while loop it does not, on the other hand when I place it inside the loop it does not work, but it does not give the right signal to move to the next State.

Could you please take a look at my code and help me solve this problem.

Concerning

Rajab

Rajab84 wrote:

APOK thanks for your help

even with the support on start it continues to turn on the case of waiting

could you please explain the code for me, the use of the Boolean crossing, increment and equality of functions

Best regards

Rajab

Ok.. I have modded the example to stop after 2 cycles. Also recommend that you take the free online tutorials of LabVIEW.

  1. run the vi. case statement goes to 'initialize', shift registers are initialized to their constants. GoTo 'wait '.
  2. "start" = false, stay in the current state. If true, switch to the "1 min" case
  3. "Reset timer set off with True of the shift register (counter starts at zero). time elapsed "= false, stay in the current state (1 min). If true, goto "5 min" case
  4. "Reset timer set off with True of the shift from the previous case register (counter starts at zero). time elapsed "= false, stay in the current state (5 min). If true, goto "1 min" case. Also, bool crossing is the search for "true-false" function compares '5 min' to add the number of cycle.
  5. Once the number of cycles reaches 2, stop all loop...

Tags: NI Software

Similar Questions

  • How to use photoshop with the same account on more than one laptop?

    How to use photoshop with the same account on more than one laptop?

    a single user license entitles you to two facilities simultaneous/activations.  so, what's the problem?

  • How to use setFireActionForSubmit with the settings and capture the parameter

    Hello

    Can someone explain how to use setFireActionForSubmit.

    I extend the ShoppingCartPG controller. In the extended controller processRequest method I am adding a button to the table and implementation of the setFireActionForSubmit, so when the button is pressed it triggers the setFireActionForSubmit event.
    I need to pass the RequisitionLineId as a parameter which is present in the t associated with the ShoppingCartPG.

    I used the following code in the processRequest
    =================================
    ' public void processRequest (OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    {
    super.processRequest (paramOAPageContext, paramOAWebBean);
    OATableBean otbRN = (OATableBean) paramOAWebBean.findIndexedChildRecursive ("ItemTableRN");
    OASB OASubmitButtonBean = (OASubmitButtonBean) paramOAPageContext.getWebBeanFactory () .createWebBean (paramOAPageContext, "BUTTON_SUBMIT");

    oasb.setID ("addnInfo");
    oasb.setUINodeName ("addnInfo");
    oasb.setText ("additional information");

    String pageName = paramOAPageContext.getRootRegionCode ();
    Hashtable params = new Hashtable (1);
    params.put ("param1", pageName);

    Hashtable paramsWithBinds = new Hashtable (1);
    paramsWithBinds.put ("param2", new OADataBoundValueFireActionURL (OASB, "${oa.encrypt.current.RequisitionLineId}"));
    oasb.setFireActionForSubmit ("addnInfoEvent", params, paramsWithBinds, false, false);

    otbRN.addIndexedChild (oasb);
    }
    =================================

    And I capture the event "addnInfoEvent" in processFormRequest method and trying to capture the RequisitionLineId I the past as a parameter.
    This is the code that I used in processFormRequest.
    =================================
    ' Public Sub processFormRequest (OAPageContext paramOAPageContext, OAWebBean paramOAWebBean)
    {
    super.processFormRequest (paramOAPageContext, paramOAWebBean);
    OAApplicationModule localOAApplicationModule = (paramOAWebBean) paramOAPageContext.getApplicationModule;

    String strEvent = paramOAPageContext.getParameter (EVENT_PARAM);

    If ("addnInfoEvent".equals (strEvent))
    {
    Number format = 0;
    try {}
    Format = new Integer (ClientUtil.getDecryptedParameter (paramOAPageContext, "param2"));
    }
    catch (System.Exception e) {e.printStackTrace () ;}

    String outmsg = "line ID:" + size + ":" + strEvent;
    throw new OAException (outmsg, OAException.INFORMATION);
    }
    }
    =================================

    But I'm not able to capture the RequisitionLineId I sent as a parameter.
    Can someone let me know what I am doing wrong.

    Hello

    Because your table is not a tip so table using a submit button approach will not work because it won't give you rank of reference and you will not be able to enter the id of the corresponding command line, instead you use an icon of the image, which can be created through customization. Let me know if you need help in the code.

    Thank you
    Pratap

  • How to use USB with the name of resource VISA?

    Hello

    I am new to LabVIEW and I'm working on a code that must acquire data from a measuring device. This unit has only a USB output, so I have to work with it. As far as know the block that is used to refer to an external port is VISA resource name. I installed a driver that recognizes the serial ports, and they appear in the list of VISA resource file to the front panel. So I thought that installing the DEVICE driver so that the USB ports would appear. I installed and nothing of USB ports. I don't know it's as simple as that, or work with USB ports is a little more difficult. I tried many things and nothing worked I am here.

    PS: I noticed that the version of the driver is 64-bit (my pc is 64-bit) and my LabVIEW version is 32-bit, what could be the problem?

    The device incidentally is Digital Analyzer WT500, Yokogawa.

    Thank you.

    Victor,

    the suggestion driver instruments is to make it easier by using the instrument.

    Normally, you need to install a player from the manufacturer (if it is not installed, the instrument appears as a USB in Device Manager) and the driver NI-VISA. But for some instruments, manufacturers have APIs that uses NI VISA to communicate with your equipment.

    In order to check whether your instrument appears correctly in Device Manager (as indicated by Yokogawa). If this is not the case, check whether Yokogawa has a suitable driver for this tool and install it.

    Is this clear?

    If you wish, you can contact NI Brazil support site or by phone (11) 3149-3149 Ext 3.

  • How to use Vcle with the ENTER key on the keyboard rather than push the button

    Salvation or engineers,

    Instead of using the button send, after I order in a chain of key control I want to just press enter on the keyboard.

    I remove the button send, just use a binding string raises the event Vcle, can it work?

    can any body give me a hint?

    Thank you 1 million.

    It can work. You have problems with? Have you tried simply to create a structure of event and event management 'touch Down'?

  • How to read 4 similar channels at the same time with the MCC

    Hello

    with the mcc libraries and a card PCi-6034 classic (by calculation of the measure), I want to read 4 analog channels at the same time. I have a "scope" with 4 channels.  How to read 4 channels at the same time with the mcc?

    MF

    Hello MF.

    Thank you for using OR support.  I guess you try to program in LabVIEW.  Where exactly did you get the MCC library of?

  • I made a new music video for a song, and the music is not in time with the film, how I put in time?

    I made a new music video for a song, and the music is not in time with the film, how I put in time?
    Oh and I'm using WIndows Movie Maker. One.

    Please repost in Windows Live Solution Center.
    Forum on Windows Live Movie maker:
    http://windowslivehelp.com/forums.aspx?ProductID=5

  • dml execution 2 statements at a time with the help of execute immediate

    I would like to run 2 DML statements at a time with the help of execute immediate usefulness,.

    ex:

    update employee set ename = 'Chantal' where eno = 123;
    Update dept set dname = 'IT' where dno = 345;

    I want the two statement to execute at a time, but I don't want to use any loop as well.

    Thanks in advance

    You can use:

    execute immediate 'begin update employee set ename='jagadeesh' where eno=123; update dept set dname='IT' where dno=345; end;';
    

    Although updates will always run one after the other.

    If you want the simultaneous treatment, then you need to use DBMS_JOB and DBMS_SCHEDULER to plan both work to run to run each of the statements independently.

  • When you try to activate creative cloud, I get "this code has already been used. How can I proceed with the download and installation?

    When you try to activate creative cloud, I get "this code has already been used. How can I proceed with the download and installation?

    Thanks for the Email, the problem is solved now. Please do not hesitate to contact in the future.

    Concerning

    Baudier

  • See the time with the date in the cell?

    How do you not see time with the date in a cell? I tried all the settings I can find but without success.

    Using the numbers from version 3.6.2 (2577) - OS: El Cap 10.11.6

    I don't want to see that 12:00:00 AM

    Hi Russ,

    Inspector to format > cell, the parameters as shown below:

    Kind regards

    Barry

  • addisctl.sh: leave with the State 1

    Salvation;

    My OS: sparc instance stsem r11.5.10.2: demo

    When I try to start the service apps I have this error:
    addisctl.sh: leave with the State 1

    Log files:
    /VIS/VISORA/8.0.6/vbroker/bin/osagent
    Osagent began.
    Osagent saves messages in the VIS/visora/8.0.6/discwb4/util/osagent.log file.
    Waiting for the ADO start...
    ADOS has begun.
    OAD records messages in the VIS/visora/8.0.6/discwb4/util/oad.log file.
    Discoverer Locator began.
    Locator saves messages in the VIS/visora/8.0.6/discwb4/util/locator.log file.
    Cannot bind to the ADO. Turn it back on...

    ADO is not running
    Osagent is stopped
    Locator is stopped
    Could not stop the gatekeeper. No process id of file found.
    Could not stop the discoverer Sessions. No process id of file found.
    Cannot stop all preference discoverer. No process id of file found.
    Cannot stop any collector of discoverer. No process id of file found.
    /VIS/VISORA/8.0.6/vbroker/bin/osagent
    Osagent began.
    Osagent saves messages in the VIS/visora/8.0.6/discwb4/util/osagent.log file.
    Waiting for the ADO start...
    ADOS has begun.
    OAD records messages in the VIS/visora/8.0.6/discwb4/util/oad.log file.
    Discoverer Locator began.
    Locator saves messages in the VIS/visora/8.0.6/discwb4/util/locator.log file.
    Registration Session discoverer
    oadutil reg: could not bind to the ADO
    The Collector registration
    oadutil reg: could not bind to the ADO
    Apply preferences file: /VIS/visora/8.0.6/discwb4/util/pref.txt
    Finish the application preferences


    Closure of register...
    Synchronizing registry files...
    Registration of preference discoverer repository
    oadutil reg: could not bind to the ADO

    addisctl.sh: leave with the State 1

    This demo of the instance. Wiht 11.5.10.2 demo default disco is 4i? I read some doc. and it says upgrade, it, if problem exsist upgrade, should I update for demo or if I do not use future discoverer in demo I do not need to do nothing?

    Thank you

    Hello

    This demo of the instance. Wiht 11.5.10.2 demo default disco is 4i? I read some doc. and it says upgrade, it, if problem exsist upgrade, should I update for demo or if I do not use future discoverer in demo I do not need to do nothing?

    If you do not plan to use Discoverer 4i, you can simply exclude this script adstrtal.sh script - see (Note: 398835.1 - how to stop creating Addisctl.Sh Autoconfig after discoverer upgrade).

    Please note that discoverer 4i was desupported for E-Business Suite users in October 2006.

    Note: 186981.1 - Oracle Application Server with Oracle E-Business Suite Release 11i FAQ
    Note: 313418.1 - using discoverer 10.1.2 with Oracle E-Business Suite 11i

    Kind regards
    Hussein

  • How do you communicate with the Apple Watch

    How do you communicate with the Apple Watch

    Hello!

    Welcome to the Apple community. I'm not quite sure what you mean when you say "communicate" with the Apple Watch, so I'll give you a few options that can respond to your request.

    (1) the Apple Watch supports Siri, just like the iPhone and the Mac. To apply, simply say "Hey Siri" while the wrist is triggered, and your watch will respond. Alternatively, you can hold the digital Crown and Siri will be activated. As soon as Siri is activated, you can ask him questions such as "what is the weather today" or "reminder", or "Let's start a workout."

    (2) you can manually send SMS via your Apple Watch by use of Siri, or opening the messaging app. That Siri send your messages, just say 'Hey Siri, send a text < name >' and Siri will open the Messages app and wait to talk to you about your message. If you want to move the Messages app manually, press the digital Crown and will take you to the home screen. In the home screen, select the Messages app (a green icon with a word inside bubble). Any existing message log must appear, and you can type on a given message log and choose to respond.

    (3) If you want to place a phone call using your Apple Watch, you can say "Hey Siri, call < contact name >". If you have several numbers for a particular contact, Siri will ask you what number you want to call. You can also you can present a more specific request like 'Hey Siri, call < contact name >, < number >' with the number favorite is 'work' or 'House' or 'mobile' etc. So the demand go something like "Hey Siri, call Barbra, House".

    If you are still at a loss, with regard to the types of orders that Siri will accept, you can always ask. Say 'Hey Siri, what can you do?' and she will give you a list of commands that she will answer to the.

    If all goes well, I addressed your question. If not, please provide a little more information and I'll do what I can to help you.

    Good luck!

  • problem with the state machine

    Hello! I have a VI to monitor a storage tank. I tried to do by creating a simple state machine that changes the value(on/off) of some faucets based on 2 conditions:

    -When a certain temperature reaches a predetermined value AND its derivative is<0, the="" state="" must="" change="" from="" on="" to="">

    -When some time passes, the State should change from off to on.

    Unfortunately I can't get this working as it never changes state (by example, if I start with him always stay on 'on' and vice versa).

    Could you please tell me what I'm doing wrong? I enclose the screenshots of the 2 States.

    Thank you!

    Sounds like your shift which could not not be wired properly.

  • I get a message says "the site is unavailable at this time" with the error code [0 x 80070424].

    Original title: error code [0 x 80070424]

    My security alerts continues to tell me that the automatic updates are disabled. I check in the Security Center, and they are in position "on", but it won't download updates. When I go to the Microsoft website to update directly, I get a message says "the site is unavailable at this time" with the error code [0 x 80070424]. Microsoft doesn't even have it classified as a potential error code. I checked the status of the Fund Manager and it is set to "Auto" and it is started, but does not resolve the issue.

    Hello

    You did changes to the computer before this problem?

    Try the troubleshooting provided in the article below steps and check if it helps.

    Error message when you use Microsoft Update or Windows Update Web sites to install updates: 0 x 80070424
    http://support.Microsoft.com/kb/968002

  • How to use paper in the latest version of Windows Live Mail?

    How to use paper in the latest version of Windows Live Mail?

    Version 2011

    Short answer: the stationery support has been removed from Windows Live Mail with the upgrade of v.2009 v.2011 back in 2010.

    Long answer: there are two solutions of workaround that you can try.

    • If you have a stationery .htm file, open it in Internet Explorer, and then select file > Send > Page by email (Alt - F E P). Save the message as a result as a .eml file and use it as a model for messages.
    • You can get in shape, for example a background color, to a HTML signature, then apply this signature to an e-mail message. Here's the one I use when sending pictures:


      Hello!

      Love
      Noel


      Here is the result:

Maybe you are looking for

  • Is there a way to read all the music of a kind without creating a playlist?

    Is there a way to select a genre in 'my music' and play all this music randomly.  In its current form when I select the type tab in my music, he will show me all albums, but no way to play what he. I play all this create a playlist. The feature of th

  • quadrant ICS pre and post scores

    I would be interested in your pre - ICS and ICS-post on Quadrant Standard scores. I get between 2800 and 3000 on the MAXX, I think that you guys will get even, maybe even better. Also I was wondering if anyone of you has moved to 1 .2GHz now on ICS.

  • LV 2009 SP1 Build error OR

    While trying to do a build on LV 2009 SP1, I get this error: The build failed. An error occurred during the recording of the following file: Sample.VI Details: Visit ni.com/ask support request page to learn more about the resolution of this problem.

  • ENVY 5530 adjust the clarity/darkness of copy

    I could adjust the lightness/darkness of copies on my old printer PSC 1310, but I can't find how to do this on my 5530 ENVY.

  • HP G60 4440us: computer laptop HP G60 will not start in safe mode

    My laptop starts and the sceen is on the side and the cursor is frozen. I tried to hit the ctrl and alt and arrow button but nothing happened. Impossible to get in the Manager of tasks either. I tried to start up in safe mode but the up arrow does no