Does Renaming a Shared Variable Library in an Build Rename It in My Code?

Updated Apr 10, 2018

Reported In

Software

  • LabVIEW Datalogging and Supervisory Control Module
  • LabVIEW Full
  • LabVIEW Professional

Issue Details

I have a library in my project with shared variables. When I build my application, I am selecting the option to Rename this file in the Source File Settings of my Build specifications for the project library. My application is configured to automatically deploy this library at launch. Will selecting this option rename the library in my code as well, so that it looks for the shared variables at the correct location?

Solution

No. Selecting to rename the file in the build will only cause its name on disk to change, but it will not change the name of the library that the code is expecting. This will result in a failure to read from the shared variables.

Change the name of the library instead from within the LabVIEW project to ensure that the project library is properly identified in the code and when deployed at runtime.

WAS THIS ARTICLE HELPFUL?

Not Helpful