I started a large project recently and decided to make use of Shared Variables. :I need some network communication between LV apps, so that is the main reason, but I decided to put them to the test by also using single-process Shared Variables instead of globals. (Yeah, yeah, globals are evil. blah blah blah. I'm not really interested in dogma here. Suffice it to say that, IMHO, there are still a few times and places where globals are appropriate and useful.)
My project is fairly modular, and the main control program launches numerous other top-level programs. The problem is that whenever one of these top--level programs (or the main program) is launched, the Shared Variable deployment window pops up and does its several second initialization.; If this happened just once, when the top level program launched, it would probably be acceptable. But having each dynamic VI go through this gets annoying.
I'm using 8.2.1. I haven't tried 8.5 much yet, but at least in 8.0 and 8.2, you can't search for Shared Variables. That is also annoying and can lead to maintenance issues.
So now I am considering replacing all the single-process Shared Variables with good-ole Globals. A couple of the VIs in the system will still use networked Shared Variables, so they will still cause the deployment window to pop up, but it will be much less frequent. And I'll be able to search for the globals and make sure I'm using them responsibly.
Does anyone have any other ideas on how to minimize the deployment window? Or ideas on development patterns using Shared Variables? Preferences for Shared Variables vs Globals?
Thanks,
Dave
-------------------------------------------------------------
David Thomson Original Code Consulting
www.originalcode.com
National Instruments Alliance Program Member
Certified LabVIEW Architect
Certified Embedded Systems Developer
-------------------------------------------------------------
There are 10 kinds of people: those who understand binary, and those who don't.