07-26-2010 09:22 PM
Hi all,
I'm trying to build an application in LV to independantly control and run multiple (up to 20) processes, ie, it should be able to start and stop any of the processes at any given time. What would the best way to code for this? Off the top of my head would be to use a unique notifier to control each of the process, but I'm thinking that the code upkeep may be a handful with this number of notifiers being defined. Are there better ways of doing this?
Appreciate any help and insight on this.Thanks a bunch in advance!
Solved! Go to Solution.
07-26-2010 10:06 PM
07-26-2010 10:16 PM
Hi Jack,
1. It is 20 separate processes, meant to run and controlled (start, stop, etc) independent of each other.
2. Each of them conforms to the same message command structure, only difference being the data supplied to each of the processes.
3. No preference as to string/typedel, which ever method that results in a more managable code is more than welcomed.
4. I would, but LVOOP is a new thing to me, wouldn't mind picking up a new skill if you're willing to share with me on how best to implement it in my situation.
5. All processes are to be controlled from top level, processes are independent and have no relation with one another.
Thanks again for your help! 🙂
07-26-2010 10:40 PM
I forgot some more important questions:
07-26-2010 10:46 PM
Hi Jack,
1. There will be 2-3 people working on it, it's not too large scale of a project.
2. If possible, would want to keep the command source coming from the same source.
3. Looking more into a flexible framework which will allow for scalability to add in new features and also for future upgrades.
Thanks!
07-27-2010 10:53 AM
07-27-2010 12:12 PM
MPE requires Real time module, something that is not readily available for me at the moment... How else should I proceed? Thanks!
07-27-2010 12:20 PM
This Nugget launches multiple threads and smacks them with Occurences. Convert that example over to notifiers and you shouldb good to go.
I have developed apps with more than 100 background threads using variations on the theme shown there.
Ben
08-06-2010 04:40 AM
Thanks Ben! The ideas worked great so far for my case.