LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

reconstruct vi tree

Hi,

Got a panel consisting of linked vi's from my company, but I'm working remotely. They constructed this program in their intranet and managed to pull vi's from other directories and folder locations on their intranet, so the file locations for individual functions are scattered about. To make matters worse when I get the program to run here it has many of their subfolders in many other folders. Its a nightmare.

 

What I need is a labview file tree maker so I can pull in everything (without opening labview itself, more below) and start to sort out the mess and have it all located in one folder.

 

Labview crashes since the file names are too long, well, not the Vi names themselves, but with all the folders and such, it quickly gets too long for Labview to handle. 

 

I had it working on my laptop, if I could save that working program it in a single directory that would be great, but I can't seem to make that work, it still seems to keep things scattered about. Any help would be great. 

 

Thanks in Advance!

0 Kudos
Message 1 of 6
(2,759 Views)

When you have the VI loaded into some Project, you can create a build specification, make this a Source Distribution, that will allow you store all the VIs in one folder (or several.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 2 of 6
(2,743 Views)

Hi

 My only options are save, save as,save with options (save choices: changed vi's, development distribution, application distribution, custom save, save for previous, template). Then the choices are save to current locations, new location single prompt, single prompt preserve  hierachy, to new location(s). I'm using 6.1.

Too many choices, its probably how they got in this trouble in the first place.

Can you spell it out for me?

Thanks for your help,

Bryan

0 Kudos
Message 3 of 6
(2,723 Views)

I would pick either of those two:

development distribution
application distribution

 

It's been a while since I had 6.1 (and don't have it installed currently). But I tink those two can meet your requirements.

 

Ton

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 4 of 6
(2,705 Views)

Hi

Unfortunately when I save it to application, it doesn't preserve the hierachy. When I click on preserve it, it crashes. Distribution saves a folder with nothing in it.

Thanks in advance! 

0 Kudos
Message 5 of 6
(2,693 Views)

Once you you have your tree fixed do a "Save with Options >>> Single Prompt >>> Preserve hiarchy.

 

But getting the tree fixed drives me nuts!

 

You have to exploit the rule that LV will open a single VI by any name at any one time (please note this is LV 6).

 

So I start by open the Hiarchy and show full path in label.

 

Starting at the bottm makes sure everything is loaded from the right place. As soon as you find one loaded from the wrong place STOP and fix it.

 

How to Fix:

 

Close all VIs

 

open the VI that FROM the correct place THEN open your top level VI again. THe VIs in your code that were pointing to the sub-VI in the wrong place will now use the VI you opend from the right place. Save ALL VIs.

 

Repeat the proces of finding and fixing until you have them all fixed. THEN do the Save with Option >>> New location preserve hiarchy.

 

THen toss all of teh bad stuff and use your newly saved and re-linked stuff.

 

Ben

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 6 of 6
(2,679 Views)