durnek60 Posted September 25, 2010 Report Share Posted September 25, 2010 Hi all! I am wondering about the following.. I have a very comlex OO structure and the top level object contains all the current classe ie. the backbone of the application. There are many events that can modify the current state of the program. ( set / update attributes for classes, save or load). These events are generated in very special parts of the code(even different VIs), so I have to place this top level object into many VIs in order to keep the dataflow but in this case the wiring is not acceptable. I have three alternatives: Global Variable : ~ Contains the top level Object, and Set the Global var. to Read / Write - the dataflow is given FUnction Global: at the init state of my program, The functin global initializes the top level object , and every time when I wanna use this object I have to create a new state for the function global (or use Get - Set states) Singleton DP. : I have never used this before, and I dont know how to combine the by ref. top level Object with the contained by value object. I dont know how to go on! I would be so greatfull if u could help me to choose right, or suggest me another soultion for my problem! Thank you very much. (i think the real problem is, this is the first time when I am working such a great application. There is no problem for me to design the specific classes, write all the methods. but when i am at the point of compile the whole program, I dont know how to compose all classes for one.) It is so sad that very difficult to find any quotes about application desing. ) Quote Link to comment
Aristos Queue Posted September 26, 2010 Report Share Posted September 26, 2010 It is so sad that very difficult to find any quotes about application desing. LVOOP has only been out for 4 years. That might sound like a long time in computer terms, but in terms of writing high level programming design texts, it's very short. Having said that, this December, a revised LVOOP customer education course from NI will be available, which does include lessons on design. In the short term, there are several texts on designing various subsystems you can find by going to ni.com and searching in the search bar for "LVOOP FAQ" and scrolling to the bottom of the FAQ document -- it includes links to a few design papers. There's also good stuff for OO design in the 2010 NI Week presentations (instructions for accessing those are included here). 1 Quote Link to comment
durnek60 Posted September 26, 2010 Author Report Share Posted September 26, 2010 LVOOP has only been out for 4 years. That might sound like a long time in computer terms, but in terms of writing high level programming design texts, it's very short. Having said that, this December, a revised LVOOP customer education course from NI will be available, which does include lessons on design. In the short term, there are several texts on designing various subsystems you can find by going to ni.com and searching in the search bar for "LVOOP FAQ" and scrolling to the bottom of the FAQ document -- it includes links to a few design papers. There's also good stuff for OO design in the 2010 NI Week presentations (instructions for accessing those are included here). Thank you for your reply! I sent a join request to access to the private group! I think this will be very useful. BTW, what do you think about my other questioln? what and why do you choose that? Quote Link to comment
Aristos Queue Posted September 27, 2010 Report Share Posted September 27, 2010 Thank you for your reply! I sent a join request to access to the private group! I think this will be very useful. BTW, what do you think about my other questioln? what and why do you choose that? In general, go with #2 or #3, but each of those has enough advantages/disadvantages that you'll have to look at the behavior of your specific program. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.