06-28-2006 10:03 AM
06-28-2006 10:27 AM
If you need a program to execute the keystrokes for saving as previous, take a look at this program. You could have it create a list of all vi's in a directory and then open them and do the keystrokes. or you could give it a text file with a list of all vi's
06-28-2006 11:40 AM
I did do a backup, but I also did a lot of valuable development in LV8 since the backup.
I didn't want to just try LV8 for 1 day & see how it went. I gave it a good couple weeks of development before throwing in the towel.
06-28-2006 12:38 PM
06-28-2006 01:53 PM
How do I handle the fact that the "Save for Previous" actually creates a folder of the VI & all its subVIs?
That means that, at the very least, in order not to create many copies of the same VI, I have to programmatically delete all the subVIs.
Programmatically I can get the "top-level VIs" for the entire library.
But since more than one top-level VI might reference a subVI (very likely -- unless I have zero code re-use!), then there will be many instances of the subVI created -- bad!
And there's no way by key-clicks & mouse-moves I can delete all the subVIs but not the LV7 VI that I intended to save!
06-29-2006 03:16 AM
hi there
Mattl, you have to create a Master VI containing ALL top level VIs of your project (including the dynamic ones). when you save this Master VI for previous NO copies of multiple referenced Sub-VIs will be created. And each VI will only be touched ONCE during the concersion process. The "save for previous" of this Master VI will create a directory structure reflecting your current 8.0 structure with no extra copies or directories.
if you use the method of recursivly scanning the directories and llbs to get all Top-Level VIs as described in my previous post you even will convert these VIs that are NOT called by your code (dead code), in contradiction to the conversion of each Top-Level VI manually one by one.
06-29-2006 03:43 AM - edited 06-29-2006 03:43 AM
Message Edited by daveTW on 06-29-2006 10:46 AM
06-30-2006 08:41 PM
07-01-2006 01:10 AM
07-05-2006 05:45 PM
Well, here's a program that I came up with instead, based (very) loosely on yours. It also handles LLBs, which were tricky cuz you gotta use List Directory on them to break them out to VIs which then can be reverted. And other stuff, such as NOT converting VIs that are pre-8.
The program itself really isn't THAT user-friendly, but maybe somebody else could make use of it.