Change control while statemechi​ne running

Hi
In my simple carwash program i need some solution.
when we press deluxe button program should run all the 5 steps.
for economy program should run 2,3,4 steps.
while running in steps if Out Position switch is on, program should check the timeout condition.
when timeout condition satisfied program should exit.
here some functions working fine.
we have problem is that while executing the steps i need to change the position of the Out position switch.
it doesnt work till all the steps to complete.
how to solve any solution please.
Regards,
hari
Attachments:
carwash.vi ‏125 KB

Hi Hari,
The reason the switch is changing only after the loop is finished is because you've inserted a while loop inside the event structure.
If you've already done embebbed programming, the event structure is like an interruption, you are not supposed to make big actions as loops inside the structure.
What you have to do is to take the statemachine outside the event structure. In fact, you don't even need two state machines, you can make only one and do the steps depending on the option you've selected (try to add a "WaitBegin" or something state in your machine and, depending on wich button is pressed, you start in bool1 or bool2 state. In bool4, you check based in which option you've selected if you want to go to step 5 or go back to Waitbegin state - Select function in comparison pallete will be useful for this).

Similar Messages

  • Changing Input While VI is Running

    I am trying to change the string input that changes the case statement on my VI. I can change the case when I stop the VI and start it up again, but it also doesn't stop what the last case did.  I appreciate the help!  Attached is the program.
    Attachments:
    ConditionalLoop.vi ‏273 KB

    seth.larimore wrote:
    I have it to the point where I can select the case, but I can only select the case by stopping the program, typing in the command, and then restarting it.  I want to be able to not stop the program every time I want to select a different case.
    Also, I cannot get the signal to stop outputting from the DAQ.  I found that a solution may be to use the TIMEOUT input of the DAQAssistant.  But I am unsure if this is correct as I have not successfully done this.
    Thanks for your help.
    This is DATAFLOW programming! When you run your program, the while loop waits for the string control to output its value (which happens immediately upon running), then keeps that value and runs happily along, never needing the string control again.
    You need to use a user event structure if you want to change the value of the string control, have something happen (like get a sample from the DAQ), then wait for you to change the string control again, do something, etc.
    “A child of five could understand this. Send someone to fetch a child of five.”
    ― Groucho Marx

  • Why can't i change units while vi is running on horizonal fill slide?

    I have a horizonal fill slide with two sliders and units of sec. I want the user to be able to change the two digital displays from min to sec while the vi is running.
    right now, i can change the units on the slider itself correctly, but the digital displays don't update to the new units. how can i get the digital displys to update?

    Here's a peice of code that demonstrates it. push the first boolean, wait a bit, push the second, then change the units. the digital display units are not updated.
    Attachments:
    test_code.vi ‏51 KB

  • How to change options in Run time menu while labView was running

    Hello Good Afternoon,
        I m Using LabView 8.5.How to change the options in Run time menu for any control while Labview was running
    Thanks 
    Jai
    Jayavel
    Solved!
    Go to Solution.

    Hi Jai,
    Try the below attached VI and let me know if u still need some explanation.
    Rgds,
    Venky
    Attachments:
    Run Time Menu.zip ‏6 KB

  • Programatically bring the cursor to a numerical control while VI running

    Does anyone know how to programatically move the cursor to a particular numerical control while a VI is running?
    I have a VI that polls the user for information, and at one point, the user has to repeatedly type numbers into the same numerical control and press enter. For a number of reasons, it is awkward to be messing with the mouse during this particular test. Each time the user presses a paricular button to send data a to file (which I have linked to the Return key on the keyboard by means of 'key navigation'), I would like the cursor to jump to the relevant numerical control ready for the next number to be entered on the keyboard. Does anyone have any ideas how to do this?
    I have set up a separate key navigation for thenumerical control in question, so if the user presses the Esc key, this control becomes active and the cursor is in place, but I would like to move the cursor there without this extra user button press if at all possible. 
    Regards,
    Will

    Will
     I'm not sure if this is what you are looking for but it might do what you need.
    On the block diagram right click the control in question >>create>>property node>>key focus. Now right click the property node and select Change to write. Wire a boolean true constant to it and place this snippit in the appropriate place(s) in your code depending upon your architecture.
    Hope this helps.
    Using LabVIEW 2010SP1 and TestStand 4.5

  • Error on Control Center while trying to run jobs

    Hi,
    I got a problem while trying to run the scheduled jobs or process flows.
    We tried restarting the control center service manually. It is started without throwing any errors at the backend. But when I open the control center service and try to start or stop a job, its throwing the below error.
    The error is as below.
    ORA-20029: The control center service is not currently available
    ORA-06512: at "OWB_REPO.WB_RTI_EXCEPTIONS", line 107
    ORA-06512: at "OWB_REPO.WB_RTI_QUEUES", line 200
    ORA-25207: enqueue failed, queue OWB_REPO.WB_RT_SERVICE_QUEUE is disabled from
    enqueueing
    ORA-06512: at "OWB_REPO.WB_RTI_SERVICE_EXECUTION", line 548
    ORA-06512: at "OWB_REPO.WB_RTI_SERVICE_EXECUTION", line 619
    ORA-06512: at "OWB_REPO.WB_RT_EXECUTION_CONTROL", line 27
    ORA-06512: at line 1
    I am not able to resolve it. Could any one of you please help me in resolving it?
    It is very urgent. Thanks a ton in advance
    Regards,
    SriGP.

    Hi Oliver,
    Thanks again!!
    There are a lot of queues in DBA_Queues.
    But how can we know which queues should be enabled and which queues should be disabled? As I observed, All the Exception queues are disabled and the reamining queues are enabled.
    About the parameter aq_tm_processes, we have not changed the value of it. Previously, all the jobs used to execute perfectly with the same setting. So, I dont think the value is a problem.
    Recently, we had the below problem in database, because of which all the jobs got stalled/hanged. The system DBA had resolved this problem by extending the SYSTEM tablespace. After that all the database is fine except the OWB jobs. Is there any impact on the on the owb jobs because of the below error?
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01653: unable to extend table SYS.AUD$ by 8192 in tablespace SYSTEM
    ORA-02002: error while writing to audit trail
    ORA-00604: error occurred at recursive SQL level 1
    ORA-01653: unable to extend table SYS.AUD$ by 8192 in tablespace SYSTEM
    Thanks in advance,
    SriGP.

  • Error while creating Project Change Control - You are trying to access a page that is no longer active.

    Hi there
    We are on Release 12.2.4 (on Linux x86-64) and getting the following error while assigning the Agreement to a Change Control's Action Item. As a result of this we are unable to proceed ahead with completing the Project Change Control process.
    Any help will be greatly appreciated.
    Steps to reproduce
    Navigation - Project SU Vision Services Responsibility > Project > Control > Change Orders
    1. Create a new Change Order > Create a new Action > Impact > Check Financial Impact checkbox
    2. Under the 'Agreement Information' choose the Funding Agreement. Following error is thrown:
    You are trying to access a page that is no longer active.
    - The referring page may have come from a previous session. Please select Home to proceed.
    3. I tried clearing the cache, bounced Apache, and even restarted the entire Application Tier. The error doesn't go away.
    Regards
    Kabeer Khan

    Hi there
    We are on Release 12.2.4 (on Linux x86-64) and getting the following error while assigning the Agreement to a Change Control's Action Item. As a result of this we are unable to proceed ahead with completing the Project Change Control process.
    Any help will be greatly appreciated.
    Steps to reproduce
    Navigation - Project SU Vision Services Responsibility > Project > Control > Change Orders
    1. Create a new Change Order > Create a new Action > Impact > Check Financial Impact checkbox
    2. Under the 'Agreement Information' choose the Funding Agreement. Following error is thrown:
    You are trying to access a page that is no longer active.
    - The referring page may have come from a previous session. Please select Home to proceed.
    3. I tried clearing the cache, bounced Apache, and even restarted the entire Application Tier. The error doesn't go away.
    Regards
    Kabeer Khan

  • Why can't we change and activate a process chain while it is running?

    why can't we change and activate a process chain while it is running?

    Hi.........
    Yes u can activate the changed PC...............but don't schedule it...........
    If u schedule the Chain............when the current chain is running..............it will get stucked in the process..............which was executing ........at the time when it was scheduled.............
    I thnk u hav made some chainges in the PC in Planning mode.............right...............Activate it............after the completion of the current run of the chain............schedule the chain........
    Regards,
    Debjani.........

  • Avoid credit control while changing delivery

    Hi,
    I have a problem:
    We'd like to avoid the credit control when there is changed a delivery note.
    We have defined a condition in which we placed the "BYPASS" (OSS 895630) variant in connection with the transaction code (e.g. VL02N).
    The problem is, that we change our deliveries via WHSCON idoc, here the transaction code is " ". If we add the transaction " " in our condition to avoid the credit control while changing the delivery with an idoc, we will have a problem when we create our deliveries, because the deliveries are created by a batch job, too (transaction is even " ", too). So the credit control won't even work while creating a delivery, too. This is a difficult situation.
    So I'm searching for a way to differenciate between changing and creating a delivery, that I am able to overtake that in the condition.
    Hope to be clear.
    Chris

    Hi again,
    I think I will make a check if the delivery number is initial or not.
    The system will check as follows:
    - when the transaction is " " and the delivery number is not initial --> avoid credit control
    - when the transaciotn is " " and the delivery number is initial --> process credit control
    Sometimes the solution is easier as expected first...
    Thanks for help!!
    Chris

  • How to make metadata changes stick when having made the mistake of updating while Match was running?

    I've painfully come to realize that much my tedious process to add composer to 4,000+ tracks where this was missing, was done while Match was running.
    I have a Time Machine backup of the library that contains the changes, but if I restore this, Match insists on downloading the old metadata (which means deleting the composer data). Is there any way to force Match to update the cloud data based on this backup of the library file?
    I really don't want to have to locate and add this data again...!

    For ringtones, iTunes > Preferences > General >Import Settings... button > choose Import using AAC encoder to enable Create AAC version from .m4a and mp3 files.

  • Accidentally and stupidly dropped phone in sink while it was running.  Phone works, but blue stuff on bottom of screen.  Left in bag of rice for 12 hours, no change.  Should I leave in longer or try something else?

    Yesterday evening I accidentally dropped my iphone 5s in the sink while it was running.  I immediately removed it and it started acting funny (sreen would turn on and off on it's own).  It stopped doing that and was working fine.  However, shortly after when I had time to really look at it, I noticed blue-ish stuff on the bottom of the screen.  I turned it off and put it in a ziploc bag with rice for over 12 hours.  Turned it back on today and the blue stuff is still there.  Anything I can do?  Should I put it in rice for longer?  My concern (aside from the blue stuff driving me insane) is that the phone may suddenly die on me at any moment if there's still water in it and it's only a matter of time.  Will an apple store do anything?  I can't replace the phone.  I haven't had it for very long, but it is definately out of warranty period (not that apple covers water damage anyway).  Any help is much appreciated!

    rachel24to wrote:
    I turned it off and put it in a ziploc bag with rice for over 12 hours.
    Now before you do anything else, put it back in the bag and leave ot there for another week.
    Turned it back on today
    Oh, too late...
    Try it anyway.
    I haven't had it for very long, but it is definately out of warranty period (not that apple covers water damage anyway). 
    Apple warranty is 1 year and iPhone 5S has not been released for 1 year.
    However, dropping it in the sink has voided the remainng warranty.
    You can get a replacement fro $269 (U.S.) at an Apple store.

  • Changing zone interface while zone is running

    i need to change the interface for the running Solaris zone in E2900 system.
    now the zone interface is ce0:1 now i need to change the interface to ce2.
    whether i need a reboot of the zone or not.
    if reboot is not needed the following is ok or not
    :my-zone> add net
    :net> set address=x.x.x.x
    :net> set physical=ce2:1
    :net>end
    :my-zone>verify
    :my-zone>commit
    ^D

    Well, you'll want to do that anyway for the next time you start the zone.
    For the immediate changes, I think you'll need to go into the global zone and unplumb the interface. Then plumb up the new one into the non-global zone that you want. Ifconfig takes a 'zone' keyword to specify it.
    Darren

  • E2E 200 change control management training (Run SAP ) FAQ

    Hi to all,
    I have attended E2E 200 change control management training . Now I want to go for certification but I want the sample questions for this exam.  Please forward the questions.
    Thanks,
    Amit

    Hi ,
    I am willing to attend   E2E100 and E2E200 ( RCA and Change management) at Banglore SAP training.
    I would like to know how is the training, is 5 days sufficient for each one of it.
    I am also planning to write certification for this.

  • HT3597 My voice control randomly kicks in and interrupts itunes while I am running. Is there a way to disable this function?

    Disabling voice control while I'm running

    Go to the Store menu and Check for Available Downloads...?
    I used to get prompted when there was something waiting or unfinished.
    Regards,
    Colin R.
    Message was edited by: Colin Robinson Sorry, just seen that it's App Store not iTunes

  • Ipod touch can no longer tilt while playing Temple Run or Back Breaker Football

    IPOD Touch can no longer tilt while playing Temple Run or Back Breaker Football or any game where you need to control the tilt or turn.

    Managed to finally factory reset the unit (see my other post).
    Should be OK now.

Maybe you are looking for

  • Opening more than one site at a time

    I hope I'm at the right discussion group. I wouldd like to know how to open more than one site or page at the same time w/o losing one when I go to another site/page, which right now, entails punching in the previous info into iGoogle again, and subs

  • Spaces and Exposé don´t work together properly in Leopard

    The very first time I activated Spaces, I defined four windows to be controlled with combined F8 key and right mouse button (the mouse being part of the Microsoft Optical Wireless Desktop 1000). But now I cannot use Exposé to open, say, Safari and Fi

  • How I fixed  bug with Windows VISTA & iTunes 7.3 software...

    Okay guys, for a few weeks I've been posting about how my Windows Vista will not work with the iTunes software 7.3. Many of you with Vista also have posted the same problems over and over and over with no real answers available to us. Well, I have fi

  • Dreamweaver CS4 strange issues happening

    Suddenly when I do a find and replace and I do a carriage return in the replace portion of the find/replace window to make my edit go to an extra line, the carriage return occurs behind it on the page I'm editing. It doesn't add a <p> tag in the docu

  • Can CS4 be used in OS X Yosemite?

    I have bought a Adobe Creative Suite 4 Web Premium a few years back. I can download it in my mac but I can't use it as its not compatible on new os. But I have the serial numbers though. Any ways to solve this? I really need to use Ai & Ps.