LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Script VI Properties Separate Compile Code option

Solved!
Go to solution

The VI Properties General category has the boolean option "Separate compiled code from source file".  I would like to be able to set this through a script.  Is that option included in the scripting nodes somewhere?

We have many projects in SVN, none of their VIs have this property set so every time a minor change is made the result is a long list of VIs being added to the change list for commit.

0 Kudos
Message 1 of 8
(1,517 Views)
Solution
Accepted by topic author randoghsp

Not sure about scripting, but if you open your project, there is a project option to mark all items, it will be applied the next time they are saved. Maybe that's all you need.

 

altenbach_0-1652892595383.png

 

0 Kudos
Message 2 of 8
(1,511 Views)
Solution
Accepted by topic author randoghsp

Here is a simple VI that I put together (save in LV16)

santo_13_0-1652894361099.png

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 3 of 8
(1,499 Views)

Both options are perfect.  Thanks 🙂

0 Kudos
Message 4 of 8
(1,492 Views)

@santo_13 wrote:

Here is a simple VI that I put together (save in LV16)


I am curious if there is a reason why there are two loops instead of one?

0 Kudos
Message 5 of 8
(1,478 Views)

@altenbach wrote:

@santo_13 wrote:

Here is a simple VI that I put together (save in LV16)


I am curious if there is a reason why there are two loops instead of one?


Yes, I am ensuring all the files are loaded into memory before changing the property, thereby every VI need not spend time loading the same dependencies over and over again.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 6 of 8
(1,459 Views)

This setting is also available for control properties.  Should it also be set there or is that just a noop.

0 Kudos
Message 7 of 8
(1,433 Views)

@randoghsp wrote:

This setting is also available for control properties.  Should it also be set there or is that just a noop.


Not obvious. You could try both and compare the size of the *.ctl file. 😄

0 Kudos
Message 8 of 8
(1,413 Views)