LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Separate Compiled Code for vi.lib

You can do a Mass Compile though. And that can go wrong and brake LabVIEW. I wished I could just have done a SCC Revert 😉

0 Kudos
Message 11 of 15
(103 Views)

Of course there is no use in adding Password Protected VIs to SCC. Unfortunately there is no clear folder separation between accessable and protected VIs.

0 Kudos
Message 12 of 15
(99 Views)

Hi

 

Dnatt from NI has written this nice overview :

 

https://www.labviewwiki.org/wiki/Compiled_object_cache

 

 

Compiled object cache

 

The Compiled Object Cache is the location where LabVIEW stores the compiled code for VIs. If you are having problems with loading/running/building your LabVIEW code, and you suspect the compiled object cache may be involved, you can use the Clear Compiled Object Cache dialog box to clear some parts of the compiled object cache, which will cause LabVIEW to recompile any VIs that were previously in the cache when they are loaded in the future.

 

There are multiple compiled object caches on your machine:

 

  • App Builder Cache - This cache contains the compiled code for VIs that are built into EXEs, PPLs, and other build outputs. The cache is located here: [LabVIEW Data]\AppBuilderCache\[version]
  • Core LabVIEW Cache - This cache contains the compiled code for VIs that are inside the [LabVIEW 20xx] folder on disk. This includes core APIs that ship with LabVIEW, VI-based features of LabVIEW, VIPM toolkits that install in user.lib or vi.lib, etc. This cache is located here: [LabVIEW 20xx]\VIObjCache
  • User + LVAddons Cache - This cache contains the compiled code for VIs that are part of your source code. Additionally, it also contains compiled code for any drivers, toolkits, or addons that are installed in the [LVAddons] folder. This cache is located here: [LabVIEW Data]\VIObjCache\[version].

Note that the Clear Compiled Object Cache dialog allows you to clear the App Builder Cache *and* any of your compiled source code from the User + LVAddons Cache.

 

There is no interactive way to clear the cache for the Core LabVIEW Cache, or for [LVAddons] code in the User + LVAddons Cache. You can manually delete the contents of the folders above to clear those caches.

Note: After you do this, the LabVIEW editor will be extremely slow in loading APIs and VI-based features that need to recompile.

 

You should only clear these caches as a last resort when debugging issues with LabVIEW. Another option is to repair the LabVIEW installation, which will also regenerate these caches.

 

Regards

 

Message 13 of 15
(71 Views)

@code-lux wrote:

Why does NI deliver VIs with included Compiled Code in the vi.lib?


IIRC, the idea was to make the install faster, as adding time to generate the compiled code would make an install which can already be quite long even longer.

 

As mentioned, there are cases where this is no longer relevant (LV Addons, probably code which is shared between platforms, etc.).


___________________
Try to take over the world!
0 Kudos
Message 14 of 15
(31 Views)

Wouldn't it be possible to also install the LabVIEW Core Compiled Cache to save time?

 

Separated Compiled Code allows to make Updates more efficient...

0 Kudos
Message 15 of 15
(17 Views)