LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why the Project.Close() method does not start compilation like when manually closing the project?

I have some project where all the code has separate compiled code. When I open this project manually and then close it, LV starts compiling LV compiled object cache for this project.

 

I tried to do the same programmatically. So, I prepared a simple VI (see attachment) and I was expecting that the Project.Close() method will trigger compilation as when closing manually. However, the cache is not compiling.

 

So, why the Project.Close() method does not start compilation like when manually closing the project? Why there is no consistency? How to automate LV compiled object cache creation?

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 1 of 6
(1,284 Views)

Just curious, why not regular mass-compile?

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 2 of 6
(1,277 Views)

@santo_13 wrote:

Just curious, why not regular mass-compile?


Can I mass-compile a project or it has to be a whole directory?

 

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 3 of 6
(1,270 Views)

I couldn't find a property node/invoke node to mass-compile the project but there is right-click option in the project explorer

santo_13_0-1663954252042.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 4 of 6
(1,250 Views)

Could you use code like this to iterate through your entire project hierarchy to compile it all?

 

Kyle97330_0-1663975823833.png

You'd probably want to add some restrictions so you don't compile things you don't want to, i.e. things in vi.lib

 

Message 5 of 6
(1,215 Views)

I tried this code but the strange thing is that LV compiled code cache is not changing.

Michał Bieńkowski
CLA, CTA, CPI

  1. Did someone devote their time to help solve your problem? Appreciate it and give kudos.
  2. Problem solved? Accept as a solution so that others can find it faster in the future.
  3. Contribute to the development of TestStand by voting on the TestStand Idea Exchange.
0 Kudos
Message 6 of 6
(1,168 Views)