How do you create array of enums for transitions in a state machine?

Hello,
I am trying to build a state machine, but, I am struggling with understanding the methods for determining which state to transition to next.  In other words, I have several states, but, I don't want to go in any particular sequence.  If I have states numbered 1 through 10, I want to be able to go 1-4-2-5-6-2-6-1-10 etc. in no particular order. I want the transition to the next state  (and actions) to be determined by the streaming data, which can be random and require access to any of my 10 states at any time and in any sequence.
I saw this picture on the "Application Design Patterns: State Machines" white paper, but, it leaves out some important details.  How does one create the structure in BLUE shown in 3C?  When I try to create this array of enums, all of them are the same. I am not able to make a list of different enum values.  In other words, when I type in "2", then, all the values in the array display as "2."
There is a nice, simple video example of a state machine for dispensing soda for $0.15, however, this state machine moves in a single sequence, from 5 cents, to 10 cents to dispense; it does NOT illustrate how to select a state "out of order."  I need to understand how a state machine can move from "5 cents" state to dispense directly, with the addition of 10 cents to the "5 cents" state.
Can anyone suggest a really good tutorial on how to make the selector work in a state machine?  I have been reading some of the available material on ni.com, but, I can't find a good detailed explanation of how to do it.  I remain confused. 
Or, can you just explain how they created the BLUE array in the attached picture?  Maybe I can figure it out from there.
Thanks,
Dave
Solved!
Go to Solution.
Attachments:
next state.jpg ‏75 KB

Hi Kathryn,
Yes, this is EXACTLY what I want to accomplish...
So it would basically run:
State 1
Read input
Determine next state (say 3)
State 3
Read input
Determine next state
State
Read input
Determine next state
And so on...
But, I am quite new to programming Labview state machines, and can't figure out how to even start when the sequence of states is random instead of fixed!!! I can do 1,2,3,4, like the vending machine VI example, but,  not 1,3,2,2,2,5,2,1 etc. based on external input.  Is there some simple example case I can study?  I can't believe I am inventing this for the first time.
"select the state to run" 
But, HOW do I do this???????   This is exactly the question I am asking...how is this done?  Please see the attached 3-state system....how do I hook this up????  I am totally lost here...can you help me understand how to wire this thing??  In this simpe RED/GREEN/BLUE case, my input is just the number a user would input on the front panel....  Apparently, there are two files necessary... a vi and .ctl???  What  is .ctl?
Thanks,
Dave
Attachments:
forum nov 12 red green blue.vi ‏7 KB
forum nov 12 red green blue.ctl ‏5 KB

Similar Messages

  • How do you create an installer/bundle for PPro with extension, a plugin (export-controller) and some

    Hi
    As my topic says
    How do you create an installer/bundle for PPro with extension, a plugin (export-controller) and some custom presets?
    Assume you have Flash Builder 4.5, CS Extension builder 2.0, Xcode 4.5.1 running under MacOS 10.8.

    I understand why you need updated running headers in your book. To a sighted reader these serve as a guide to where you are and help you find things quickly.  In addition, if you are exporting your data to XML or HTML from the tagged PDF it would also be important to have these in the proper location. 
    But for accessibility purposes, it doesn't have to be there because the screen reader reads everything in linear order, line by line.  No one is looking at the page.  A user listening to the screen reader read the page is going to hear this heading, just before the actual word itself. So they will hear the first word on the page twice.  It's not the end of the world if it's there, but such headings are not necessary for accessibility unless they are not repetitive and contain information that is not otherwise available.
    So I would say, fine if you need them or want them there, it's just one word. 
    I think you should try exporting your book to PDF (or even just a chapter of the book) and look at the tags panel in Acrobat to see if you are getting the result you want.  I can't tell you exactly what you should do to get those results, you are using a plug-in I don't have. 
    I can tell you I didn't have to add the headers to any article at all, they just automatically export if the other articles in the file are added and you don't select the header style option "not for export as XML."
    You may not experience the same results with your plug-in, but I think it will probably work the same way. 
    Give it a try and best of luck.

  • How do you create a new account for a family member?

    My daughter and I both have Ipods, and want to setup SEPARATE accounts. Itunes 7 worked great, but now when we 'upgraded' to 8, it MERGED all our files. So I thought I had a separate account, but it turns out when I load a new song, it goes into HER Itunes files. She deleted all my info, and I REALLY want a separate account (that sticks).
    My songs are still in my directory under "Mikes Itunes", but when I reloaded them into what I thought was a fresh entry, it turns out it went into my daughter's Itunes file too! What is up with Itunes 8? and how can you create a TRUE separate account so I have control over MY songs!?

    First, let's make it easier to swap between accounts. In the Accounts pane of System Preferences click on the Login Options (after unlocking the pane). Enable fast user switching. This will put a new menu in the top right of the screen. You can then swap to the other account without having to log out of the current one.
    Log into the original account. Select the folder you want access from the other account and choose Get Info from the file menu. There is a section called Sharing & Permissions. You will need to click on the padlock to make changes. Click on the + to add permissions for the other user account by selecting the user account from list that appears. Set the permission for that account to read only. Once you have it listed then choose the "Apply to enclosed items" from the gear menu below the list. This should give you access from the other account to that folder and any folders contained in it.
    For iTunes you will want to do this to the Music folder, giving you access to the files below. From within iTunes you can select Add to Library from the file menu, and then select the music from the other account to that account's iTunes library. Once you have set up the new library whoever's library is the original can clean up the library to remove any music they don't want (now that it's in the new account).

  • How do you create a search box for visitors to search keywords on your website?

    I know I did this a while back using dreamweaver and cannot figure out how I did it.  I feel like I copy and pasted some html stuff into my site and it created itself.  Can you do this or do you need to download something? If I need to download, any recomendations? Also, if html, anyone know where I can find it?  OR if this is all wrong how do you do this? Thanks so much!

    http://www.google.com/sitesearch/

  • How do you create an xsd file for an xml schema in BI Publisher?

    Helllo.
    I hope this is a really daft question for somebody..
    How I create an xsd file to be used as an xml schema to attach to a Data Definition that Ive created? I've obv. got the xml and rtf files ready and attached. I've looked through the relevant docs (XML Publisher Report Designer's Guide.pdf & XML Publisher Administration and Developer's Guide.pdf) but can't find where..
    Once this has been done then I can run the template via ORACLE Financials for the reports I've converted.
    many thanks..
    Steven

    I don't think you need to have an XSD it's an optional field. If you really want to create one use this site: http://www.hitsw.com/xml_utilites/
    I believe I answered your question, don't forget to give me the points.
    Ike Wiggins
    http://bipublisher.blogspot.com

  • How do you create two apple ids for one email address.

    I bought two i pads for my kids. Since we have just one email address, everytime I try to create a new apple id it says I already have one. They need separate ids so their friends can facetime with one and not the other. Can't figure out how to create two apple ids with one email address.

    Donnathemom wrote:
    Well any ideas on how to solve this problem? When my daughter does facetime with someone it says she's Wyatt. She's not real happy about that. 
    Get her an email address, even if she never uses it.  They're free and available almost everywhere.  The only requirement is that the address be a valid one.
    Edit...
    You can even use an "alias" of yours.  That's a fake address that actually sends everything to you.  Check with your current email supplier.

  • How do you create multiple execution windows for a custom opterator interface

    I am starting to create a custom operator interface for TestStand 3.5 using Labview 8.0.  This is my first exposure to custom operator interfaces (and ActiveX).  The example operator interfaces have only one execution window that changes based on the executions combo box.  My sequence is going to be run with the parallel sequence model (2 test sockets).  So I want my custom operator interface to have 2 execution windows, one for each test socket.  How can I do this?  I created a second execution window but it just mirrors the first execution window. 

    Hi, All:
     With the similar approach, I create a multiple window user interface with CVI. Although it can run, the Execution view doesn't display
    anything while execution. In my user interface, there is an applicaiton manager resident in Parent form, and every child forms has
    itsown Exection view and Manager.
     Referred to the C# sample, in the function rivate void DisplayExecution(Execution execution)
       if (executionForm == null) // execution is not in a form, make a new form
        executionForm = new ExecutionForm(this, this.axApplicationMgr, execution);
        this.mChildFormsKeyedByViewMgr.Add(executionForm.GetViewMgr().GetOcx(), executionForm);
        SetNewChildFormLocation(executionForm);
     I guess the execution form "hook" the exectuion view manager via Add(), so the exectuion view can be updated properly.
    And according to reference manual of teststand, it mentions that "The application sets the ExecutionViewMgr.UserData property to
    attach a handle, reference, or pointer that represents the window." But when I try to utilize this method, I got 2 problems:
    1. How to get a window handle of a CVI panel? As execution view are resident in child panels, so I may need the window handle of
     individual child panels.
    2. Even the window hanlde is gotten, how can I convert it to a VARIANT Type? According to the function panle of
    TSUI_ExecutionViewMgrSetUserData (, NULL, ), the last parameter is a "VARIANT".
    Any comments or instructions for my assumption?
    Thank you for your help.

  • How do you create a separate iCloud for each phone in the family?

    We have 3 people in our family with iPhones, plus 1 iPad2.  How can we give each of us a separate apple ID so that we can each have our own iCloud storage?  The 55 GB is not enough for all of us.  Deleting the accounts to create new ones is not an option because one of our phones is not backed up on iCloud AT ALL (could never back it up because the 55 is not enough for the 3 of us).

    For each phone, go to http://appleid.apple.com and create a new Apple ID.
    On the phone, sign out in Settings>iCloud by clicking the 'Delete account' button. You are going to have to do this or you cannot proceed.
    Sign in with the new Apple ID. Create a new @icloud.com address. In the Settings>iCloud page, purchase such extra storage as you need. Do a new backup.
    Leave the phone which hasn't been backed up until you've done this with the others. Delete their backups from the original account. Back this phone up to the original account. Then follow the procedure above.
    If you want these phones still to have access to the email, calendars, contacts etc. of the original account you can sign into it in Settings>Mail, Contacts & Calendars.

  • How do you create a photo stream for a "group" in your contacts?

    Each time I create a photostream, I have to type the beginning of each person's name to get them on the list of shared viewers. It's usually the same group. Is there any way for photostream icloud to see my contacts so I can just type the name of a group?

    At the present time, you have to add subscribers individually.

  • How do you create a max/min for a series of input in labview 2010

    with labview is there a way to get max/min values from a series of inputs? I want it to graph the data and keep track of what the highest and lowest values were. I am using Labview 2010

    While you don't really define what you mean by a "Series of inputs", maybe Array Min&Max PrByPt might be of interest.
    (For better help, attach a simplified VI that shows typical data.)
    LabVIEW Champion . Do more with less code and in less time .

  • How can you create an online account for a family plan of 3?

    Hey there,
    I recently switched from T-mobile to Verizon and got a family plan(10 GB More Everything Plan with Verizon Edge) for my parents and myself at the store. Unlike T-mobile where you can see activities of all 3 phones, the Verizon online account is only for 1 phone (or I am not doing it right ?!!! ).
    And by looking at each individual account, it doesn't look like I have a family plan sharing 10 GB data ($80 montly account access fee + 3*$15/line monthly access fee=$125), but instead each phone has 10 GB ( $80 montly account access fee + $15/line monthly access fee=$95, which totals to $95*3=$285 for the family).
    Is there a way I can check to see if I have a family plan? Any help will be greatly appreciated.
    Thanks,
    Christy

    If all 3 phones are on the same More Everything plan, the account owner only would be able to see the activity of all 3 lines. The other 2 lines would only be able to see the activity from their own line. Have you tried logging into the MyVerizon account from each line? Possibly the line you have been logging in with is not the account owner line.
    Either calling CS as indicated above or stopping by a Verizon store would be able to remedy your situation if you are on separate accounts instead of just one.

  • HT2534 how do you create an AppleID for a student who does not meet the minimum age requirements?

    How do you create an Apple ID for a student who does not meet the "minimum age" requirements?

    A parent/guardian has to create it and supervise its use.

  • How would you create a read/display only applicaiton montior role for SRM

    Hello,
    I was hoping to get some insight on how to create a display/read only SRM Application monitor role.  This role would be used by our Service Desk to perform basic trouble shooting before escalating.  Currently in our system it is tied into a tab named SAP Administration and has the capability of doing more than read.  How do you create a read version of this to only display the application monitoring in read mode? We currently have an SRP role that has the followiing auths below.  Would a EPP portal role need to be created and if so how>  Thank you for any assistance.
       Manually   BBP Component                                                BBP
              Manually   SRM: General Access Authorizations in EBP                    BBP_FUNCT
               Manually   SRM: General Access Authorizations in EBP                    T-SD59003000
                 Function in SRM (for Authoriza MON_ALERTS                                                                  BBP_FUNCT
    - Todd

    Hello,
    I was hoping to get some insight on how to create a display/read only SRM Application monitor role.  This role would be used by our Service Desk to perform basic trouble shooting before escalating.  Currently in our system it is tied into a tab named SAP Administration and has the capability of doing more than read.  How do you create a read version of this to only display the application monitoring in read mode? We currently have an SRP role that has the followiing auths below.  Would a EPP portal role need to be created and if so how>  Thank you for any assistance.
       Manually   BBP Component                                                BBP
              Manually   SRM: General Access Authorizations in EBP                    BBP_FUNCT
               Manually   SRM: General Access Authorizations in EBP                    T-SD59003000
                 Function in SRM (for Authoriza MON_ALERTS                                                                  BBP_FUNCT
    - Todd

  • HT4191 iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.

    iPhone Local Storage "My iPhone" - How do you create this folder for use by the Notes app on a iPhone or iPad?  If I want to keep some notes only on my device and not in a cloud environment associated with an e-mail account.  I've seen reference to the  "My iPhone" local storage put no mention on how you create this folder or access this folder within the Notes app.  I realize storing information in a local storage like this provides no syncing between other iDevices but that is exactly what I'm looking for.  I'm running iOS7.0.4 on a iPhone 5S, and a iPad Air.  Any help would be greatly appreciated.

    If you go to Settings > Notes > Default Account you will see "On My iPhone" as the default account and the only choice if you have not enabled syncing Notes in Settings >iCloud or Settings > Mail, Contacts, Calendars. If you have enabled syncing you can still select "On My iPhone" as the default account. When you are in the Notes app you won't see any accounts listed if you have not enabled syncing because they are all in the On My iPhone account and that is the only place possible. It is not a folder that you create.

  • How do you change/adjust border width for all the cells in a table created in Pages?

    How do you change/adjust border width for all the cells in a table created in Pages?
    Note- I am trying to figure out how to create and format tables in the latest version of the Pages app on an iPad air (iOS 8.1.1.1) . Creating tables, adding or removing borders for individual/all cells in a table seems straight forward. However the default border style seems to be a heavy black line. How do I change this?
    I found the option add or remove borders for all/ individual cells in a table, however I can't find any option within style/format dialogue screens for changing colour or line thickness for table cells. Likewise I can't find any clear instructions on how to do this in apple help pages or support website
    Btw- I'm assuming  it is possible to customize/adjust the colour & thickness of selected lines in a table created in this app (it's fairly easy to do this word processing apps like MS Word) please let me  know if this is not actually possible in Pages

    They know perfectly well what they took out of Pages '09.
    Well over 90 features.
    Do you think you posting feedback is going to remind them of what they did?
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Pages '09 should still be in your Applications/iWork folder.
    Archive/trash Pages 5 and rate/review it in the App Store, then get back to work.
    Peter

Maybe you are looking for

  • Are some apps just not compatible with iTunes 10.5/iOS 5.0?

    Seems some apps on my iPod, conflict with iTunes 10.5. I started having the Store issue, which ALWAYS showed and worked, never had trouble accessing, never got a blank page... that started happening. (I think live search when typing is a bad idea) I

  • Check Double Invoice

    Hi, I would like to ask if there is a possible way to check for duplicate invoices for customers same as in the vendors. thanks Caglar

  • How to change Storage Repository on Oracle VM 2.2.2

    Dear All, Please help to provide me the procedure how to change storage repository from old one to new one. I have 2 VM Servers connected to Sun Storage 6140 (SAN) on the same Server Pool and enabled HA both VM Servers and Virtual Machines. [[email protected]

  • Change GTS business partner type from person to organization.

    Hi Gurus, My problem is , I have created business partner in GTS under "Person" but I need to change the role to be a Legal unit under organization. How do I achieve it. I created business partner LUUS-4280 under "person" with role Business partner g

  • Search Engine Optimization (SEO) and Lightroom

    I have a client using Lightroom to post photo galleries and he is concerned about Search Engine Optimization. I'm not a Lightroom user but need to know if there is a way to set page titles and photo alt tags from Lightroom rather than after the fact.