Executing Source-Only VIs in LabVIEW Runtime Engine

Use the Version Independent Runtime Engine Support feature in the LabVIEW Adapter as an option to avoid potential issues when executing source-only VIs using the LabVIEW Runtime Engine through the LabVIEW adapter. These issues can occur if the LabVIEW version the source-only VI was saved or mass-compiled in does not match the LabVIEW Runtime engine version, as VI version no longer gets updated during a save or mass-compile.

Source-only VI execution errors related to the save version of the VIs can occur when the LabVIEW Runtime Engine version in the LabVIEW adapter is set to AutoDetect or set to a specific version. These errors can affect VIs in projects, classes, libraries, and folders containing a .lvversion file. Use one of the following methods to prevent these errors when executing source-only VIs:
  1. Option 1: Disable the Save version feature in LabVIEW, and re-save your VIs.
    1. Close TestStand.
    2. Open LabVIEW, navigate to Tools » Options » Environment, and disable the Maintain the Save Version of Loaded Projects by Default feature.
    3. Clear the compiled object cache in LabVIEW by navigating to Tools » Advanced » Clear Compiled Object Cache.
      Note If you have files copied to user.lib or instr.lib, delete the .vidb cache file located at <LabVIEW Install Directory>\VIObjCache\<version>\objFileDB.vidb.
    4. Set the save version of your LabVIEW projects to Editor Version in the project properties.
    5. Delete any .lvversion files you created in your project folders.
    6. Mass-compile your LabVIEW files.
  2. Option 2: Use the Version Independent Runtime Engine Support feature in TestStand.
    1. In TestStand, Enable the Enable Version Independent Runtime Engine option in the LabVIEW Adapter Configuration dialog box.
    2. Set the LabVIEW Runtime Version control to match the version of LabVIEW that you used to save or mass-compile your VIs.
    3. Restart TestStand.
  3. Option 3: If your files do not need to be source-only, disable the Separate compiled code from source file setting for your VI, project, library, or entire environment in LabVIEW.