06-22-2006 08:24 AM - edited 06-22-2006 08:24 AM
becktho,
state machine or sequential code has nothing to do with object orientated programming. how can you tell what I am wiring together. It is about defing objects and creating methods with private and public functions and data memders, data encapulations. The benefits of oop are well documentated. This is off topic anyway.
Message Edited by terrill on 06-22-2006 10:26 AM
06-22-2006 08:26 AM
06-22-2006 08:28 AM
06-22-2006 08:33 AM - edited 06-22-2006 08:33 AM
Message Edited by terrill on 06-22-2006 10:34 AM
06-22-2006 08:35 AM
06-22-2006 08:39 AM
Thanks shane, sorry for the statement about the war I do not want to offend anyone as it is my opinion. But the fact is we start wars and heated discussions just because we want to convince everyone that the way we do things is the only way to do it and that any other way will never be as good as the way that I do it. This is a global community and we are all going to have many different opinions about the way things should be done.
come on lets give it a rest.
06-22-2006 08:39 AM
Thanks shoneill for the examples.
This thread is indeed interesting, and yes, it answered a curiosity question. It is obviously being used for Software Re-use and maintainability. I need to read up more on the topic and who knows... probably join the new camp.
My guess is that once you've adopted an approach, you use it (practically) everywhere, which may explain why it seems to be over-abused.
As Titou mentionned, this is definitely an interesting thread..
JLV
06-22-2006 08:46 AM - edited 06-22-2006 08:46 AM
Message Edited by shoneill on 06-22-2006 03:48 PM
Message Edited by shoneill on 06-22-2006 03:51 PM
06-22-2006 08:53 AM
06-22-2006 09:03 AM - edited 06-22-2006 09:03 AM
I know I am coming in late here....
I agree with the original topic that being "do not use QSM's for everything."
I will use all of the above methods depending on the application.
These are some of the factors I take into concideration when deciding which method.
1) Complexity of function - If I can not quickly envision the code's structure (due to too many "If-Then-Else" conditions) I will use the State Diagram Editor (SDE) to get my thought straight. If when I am done I can see that the code can be structured using data flow and a few nested cases, then I MAY re-code if performance is an issue. Other-wise I will leave it as a SD because it alot easier to maintain code that is a SD because the SD gives me a"bird's eye view" of the code. See image.
2) "While" - I have come to believe that an application who's operational description use the word "while", a QSM MAY be an effective design pattern. Examples of "while" requirements could be "While the data is being collected and displayed, we also want to log."
THat is all I have time for at the moment.
Ben
PS: Did I mention that I love the SDE? ![]()
See "Ode to a State Diagram" found in the LabVIEW Champion's BLOG at this URL
http://forums.lavag.org/blog/champions/index.php?
Message Edited by Ben on 06-22-2006 09:04 AM