Create a list or container for states of a statemachine

Hi,
I am working on an application where several different types of devices will be put into a test fixture for board level testing.  Based on the type of board, i need to create an ordered list of all of the tests necessary for the device.  I have a state machine and a unique state for each of the tests and am trying to figure out how to create a list of tests for the specific device.  I want to have a check in each of the states to remove the first item of the list and then take the next value and wire it to the shift register used to go from state to state.  This should allow the state machine to switch to the appropriate state based on the device type and its necessary test sequence.
Should this be implemented with an array?  Is there some easier container to work with for this use case?  I need a container that will allow me to easily add between 5 and 30 state names (based on the needs of the device type) and easily remove them or increment a pointer to the next state in the container.
Thanks,
Gary
Solved!
Go to Solution.

I would avoid using the stacked sequence at all cost. This is not a very good approach to the solution. How are you determining which tests need to be run at which time? I would use a loop to enqueue the desired tests. You can use a separate table (which could be initialized from an external source such as an ini file) which defines all your available tests, hich hardware they apply to and the order they would need to be run. When your specific hardware is selected you can iterate over the table and select the tests that need to be executed. Using the state machine is still a good idea since it allows you to interrupt the exection as well as insert or include other general tasks that may be required during the tests.
Mark Yedinak
"Does anyone know where the love of God goes when the waves turn the minutes to hours?"
Wreck of the Edmund Fitzgerald - Gordon Lightfoot

Similar Messages

  • TS3988 How do I create a List (multiple recipients) for my iCloud email?

    What steps must I take to create a List (multiple recipients) for my iCloud email?  I will be corresponding with a fied group of contacts over the course of a 3-month project.  I need to create a List/Alias that will send the same message to some 18-20 members of this group in a single email exchange.

    lets try this again. A PST file is an outlook file. Thunderbird does not and never has created them.
    https://addons.mozilla.org/en-US/thunderbird/addon/importexporttools/
    Use the add-on to export your mail as EML. This is a fairly standard format that just abut any mail client can read. Except Outlook.

  • Finesse -( UCCX 10) - Create a list of actions for Call ends

    Hi,
    I want to create a list of actions in Finesse, when the call ends for Agent, it dials another Trigger.  How can I do that?
    There are two options, Browser pop-up or HTTP Request. Unfortunately there is not enough document about this on the net.
    Thanks,
    HM

    Hi,
    Actually my requirement is to allow users to select multiple values from an LOV i.e. 7,8,11 (comma seperated). As it is not possible with the standard list of values to select multiple values so I'm using the above document from the Metalink to create an LOV with the same look and feel as the standard LOV of forms. I've tried all the steps but unfortunately no luck.
    Elements in List => put one item with space <--- i'm confused on this one, may be i'm not setting this properly.
    Thanks
    regards
    RM

  • Create a List of receivers for the FM SO_NEW_DOCUMENT_SEND_API1 on screen

    Hello everybody,
    I user the FM SO_NEW_DOCUMENT_SEND_API1 to send mails from SAP. I send the mail to different types of receivers. SAP users, external receivers, ...
    I have define this list of receivers with a distribiution list in the Business Workplace (SO23).
    There you define for each row of the list which type is it.
    Now I have a problem.
    I want to implement a report which sends the output to n receivers. This receivers can be different types. I don't want to use a static distribution list in SO23.
    I will send the mail to n dynamic receivers which should be defined in the selection screen.
    The problem is that I don't know how I can define the receiver type for an receiver.
    This means I need something like the table in SO23 on my screen where I can insert any receivers with the adress and the adapted type.
    Do anybody of knows how I can solve this behaviour?
    Regards and thank you
    Christian
    Edited by: Christian Swonke on Mar 4, 2008 9:58 AM

    Hi
    Try this,
    Add the recipients email address
      CLEAR wa_receivers.
      REFRESH it_receivers.
      wa_receivers-receiver   = c_mailid_1.
      wa_receivers-rec_type   = c_u.
      wa_receivers-com_type   = c_int.
      wa_receivers-notif_del  = c_x.
      wa_receivers-notif_ndel = c_x.
      APPEND wa_receivers TO it_receivers.
    Add the recipients email address
      CLEAR wa_receivers.
      REFRESH it_receivers.
      wa_receivers-receiver   = c_mailid_2.
      wa_receivers-rec_type   = c_u.
      wa_receivers-com_type   = c_int.
      wa_receivers-notif_del  = c_x.
      wa_receivers-notif_ndel = c_x.
      APPEND wa_receivers TO it_receivers.
    Add the recipients email address
      CLEAR wa_receivers.
      REFRESH it_receivers.
      wa_receivers-receiver   = c_mailid_3.
      wa_receivers-rec_type   = c_u.
      wa_receivers-com_type   = c_int.
      wa_receivers-notif_del  = c_x.
      wa_receivers-notif_ndel = c_x.
      APPEND wa_receivers TO it_receivers.
    Add the recipients email address
      CLEAR wa_receivers.
      REFRESH it_receivers.
      wa_receivers-receiver   = c_mailid_4.
      wa_receivers-rec_type   = c_u.
      wa_receivers-com_type   = c_int.
      wa_receivers-notif_del  = c_x.
      wa_receivers-notif_ndel = c_x.
      APPEND wa_receivers TO it_receivers.
    Add the recipients email address
      CLEAR wa_receivers.
      REFRESH it_receivers.
      wa_receivers-receiver   = c_mailid_5.
      wa_receivers-rec_type   = c_u.
      wa_receivers-com_type   = c_int.
      wa_receivers-notif_del  = c_x.
      wa_receivers-notif_ndel = c_x.
      APPEND wa_receivers TO it_receivers.
    Add the recipients email address
      CLEAR wa_receivers.
      REFRESH it_receivers.
      wa_receivers-receiver   = c_mailid_6.
      wa_receivers-rec_type   = c_u.
      wa_receivers-com_type   = c_int.
      wa_receivers-notif_del  = c_x.
      wa_receivers-notif_ndel = c_x.
      APPEND wa_receivers TO it_receivers.
    Perform send_file_as_email_attachment.
    *&      Form  send_file_as_email_attachment
    Form for sending the data in an e-mail as an Excel attachment
    FORM send_file_as_email_attachment.
    Declaration of the local variables used for passing the values to the function module.
      DATA: ld_mtitle              TYPE  sodocchgi1-obj_descr,
            ld_email               TYPE  somlreci1-receiver,
            ld_format              TYPE  so_obj_tp ,
            ld_attdescription      TYPE  so_obj_nam ,
            ld_attfilename         TYPE  so_obj_des ,
            ld_sender_address      TYPE  soextreci1-receiver,
            ld_sender_address_type TYPE  soextreci1-adr_typ.
    Passing the values to the local variables
      ld_mtitle              = text-001.                                   " Mail title.
      ld_format              = c_xls.                                      " Mail format.
      ld_attdescription      = text-012.                                   " Mail attachment description.
      ld_attfilename         = text-011.                                   " Filename.
      ld_sender_address      = ''.                                         " sender address.
      ld_sender_address_type = ''.                                         " sender addres type.
    Fill the document data and get size of attachment
      CLEAR: wa_docdata, wa_attach.
      READ TABLE it_attach INTO wa_attach INDEX v_lines.
      wa_docdata-doc_size   = ( v_lines - c_1 ) * c_255 + STRLEN( wa_attach ).
      wa_docdata-obj_langu  = sy-langu.
      wa_docdata-obj_name   = c_saprpt.
      wa_docdata-obj_descr  = ld_mtitle.
      wa_docdata-sensitivty = c_f.
      CLEAR it_attachment.
      REFRESH it_attachment.
      it_attachment[] = it_attach[].
    Describe the body of the message
      CLEAR wa_packing_list.
      REFRESH it_packing_list.
      wa_packing_list-transf_bin = space.
      wa_packing_list-head_start = c_1.
      wa_packing_list-head_num   = c_0.
      wa_packing_list-body_start = c_1.
      DESCRIBE TABLE it_message LINES wa_packing_list-body_num.
      wa_packing_list-doc_type = c_raw.
      APPEND wa_packing_list TO it_packing_list.
    Create attachment notification
      wa_packing_list-transf_bin = c_x.
      wa_packing_list-head_start = c_1.
      wa_packing_list-head_num   = c_1.
      wa_packing_list-body_start = c_1.
      DESCRIBE TABLE it_attachment LINES wa_packing_list-body_num.
      wa_packing_list-doc_type   =  ld_format.
      wa_packing_list-obj_descr  =  ld_attdescription.
      wa_packing_list-obj_name   =  ld_attfilename.
      wa_packing_list-doc_size   =  wa_packing_list-body_num * c_255.
      APPEND wa_packing_list TO it_packing_list.
      CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
        EXPORTING
          document_data              = wa_docdata
          put_in_outbox              = c_x
          sender_address             = ld_sender_address
          sender_address_type        = ld_sender_address_type
          commit_work                = c_x
        IMPORTING
          sent_to_all                = wa_sent_all
        TABLES
          packing_list               = it_packing_list
          contents_bin               = it_attachment
          contents_txt               = it_message
          receivers                  = it_receivers
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc = 0.
        MESSAGE s019(ztrack_toolmsg) WITH text-002.             " E-mails have been sent to the mentioned people.
       LEAVE LIST-PROCESSING.
      ELSE.
        MESSAGE s019(ztrack_toolmsg) WITH text-003.             " Message sending failed.
       LEAVE LIST-PROCESSING.
      ENDIF.
      REFRESH: it_packing_list,
               it_attachment,
               it_message,
               it_receivers.
    ENDFORM.                    " send_file_as_email_attachment
    Regards
    Rohini.

  • List, which contains the tax code of Cash dicount

    hello,
    does anyone know how I can create a list which contains following information.
    specific posting  period 1-5
    tax code 16% or 19% plus their specific cash discount amount.
    e.g.
    period 1   tax code 16%   116€
    period 1   tax code 19%   119€
    I shoudl have this in a sum or for each document.
    thanks a lot
    stefan
    Message was edited by:
            Stefan Grauer

    Hi Eduardo,
    For STO process, there is a procedure very different to customize that our normal sales.
    Please, follow note 199233 which is given a better explanation about this process.
    You should create a sales order type and the IVA code is determined in j1btax (MM) in the same place where the ivaSD is determined when you are handle with normal sales.
    Below follow an example:
    4.70 and up:                                                                               
    o  table J_1BTAXCODEV (via SM30) or                      
         J1BTAX -> Maintain MM Tax Codes                                                                               
    -  Tax Code = Tax code used in MM for GI, e.g. A1     
         -  TC at GR = Tax code used in MM for GR, e.g. I1     
    I hope those information can help you.
    Regards
    Ruy Castro

  • Create a list

    How do I creat a list of records. I can't use an array because the groupings have different number of records and the records have different data types. For example
    a record consists of a group, section, and a task/test. How do I create a list of these for me to process and report on downstream in my application?

    "[email protected]" wrote in message news:<[email protected]>...
    > How do I creat a list of records. I can't use an array because the
    > groupings have different number of records and the records have
    > different data types. For example
    > a record consists of a group, section, and a task/test. How do I
    > create a list of these for me to process and report on downstream in
    > my application?
    Make an array of clusters. (This is going to get complicated, so I am
    making a list)
    On the FRONT PANEL:
    1.Make a cluster
    2.Make 3 arrays of strings labeled group array, section array, and
    task/test array, then drag these arrays into the cluster listed
    above.(I suggest strings because they can pass text and numbers
    easily)
    3.Make an array, then drag the cluster listed above into this array.
    This will now make n copies of your cluster, each one having it's own
    trio of arrays inside.
    If for intance, a particular case has more than 1 task/test, start
    listing the tasks in task/test array. Then when you finally unbundle
    the arrays, do whatever you need to do until each array is empty.
    Remember that making arrays and clusters eats up large amounts of
    memory quickly, so this will probably slow the computer down.

  • Creating Distribution List in CRM 2007

    Hiya
    Could somebody please help, is there a way to create Distribution List in CRM for a list of emails, contact from the contacts list.
    Thanks in anticipation.
    Regards
    Ranjeet

    Hello Ranjeet
    Transaction code SO23
    X Shared distribution lists
    Name : ZXXXX
    Title : XXXXX Mail Distribution
    Don't enter anything in the Folder field.
    Folder : Click the down arrow
    Next screen :
    Folder Name : ZXXXX
    Folder Title : Mailing address
    Folder Area : Shared
    Click Create Folder
    Next screen :
    Indexing : Tick
    Specify the 'Retention period of a document in this folder (days)'.
    Choose the 'Folder access authorization'.
    Finish, click the Enter button.
    Click the tabstrips 'Distri. list content' to type in your mailing list.
    Save your entries.
    Finally, test it by sending a mail via the distribution list ZXXXX.
    Regards
    Shikha

  • Create a list with associated workflow from a list template.

    Hi,
    I have a calendar list with two workflows and I saved it as list template. Also I have an event receiver which creates a list based in this list template I created, but I noticed that the list is created without workflows. If I create the list
    using the list template using SharePoint it does it with the workflows but my event receiver does not.
    Here is my code:
    if
    (list == null){
    web.AllowUnsafeUpdates =
    true;
    var lstTemp = web.Site.GetCustomListTemplates(web);
    var template = lstTemp[listTemplate];
    var listId = web.Lists.Add(listName,
    string.Empty, template);
    list = web.Lists[listId];
    list.Title = listName;
    list.OnQuickLaunch =
    false;
    list.Update();
    web.AllowUnsafeUpdates =
    false;
    Thanks anyway.

    Hi,
    According to my understanding, you have a list template contains workflow, you can create a new list with this template from UI. However, when create a list with this
    template in Event Receiver, the workflow is missing.
    I tried to reproduce by creating a list template contains an OOTB Approval workflow, then use an Event Receiver to create a list with this template, it turned out
    that the workflow is attached to the newly created list.
    I would suggest that you create another Event Receiver with the code snippet below to see if it is an issue of Event Receiver:
    public override void ItemAdded(SPItemEventProperties properties)
    base.ItemAdded(properties);
    createListWithTemplateWithWF(properties);
    public static void createListWithTemplateWithWF(SPItemEventProperties properties)
    using (SPSite site = properties.Site)
    using (SPWeb web = site.RootWeb)
    SPListTemplateCollection listTemplates = site.GetCustomListTemplates(web);
    SPListTemplate listTemplate = listTemplates["ListTemplate_List001_withWF"];
    web.Lists.Add("List005", "List005", listTemplate);
    Feel free to reply with the test result or if there any questions about this.
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • How to create distribution list in workflow? for  sending mail or work-item

    Hi,
    How to create distribution list in workflow? for  sending mail or work-item to multiple users.
    Regards,
    Surjith

    Hi Surjith,
    A.Working with Distribution Lists Creating a Distribution List.
    1 Businees Workplace->shared folder - create new subfolder name = WF_distributor
    2.Then click on the distribution list in Businees Workplace.
    say create Name = WF_Vliste
    folder Name = WF_distributor
    3.distribution list content tab
    Enter Recipient (SAP User ID)
    B.Wrkflow Builder
    Find out the dialig step in which u want to use distribution list
    Use workflow Rule 30000012 (SWX_READ_DLI).
    Maintain the binding from workflow container to rule container.
    Just pass the name of the distribution list from WF to Rule container.
    Regards
    Sagar S

  • Is there any object in labview that contains a list of data for the user to select (selection one at a time) or add a new data?

    Is there any object in labview that contains a list of data for the user to select (selection one at a time) or add a new data?

    List and table controls -> listbox..is that what you are thinking of?
    The listbox presents the user with a list of options, and you can set it to only accept one selection at a time...Adding new data to the list can not be done directly by the user but if you make e.g. a text control and a button you can programatically insert new objects described in the text box when the button is pressed...(see example).
    If you need more than one column you have the multicolumn listbox. If you want the users to write new entries directly yu can use a table and read selected cells using it's selection start property to read what cell has been selected.
    MTO
    Attachments:
    Listbox_example.vi ‏34 KB

  • Since I upgraded to iTunes 11.01 the "Smart" playlists feature no longer works.  I can CREATE the list but, the songs that I have played don't accumulate in the list.  I haven't changed the steps that worked for me previous to the upgrade.  I have no idea

    Since I upgraded to iTunes 11.01 the "Smart" playlists feature no longer works.
    I can CREATE the list but, the songs that I have played don't accumulate in the list.
    I haven't changed the steps that worked for me previous to the upgrade.
    I have no idea how to fix this and can't find mention of anyone else having a similar problem.
    Any suggestions?

    Click on a station and drag to the left. The playlists sidebar will open up. Drop on the playlist you want to add to.
    tt2

  • A report for MM where basic list will contain the material no and material

    how to develop a report for MM where basic list will contain the material no and material description for the range of material no chosen by user. ...plz help me...how to do this step by step..

    Hi Raja,
    Firstly declare a select-option for material number.
    write a select query specifying the required field and specify a where clause
    as
    WHERE MATNR IN S_MATNR.
    Obviously you will select the records into internal table and so loop that internal table and display the records...
    The records will be displayed on the basic list.
    Hope this will solve your problem.
    Regards,
    Narin Nandivada

  • Report for the List of Vendor for which no Purchase order has been created

    Hi ALL
    Please let me know if there is any Report for the List of Vendor for which no Purchase order has been created
    regards,

    Hi Prateksha Vaid ,
    Go to transaction S_ALR_87012093
    Select accounts with no purchases checkbox and execute
    Diwakar
    reward if useful

  • I have created a form that contains fields with default text for a user to update/personalize.  Is there a way to style the text so I can quickly identify changes to default text in a field?

    I have created a form that contains fields with default text for a user to update/personalize.  Is there a way to style the text so I can quickly identify changes to default text in a field?

    George - Thanks you so much!  Actually, i'd love for the text color to be red font color.  Could you send me the script for that? And I assume I just copy and paste the script into the field properties (see screenshot)?
    thanks again!
    Seth

  • I recently start using Firefox panorama. If I create a tab group that contains, for example, my favorite stack exchange websites, can I save ("bookmark") this tab group for easy access if I start a new session?

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [/questions/813855]</blockquote><br>
    I recently start using Firefox panorama. If I create a tab group that contains, for example, my favorite stack exchange websites, can I save ("bookmark") this tab group for easy access if I start a new session?

    You can bookmark all those tabs and place them in a folder.
    * "Bookmark This Page" and "Bookmark All Tabs" no longer show in the Bookmarks menu unless you open the Bookmarks menu via the keyboard (Alt + B).
    * "Bookmark All Tabs" can be accessed via the right-click context menu of a tab on the tab bar.

Maybe you are looking for

  • Video - new selection: garbled

    I've recently put a lot of podcasts on my ipod. Every once in a while when I choose a new podcast to watch, before it selects the video to watch, the ipod will grab the first frame and 'swipe' it across the screen before it refreshes it correctly. To

  • Printing from Mac to HP Laserjet 5100 dtn without internet

    Hello I have a Mac Book Pro using OS X 10.5.8 and a HP Laserjet 5100 dtn. In my room there is no Internet. Is there any possibility to send files directly to my printer only by using a ethernet cable? How can I print? Thank you for your help. Christi

  • Dashboard having same query with different selection screen values

    Hi, I want to create a dashboard by including different versions (different selection screen values, like yesterday, last week, last month) of same query. Is it possible to achieve it by without creating separate queries? We are in BI 7. Thanks in ad

  • Problem after updating to ios 6.1

    Hi, I updated my iPhone 4 to ios 6.1 and lost all my contacts, text messages and most importantly my photos. I did the backup just before upgrading and now when I restore it back, it turns out to be like a new phone.How to get back photos and text me

  • Installation of RAC 10g R2

    I need to setup Virtual IP in both the sever. I put two IP in each server as public in LAN card. But it has a problem in virtual IP. Could u pls tell how to setup Virtual IP.