Jump to content
ensegre

deploy hierarchies of shared variables in EXE

Recommended Posts

I wonder if someone ran into this and has a good suggestion about. I have a DSC project, in which it looks just right to organize hierarchically my shared variables. Like, e.g.

SystemManager_2018-01-25_11-50-47.png

Now this is easy to do programmatically, see the attached project. The problem arises when building an application. It would look as if the plain way to do it, would be to create a build specification which includes the additional libraries, and select their deployment in the "Shared Variable Deployment" tab. However, this doesn't seem to work for nested libraries as in my example. The only possibility seems to add in "Always included" each of the contained libraries. But by doing like this the hierarchy is flattened.

If I include like this,

LabVIEW_2018-01-25_11-49-55.png

then the variables within the container library are not deployed at runtime.

In my example project:

  • open the project in the IDE, run DeployAllSharedVariables.vi, then CheckDeployed, and see the result (all four variables found with their nested paths)
  • build and run DeployFlatLibraries and see the result: four variables, but flattened paths
  • build and run DeployHierarchicalLibraries: only the two variables in the unnested SimpleVariableLibrary are there.

I've searched a bit, and only came up with this document, which (for >2009) says "just check the checkbox". Nor the help page says much either.

I wonder if I can do what I'd like only compiling separately the libraries, and loading them programmatically afterwards, both in the IDE and in the exe. Which probably is sane, but inconvenient for the first attempts.

TestDeploy.zip

Edited by ensegre

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.