Timed Switch between 3 Cases and Back!

Hello,
I am trying to determine how I can switch between three cases in a case structure allowing a certain time between each switch.
For example: say I have three cases in a case structure (Cases {0,1,2}) where zero is the default case.
What I would to do is start in the default case 0 wait 1 sec, switch to case 1, wait 1 sec switch to case 2, wait 1 sec switch back to case 1, wait 1 second switch back to case 0.  Then repeat the order.
I was using the timer elapsed value from the Ramp Tim function to switch a select function between true and false but with the additional case I don't think this approach will work.
Any ideas?
Tim
Solved!
Go to Solution.

Search for the term "State Machine". It is what you re trying to invent (nice work) so feel free to "Cheat" and look for the wheel as it exists now.
Ben
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction

Similar Messages

  • I'm using apple's bluetooth keyboard and I need an easy way to switch between the text and numbers fields instead of tapping on the screen

    I'm using apple's bluetooth keyboard and I need an easy way to switch between the text and numbers fields instead of tapping on the screen

    While not in edit mode:
    - if start typing numbers, then it enters number mode.
    - if start typing text, then it enters text mode.
    Using the arrow keys exits edit mode. So this should work for you:
    1 Type text into a cell, which enters text mode.
    2 Press Return to move to the next cell.
    3 Press right arrow key to exit edit mode.
    4 Press left arrow key to get back to the cell.
    5 Type a number, which enters number mode.
    Another method that requires more planning ahead of time is to format the cells as text or number before starting the data entry. Then when you navigate to a cell while in edit mode, you will be in the appropriate mode (without having to exit edit mode).
    This all works fine for me. Hopefullly it does for you also.

  • Duet makes noise after switching between finder audio and Logic

    Hi
    My Duet makes noise after switching between "finder audio" and "Logic", In other words i would play a mp3 in the finder and when returning to Logic all my audio sounds like the "lo-fi" RTAS free plug digidesign gives away now.
    This is happening on a White *iMac 24"*
    Model Name: iMac
    Model Identifier: iMac6,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.33 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 4 MB
    Memory: 2 GB
    Bus Speed: 667 MHz
    Boot ROM Version: IM61.0093.B07
    SMC Version (system): 1.10f3
    MacOsx 10,5,7

    Does this happen every single time? The same thing happens to me every once in a while. I just close Logic and Maestro and unplug the Duet. Then, in this order, plug in the Duet, wait for it to click, load Maestro, load Logic. Works every time.
    Edit: It does only seem to happen when I switch from Logic and the audio output from the Duet to internal and then come back quickly. I don't think it's an issue with the Duet hardware itself.
    Message was edited by: AecDuck

  • Delaying when switching between apple mail and safari

    just on mavericks.
    it more or less looks and feel ok but...
    when I switch between apple mail and safari, everything "freezes" for some seconds (up to 30).
    anyone similar experiences?
    what could be the cause of that?
    its really disturbing.

    I am a little puzzled by the libraries and switching between the libraries. My personal computer has the majority of the movies and content that would be transfered to the appletv. I chose to only select a minimal amount of content (of movies and tv shows, music via playlists) so there would be space left that would hold photos. Also, i just want to send over only what I want to view (manual synch) If I switch to my Kids library, it streams all the content well (movies & tv shows)(which is fine and streams well) If I switch back to my library, it shows every movie, every tv show, hundreds of music playlist that I did not choose to see. (stream mode) The only fix is to reboot the computer, and all is well. anyone experience this issue?

  • MacBook Pro won't automatically switch between internal speakers and display audio

    I have a MacBook Pro that connects to a LED Cinema display.  It used to automatically switch between internal speakers and display audio when plugged in to the display but won't anymore.  I have to manually change it in System Preferences --> Sound. Does anyone know how to make it do that again?
    thanks,
    Ben

    I just want to add, I have the same problem, and just want to help raise awareness of it.
    1st, the problem only started recently (have been using the Thunderbolt display since it was released), I did not have this problem, and noticed it beginning only in the last month. (since January)
    2nd, My particular setup, includes a hard drive attached to the firewire port on the back of the Thunderbolt Display (so, I am wondering if anyone else experienced this problem with a firewire drive being connected).
         My full setup:
              Macbook Air (2011)
             Thunderbolt display
              Western Digital drive (attached to firewire of display)
    3rd, If I go into settings, what I will see is the "Display Audio" is selected (but no sound coming out),
    If I then select "Internal Speakers," a buffered "history" of all the sounds I did not hear is then played (pretty funny actually) - for  example, if I sent mail, adjusted the volume, and started playing a song.... it immediately plays all those sounds when selecting "Internal Speakers"
    4th, If i then select "Display Audio" - it does nothing
    5th, what I have to do, to resolve this is:  eject all my hard drives,  disconnect the thunderbolt cable, then reconnect the thunderbolt cable, and everything works as normal.

  • CS6/CC - switching between source monitor and timeline disaster

    Now what is this?
    It all works fine until you try DV Output.
    In DV Output mode every time you switch between source monitor and the timeline it goes to some scary ritual:
    1. output disabled on external monitor
    2. some crazy flickering happens
    3. ok, now updated picture on external monitor finally appears
    Same happens when switching back to timeline.
    Also when scrubbing through timeline video and audio is late for a few centuries on DV device/external monitor/speaker.
    Why Adobe screwed firewire environment editing? I'm thinking about changing my job. Editing with Premiere is killing me lately. I'm thinking about starting to work with bees or strawberries, or something else less frustrating.
    And Premiere CS 5.5 was the best editing software ever released. It has no similar problems. Why CS6 and CC are retarded?

    I'm just asking for properly working feature which is alredy implemented and worked fine in earlier versions.
    Adobe, can this be fixed, please?

  • Timeline window missing button to switch between frame mode and timeline mode

    I'm using Photoshop CS6 Extended.
    This is what my timeline looks like now.
    In tutorials they refer to a button that should be to the left of the drop menu that says "forever". The button is supposed to allow you to switch between frame mode and timeline mode.
    this is what the timeline window looks like in timeline mode and with the button that allows you to switch.
    I've already tried reinstalling and upgrading to CS6 extended, as some forums suggested.
    Please help. Animation is the core reason that I need photoshop and without this button I'm extremely limited. Thanks.

    OK. This should work. Copy and past the below script into Script Editor, save it as an AppleScript application to the Desktop. Double-click it and it should change to grayscale. Double-click it again and it'll toggle back.
    tell application "System Preferences" to activate
    delay 1
    tell application "System Events"
    tell process "System Preferences"
    click the menu item "Universal Access" of the menu "View" of menu bar 1
    click the radio button "Seeing" of the first tab group of window "Universal Access"
    click the checkbox "Use grayscale" of tab group 1 of window "Universal Access"
    end tell
    end tell
    tell application "System Preferences" to activate
    delay 1
    tell application "System Events"
    tell process "System Preferences"
    click the menu item "Universal Access" of the menu "View" of menu bar 1
    click the radio button "Seeing" of the first tab group of window "Universal Access"
    click the checkbox "Use grayscale" of tab group 1 of window "Universal Access"
    end tell
    end tell
    tell application "System Preferences" to quit

  • My 3GS keeps switching between iPhone speaker and Dock connector and I don't know how to keep it on iPhone speaker

    My 3GS keeps switching between iPhone speaker and Dock connector and I don't know how to keep it on iPhone speaker so I can listen to my music and games.  Is it hardware or software problem?

    I was told by a friend that sometimes when you use a 3rd party charger that the connectors are not the same size and so it can affect the sensors in the phone and make it seem like it is in a docking station and so changes the output for dock speakers.  With that said, I didn't take my pohone in to be serviced at the appple store because it was a 3GS and over 2 years old and so not covered by any service plan.  Since then my phone is back to normal and I can use my headphones and listen with the speakers on the phone.  I stoped using the suspected cheap 3rd party charger and maybe that's what did it, but not sure if it was or wasn't the cause of my problem.  I'm glad that my phone is better I was kinda holding out for the Iphone 5 when i comes out later and hope my phone lasted until then.

  • What is difference between Managed Bean and Backing Bean?

    What is difference between Managed Bean and Backing Bean? Please guide me how to create them and when to use them?
    Please post sample for both beans.

    Hi,
    managed beans and backing beans are quite the same in that the Java object is managed by the JavaServer Faces framework. Manage in this respect means instantiation. The difference is that backing beans contain component "binding" references, which managed beans usually don't. Do backing beans are page specific versions of managed beans.
    Managed beans are configured either in the faces-config.xml file, or using ADF Faces and ADFc, in the adfc-config.xml file
    Frank
    Edited by: Frank Nimphius on Jan 31, 2011 8:49 AM

  • Switching between page layout and word processing

    I can't seem to switch between page layout and word processing view.  I've read all the posts on this and still can't figure out why I can't just type a document into Pages.  The only option I have in page layout view is to type into text boxes, which is not what I want.  I just want to type a letter for crying out loud.
    Before I get all the rants about reading User Guides, etc.  *I have*.  I've also searched on here and in-app help and just don't understand the fuzzy/non-existant answers.  Obviously, I'm a newbie, so please don't jump all over me for this.  If it was Word - I could do this in NO time.  I just find it incredibly frustrating that inputting a normal document should be so difficult.
    Is "Pages" *not* a word processing program?  Is it just a cut and paste application?  Sorry for the tone - I mean no disrespect - it's just that I've been fooling around with this for DAYS and I just don't have time to spare anymore.  I really need to get this done.
    Can somebody give me a straightforward answer on how to just type a normal document into pages without using text boxes?
    Thanks and I apologize for not being mac-savvy.  It took some of us a lot longer to see the light =)

    Here is a script doing the conversion task for you.
    Open a Page Layout document
    run this script:
    --{code}
    set p2t to (path to temporary items from user domain) as text
    set path_2_doc to p2t & (do shell script "date +_%Y%m%d_%H%M%S.doc")
    tell application "Pages"
      save document 1 in path_2_doc
      open file path_2_doc
    end tell
    --{code}
    that's all folks.
    Yvan KOENIG (VALLAURIS, France) lundi 20 juin 2011 18:03:28
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • PLs. find link between a case and its activities?

    Hi ,
    I need a function module or a table relation  in order to make a link between a case and its activities.
    and also want to know the relation between *crmd_orderadm_h-guid with SCMGRECP01-PHIO_ID. *
    Please help me .

    Hi,
    you can try vice versa
    CRMD_CMG_CASE_AT-CASE_GUID = SCMG_T_CASE_ATTR-CASE_GUID
    SCMG_T_CASE_ATTR-EXT_KEY =  CRMD_ACTIVITY_H-EXTERN_ACT_ID 
    CRMD_ACTIVITY_H-GUID =
    CRMD_ORDERADM_H-GUID
    Regards,
    Sumeet

  • Iphone switching between pod cast and Ipod shuffle

    Hello, I have an IPhone 3 G and while I am running at my gym it keeps switching between my IPod and my podcast player. I have checked my internet connections and it is fine. I know I am not hitting the shuffle buttoon because I turn the sceen saver off, after I have selected the Pod Cast music that I like. Is it the head phones or the IPhone?

    One thing that might help out.
    The button on the headphones does not have the ability to shuffle media files.
    One click to pause or play. two clicks to advance to the next track.
    Here is a link to the iphone user guide that might help out.
    Check out page 63 for shuffle and repeat features.
    http://manuals.info.apple.com/enUS/iPhone_UserGuide.pdf
    Hope this helps.

  • Switching between OS X and Win7 on MacBook Pro

    Is there an app or some process to easily switch between OS X and Win7 on my MacBook Pro? Thanks.

    If Windows is installed in BootCamp then reboot from one OS to the other.
    If it is install to be used by an emulator that start your Windows applications.
    Allan

  • Can anybody explain me difference between test cases and test data

    Hi All,
    Can anybody explain me difference between test cases and test data.
    Testing procedure for FS.
    Thanks & Regards,
    Smitha

    Hi,
    Test case is a procedure how to do the testing of particular functionality and it consists the data that to be given for testing a particular requirement of the given Functional Spec and it also consists the result whether the desired functionality is fullfilling or not.
    Regards
    Pratap

  • Does the 1 year warranty cover a crack between the front and back casing?

    Does the 1 year warranty cover a crack between the front and back casing?

    No, I don't think so if it's through mishandling.

Maybe you are looking for

  • Extreme (b/g/n) can't connect to the internet

    my iMac has no problem seeing my airport extreme (b/g/n), but I can't connect to the internet. I have tried soft / hard reset & factory reset as well, none of them worked. The extreme just keep flashing its amber light. On my iMac, I have full signal

  • The new 5.0.1 version does not open new pages in new tabs when the feature is checked in options\tabs. How do I fix it?

    When I check the feature in Tools\Options\Tab "Open new windows in a new tab instead" it does not do so. New windows are launched in the existing tab.

  • What photo editing software is everyone using and why?

    I am trying to find a good photo editing software to use and before spending any money on it would like to hear everyones opinion on what they use and why? Originally I intended on purchasing aperture ... but I am under the impression that aperture i

  • Displayed metadata for camera raw photos

    My work flow has me making adjustments to the manufactures NEF file and then saving as a DNG at a later time. This seems about the fastest way to do it and allows me to do my DNG conversions when I am sleeping, eating dinner etc as they do take a bit

  • IMovie 6.0.2

    All of a sudden I cannot see the image to set a different setting. Show photos, shows me the settings box but my preview screen is black. How can I see the photo and the settings at the same time. The photo is clicked first and then "show photos" cha