LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Separate compiled code for many projects

Solved!
Go to solution

Hi,

is there a better way for me to separate compiled code for a lot of projects than opening every singe one and setting the check mark...
Like can i set the xml tag in the project file? Will it just separate the code after it's opened once?

 

The "problem" is our team is just now starting to use git (so they never cared about this setting) and now i'm here having to migrate a lot of very big projects, it often takes 3-4 minutes just to open the project. There has to be a better way than having to open every single one.

Thanks a lot for any ideas

0 Kudos
Message 1 of 7
(352 Views)

Use the attached VI.

Disclaimer: It's not mine. I have found it on this forum, but I don't remember where unfortunately, so I cannot give credit.

Message 2 of 7
(344 Views)

Thanks a lot, this looks really promising!

But I can't get it to work properly, maybe because a Sub-VI is missing. Would you mind uploading it again with all the Sub-VI's?

0 Kudos
Message 3 of 7
(298 Views)

@Raukho wrote:

Hi,

is there a better way for me to separate compiled code for a lot of projects than opening every singe one and setting the check mark...
Like can i set the xml tag in the project file? Will it just separate the code after it's opened once?

 

The "problem" is our team is just now starting to use git (so they never cared about this setting) and now i'm here having to migrate a lot of very big projects, it often takes 3-4 minutes just to open the project. There has to be a better way than having to open every single one.

Thanks a lot for any ideas


While this way would seem to be not efficient, it's probably the best way to do it to ensure that everything gets done correctly.  (Don't forget to "Mark existing items".)

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 7
(294 Views)

@Raukho  ha scritto:

Thanks a lot, this looks really promising!

But I can't get it to work properly, maybe because a Sub-VI is missing. Would you mind uploading it again with all the Sub-VI's?


It uses a VI from the openG library. It is not really required, so you can simply delete that subVI and run the VI.

0 Kudos
Message 5 of 7
(285 Views)

The add-on Property Inspector 5.0 will load the project, find all VIs with Separate Compiled Code disabled, select all and replace the setting with true.  You can write a macro in under a minute to perform this sequence in a single click.  You can also write a macro to load a project, run the macro and close the project. Finally, you can write a macro to run the previous macro repeatedly for an unlimited number of projects. Just use parameters to pass the full project path from the top macro to the next macro. 

Here are the 3 macros:

 

Set Separate.pi5:

Search Separate Comp. Code 0

Select All

Edit Replace 1

 

Set Proj Separate.pi5:

Project Open %1

Call C:\YourPath\Set Separate.pi5

Project Close

 

Set Projects Separate.pi5:

Call C:\YourPath\Set Proj Separate.pi5 C:\YourPath\Proj1.lvproj

Call C:\YourPath\Set Proj Separate.pi5 C:\YourPath\Proj2.lvproj
Call C:\YourPath\Set Proj Separate.pi5 C:\YourPath\Proj3.lvproj

Call C:\YourPath\Set Proj Separate.pi5 C:\YourPath\Proj4.lvproj

Michael Munroe, CLD, CTD, MCP
Automate 1M+ VI Search, Sort and Edit operations with Property Inspector 5.0, now with a new Interactive Window Manager!
Now supports full project automation using one-click custom macros or CLI.
0 Kudos
Message 6 of 7
(271 Views)
Solution
Accepted by topic author Raukho

Hi,

I ended up creating a quick flor with power automate. Was still an awful experience but better than doing all that manually!

Thanks for any help tho!

0 Kudos
Message 7 of 7
(229 Views)