What is the disadvantage of state machine?

Hi,all,
Anybody can briefly introduce what the disadvantage of state machine? Is it make the LV program large and hard to read?
Thanks.

There are several programming architecture templates that are available in the "New..." dialog. They are under VI from Template -> Frameworks -> Design Patterns. There are six different design patterns. I would say that the State Machine would be a bad choice only when one of the others is better.
That being said, state machines are not so good at parallelism, so if you had a need for that you might want to look at something else. Also, if you cannot see a good way to break your code into actual states, you should consider something else (and once you have don't it with something else, you will probably be able to see the states :-) ). Extremely simple, straight-forward algorithms usually don't need to be state machines unless there is a good probablility that it will grow in complexity as the software matures.
Hope that this helps,
Bob
Bob Young - Test Engineer - Lapsed Certified LabVIEW Developer
DISTek Integration, Inc. - NI Alliance Member
mailto:[email protected]

Similar Messages

  • What are the disadvantages of secondary index

    Hi all,
    Can anybody tell me what are the disadvantages of creating secondary index?
    Also tell me what are the precautions should be taken to create a secondary index?

    Hi Vinil,
    You can search on SCN with the same subject... you will get lots of threads discussed on it...
    Still for your reference...
    secondary indices use disk space, not memory space. They are only in memory when they are used. Disk space is roughly width times number of records, can be GBs.
    Main disadvantages are:
    + indexes are updated when table is changed, i.e. the additional index makes other operations slower. You must check the importance of your application, if it is much lower than the standard usage than you can not create a secondary index.
    + Secondary indices can confuse the database optimzer, especially if you use field which appear also in other indices. DB calculates usefulness of different indices by some assumptions (check other sources for details), if two indices are similar, than the assumptions can lead to wrong decisions. Your new index can be used for other statements, even when it is not optimal there. Result your index causes problems somewhere else!
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7
    ilesh Nandaniya

  • What are the disadvantages of implementing APO- Demand Planning without improvements or cleaning up the MRP. in other words is DP implementation dependant on MRP process. Gurus please advise

    HI All. What are the disadvantages of implementing APO- Demand Planning without improvements or cleaning up the MRP. in other words is DP implementation dependant on MRP process. Gurus please advise

    Hi Amol,
    DP is the demand planning machine, here you estimate your forecast (future sales).
    The MRP is a supply planning machine, here you use estimate the replenishment.
    Both machines in a technical perspective are independent one each other. Now in a business perspective they are not: The problem that you will have if you don´t clean your MRP elements is not a problem in DP itself. I mean, you can have a very success implementation in DP, your forecast accuracy will be very good.. and you will get a very good forecast, but when the MRP run and estimate the replenishment, the effort that you made in DP will not be translated in good results and your planning situation will be still not good.
    Kind Regards,
    Mariano

  • What does an EXEC SQL stmt do in ABAP? What is the disadvantage of using it

    hi,
    What does an EXEC SQL stmt do in ABAP? What is the disadvantage of using it?
    regards.

    sorry, question resolved.

  • What is the disadvantage of refurbished ipad and if i buy one does it include  iOS 5 and iCloud or not

    hallo guys
    anybody can help me
    my  question is what is the disadvantage of refurbished ipad and if i buy one does it include  iOS 5 and iCloud or not
    thanks in advance to answer me
    Best regards

    The warranty on an iPad, even a refurbished one, will still be valid in Egypt. It's only the iPhone that does not have an international warranty. Just make sure you don't buy a Verizon-model iPad, which cannot be serviced anywhere but in the US (and won't work with any other cell carrier either).
    Note that refurbished iPads are available only via the online Apple Store, and they accept only US credit cards and will only ship to US addresses. This may not be a problem for you, but I wanted to make sure you were aware.
    Regards.

  • What is the best solid state drive for 2009 fall MacBook

    what is the best solid state drive to upgrade a 2009 fall Macbook. also is 128 Gb enough?

    I think 128 GB's is too small (SSD's are still too expensive for me).....I do not know what the best SSD is.....here is what I am about to do for my MacBook 4,1 (early 2008).....
    for a hard drive....
    http://eshop.macsales.com/item/Seagate/ST95005620AS/
    and for additional RAM.....
    http://eshop.macsales.com/item/Other World Computing/5300DDR2S6GP/
    ....to get ready for Lion (10.7)...not exactly what you asked

  • What's the disadvantages of using webserver and appserver of different type?

    If I choose webserver:iPlanet6.0 and appserver:WebLogic6.1 on one server, What's the disadvantages?
    Mayby I will use the webserver and appserver of the same company.
    I wish someone give me some advice.

    As Barney-15E says, someone with physical control, can just remove the disk, and put it in an external enclosure, and mount the file system with their computer and access all the files.
    Only encrypted data would be protected. There are data encryption facilities available on the Mac, both included, as well as 3rd party, including 3rd party whole disk encryption.
    But having a password on an account, and engaging the password when the screen saver is active, can keep casual access from happening.
    Also if you allow network access (file sharing, remote login, screen sharing), the password will keep random net users from accessing your system, when for example, you are in a coffee shop, or if someone gets onto your WiFi network, or you give a visitor to your home access to your network, or you allow a guest to use the guest account.

  • What is the different between statement and preparedstatement?

    hi,
    recently i have attended a telephonic interview. they asked me what is the different between statement and preparedstatement? and when u will use them? Hi! can any one say me the original difference??

    sorry dear,
    i am already shortlisted. and monday is my HR round.
    . Every 1 is not like u.
    So you have read the examples and explanations that you found when you googled, and you have read the javadoc and you still don't understand? And you are shortlisted? For what? I hope you won't do server programming.
    I will give you a few hints.
    Escaping of data
    Storing of dates
    Safer
    Faster

  • What are the disadvantages in reuse_alv_fieldcatalog_merge

    hi
    what are the disadvantages in reuse_alv_fieldcatalog_merge.
    by using this can we create any number of field headings? is there no limit? explain in detail?

    1. reuse_alv_fieldcatalog_merge have many lititations such as you can not change the sequences of tha column. Suppose in table the fields are f1,f2,f3,f4 and f5. But in display i want the sequesce say f3,f4,f2,f1,f5. Using the fm reuse_alv_fieldcatalog_merge is not possible. But you can do it by manually process by passing the sequence in col_pos field of the fieldcatalog.
    2. Similarly you can give the column length as you wish by 'outputlen' paramater of fieldcatalog.
    3.  you can give the column heading of your own by seltext_m, seltext_l, seltext_s paramater of fieldcatalog. 
    4. You can make a field hotspot by hotspot parameter of fieldcatalog.
    5. you can emphasize a field by emphasize parameter of fieldcatalog.
    6. You can display the sum of a field by do_sum parameters of fieldcatalog.
    there are many more functionality which you can not get by FM  reuse_alv_fieldcatalog_merge.
    What you can do is that use both the FM to filled the functionality of the fieldcatalog  what you get autometically from the reuse_alv_fieldcatalog_merge and for the rest of the functinality you can add the functionality by manually append the fieldcalatog. It is call semi autometic fieldcatalog built.

  • What is the disadvantage of uninstalling Intel Dynamic Platform and Thermal Framework?

    I have Yoga 13 and after I found that Intel Dynamic Platform and Thermal Framework (DPTF) is throttling my CPU to 800 MHz in non laptop mode, so i uninstalled it, and it works wonder.
    However I see that in my Device Manager, there are two devices that needs driver.
    So what is the disadvantage of uninstalling Intel Dynamic Platform and Thermal Framework? what is the after effect? Is it safe to uninstall it?
    Thanks.

    Sorry, I don't think this will help, but...
    I have been investigating why my Yoga-13 might be freezing up (about once every other day). While looking at errors in the event log, I came across errors that led to the following sites when I googled the error:
    http://en.community.dell.com/support-forums/laptop/f/3518/p/19481625/20262664.aspx
    http://forum.notebookreview.com/dell-xps-studio-xps/650572-new-dell-xps-l521x-ivy-bridge-536.html#po...
    Probably not any help.
    If you do get it installed and you experience your yoga freezing up (no response to any input), please post here.

  • What is the disadvantage of BAPI...?

    what is the disadvantage of using BAPI....?
    Moderator Message: Please read the [Forum ROE|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] before posting
    Edited by: Suhas Saha on Jun 22, 2011 4:57 PM

    what is the disadvantage of using BAPI....?
    Moderator Message: Please read the [Forum ROE|https://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement] before posting
    Edited by: Suhas Saha on Jun 22, 2011 4:57 PM

  • What is the disadvantages of using Serialization?

    HAi all,
    I want to store objects in a file. I am preferred to use serialization. But I want to know what are the disadvantages of using Serialization over other methods (direct file, Keyed File)?
    Can we store as many records using serialization? Is there any limit? Is there any security related issues?
    Pls help me.
    regards,
    namanc

    I don't think there is disadvantage using serialization compare to direct i/o access to file or any storage, except that you need to design your code such as it is serializable (hence, you may want to use transient keyword, or use externalizable, to be able to store/load the object properly).
    Use serialization if possible, it saves you from inventing new+uncompatible mechanism of doing something in java.

  • What are the disadvantages of cloning in oracle apps?

    what are the disadvantages of cloning in oracle apps?

    928714 wrote:
    what are the disadvantages of cloning in oracle apps?This is a non-sense question.
    Please go through old threads before posting questions. Also, if you keep spamming the forum you will be banned and your account will be deleted.
    Thanks,
    Hussein

  • What are the disadvantages and advantages of type coercion??

    What are the disadvantages and advantages of type coercion?
    anyone? thanks.

    What is the relevance of your question about type coercion within the scope of "Advanced [Java] Language Topics"?

  • What are the disadvantages of generic delta extraction

    Hi all,
    what are the disadvantages of generic delta extraction.
    how function module generic extraction works.
    Thanks,
    Madhu.

    hi madhu,
    Pls refer ths,To learn more about Generic Extraction pls read BW350 book.
    Gereric Extraction can be done in 3 ways.
    If you go to transaction RSO2 in R/3 side, provide tech name for data source and click create.
    you will get the 3 options.
    1)From a DB Table
    2)From a DB View
    3)From Functional module/ Infoset Query
    in first option you can directly give a standard or custom build talbe name. in second option you can select the necessary fields from more than one talbe(eiter standard or custom). In third option you will create a function module or Query to extract data. When creating function modules you can use standard function modules as a template e.g. RSAX_BIW_GET_DATA_SIMPLE.
    see weblog : /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    If you want to enable delta for generic extractor you choose the option delta and provide necessary settings.
    Generic extraction is when your extraction is not satisfied by either BC or LIS/LO. It can be using a view / query/table/FM
    Here the changed records can be isentified by :
    1. Based on the date of creation or last change ( Delta based on 0Calday)
    2. Based on the record number ( Numeric Pointer )
    3. Based on time of change ( Timestamp)
    real time examples would be
    1. Master Record creation like customer ID creation
    2. Timesheets in SAP PS
    3. Invoive details / Sales Order Details.
    Pls check this web logs for clear Idea.
    /people/siegfried.szameitat/blog/2005/09/29/generic-extraction-via-function-module
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    Have a look at these threads too.
    Tables
    Transfer Structure
    The steps for creating extractor using Function Module.
    1. Create new Function group (if you have already not done so) in Se80
    2. Copy Function module "RSAX_BIW_GET_DATA_SIMPLE" with suitable name.
    3. Change the code that populate data.
    Following table may give you the guideline for parameters.
    Parameter Description
    I_REQUNR (import) BW provides this request identifier. It is a system-generated identifier in the form REQU_XXXXXX. BW uses this same identifier in all function module calls that relate to a single load.
    I_DSOURCE (import) The name of the generic extractor
    I_MAXSIZE (import) The maximum number of records that BW expects to be in each data packet
    I_INITFLAG (import) A Boolean flag that indicates if this is the initialization (first) call to the function module
    I_READ_ONLY (import) A test flag not needed in most extraction scenarios
    I_T_SELECT (table) This table holds any selections from the BW InfoPackage. The function module should examine these selections and only return data that matches the selections.
    I_T_FIELD (table) This table holds the fields that BW requests
    E_T_DATA (table) The function module fills this table with data records. These records then return to BW as data packets. This table has the same structure as the extract structure defined in the generic DataSource.
    NO_MORE_DATA (exception) The function module raises this exception when no more data is available
    ERROR_PASSED_TO_MESS_HANDLER (exception) The function module raises this exception if an error occurred during the extraction. It alerts BW to check for error logs.
    Change following code to put the selection fields
    Select ranges
    RANGES: L_R_CARRID FOR SFLIGHT-CARRID,
    L_R_CONNID FOR SFLIGHT-CONNID.
    Change following to populate data
    OPEN CURSOR WITH HOLD S_CURSOR FOR
    SELECT (S_S_IF-T_FIELDS) FROM SFLIGHT
    WHERE CARRID IN L_R_CARRID AND
    CONNID IN L_R_CONNID.
    ENDIF. "First data package ?
    Fetch records into interface table.
    named E_T_'Name of extract structure'.
    FETCH NEXT CURSOR S_CURSOR
    APPENDING CORRESPONDING FIELDS
    OF TABLE E_T_DATA
    PACKAGE SIZE S_S_IF-MAXSIZE.
    Some more links:
    Re: functionmodule
    Re: FM for G. extractor
    with hopes
    Raja Singh

Maybe you are looking for

  • How can I export a folder of images using the original file data?

    I have edited my images within the "Develop" mode, but now need to export as jpg's using those settings (note: some are now B&W) and then I also need to process as jpg's using the original settings (color), so my client has all the original color fil

  • How to add image in pdf file

    Hello everybody, I need to place an image in pdf file programmatically on a specific location. Would you please help me what should I use to do this task? Thanks.

  • How to make the Time Line in Vertical ?

    Hi All I have created a Schedule Board using the Schedule Viewer but including the Flexlib in my project . Now the thing is that the Timeline which us to come on the top of the ScheduleViewer I need to get that Time line Vertically in left side of th

  • Alpha channel basics from Canon 7D video

    Maybe I'm missing something basic here, as I am pretty new to messing with alpha layers/channels on VIDEO. I otherwise have a pretty good understanding of alpha when it comes to animations, photos, etc.ffects I am trying to make the black in a video

  • Unablre to download itunes

    Why can't I download itunes to my Windows 7 computer?  I get error stating set exe unable to acces appldnld.com