I am writing a rather large program and my current goal is to make it all fit on my screen at once. I have been breaking parts of my code into Sub-Vi's: One sub vi sets up all the lab equipment, one gathers the data from the lab equipment, one returns all the equipment to local mode, etc. This is working fine, but these sub-vi's are very specific to this program.
My worry is that in the future, as I write more similar programs that would benefit from these same reductions, that I will have a laundry list of similar sub vi's all created for specific purposes within each program.
So Gather Data 1 communicates with the DMM and the Scope, while Gather Data 2 communicates with the Scope and a Power Meter.
Is there any way to save a sub-vi locally? In other words, package it into the current VI somehow? That way they aren't saved somewhere else creating copies of themselves in another folder that quickly becomes overgrown and impossible to navigate?
I am thinking in terms of how powerpoint, for example, handles pictures and video. You can have it save the locations of these objects BUT you can also package them into the powerpoint. Powerpoint saves the images on the slides themselves and no longer needs to reference them from another location. For powerpoint this isn't necessarily space efficient, but since I have to save the sub-VI somewhere anyway, I would prefer these simplifications to be saved within the current VI for simplicity. Is this possible?
Obviously each VI could be contained in its own folder that contains a Sub-VI folder. But this still requires each sub-vi to be saved as a seperate file, thus creating clutter.
Just a thought that I know would be useful for me, and possibly others.