Table Of Contents

Converting LabVIEW Code for Use with LabVIEW NXG

Last Modified: September 28, 2017

Use the Code Conversion Utility within LabVIEW NXG to convert code from a previous version of LabVIEW.

Before converting your code, prepare the code for conversion in a supported version of LabVIEW to reduce the amount of clean-up required in the converted code. Refer to Preparing Your Code for Conversion for help preparing your code.

  1. Select View»Home to navigate to the Home screen. On the Projects tab, select Convert a Project to launch the Code Conversion Utility.
  2. Add the projects, folders, or files you want to convert.
  3. Verify the output directory matches the location where you want the Code Conversion Utility to store the new code on disk after conversion.
  4. Click Preview to view the folder hierarchy the Code Conversion Utility will use when storing the new code after conversion.

    In addition to displaying the folder hierarchy, the Code Conversion Utility displays errors in the conversion preview if it detects any problems when loading the files.

    Files that are not part of a project in the original source code are grouped in a new project called LooseFiles in the conversion preview.

  5. Resolve errors listed in the conversion preview. If the conversion preview contains no errors, continue to step 7.

    Search this manual for errors listed in the conversion preview to find help resolving errors.

  6. If you modify the original source code while resolving errors, close and reopen the Code Conversion Utility and repeat steps 2 through 5. Restarting the Code Conversion Utility ensures that the utility references the latest source files.
  7. Click Convert. Each time you run a conversion, the Code Conversion Utility creates a time-stamped folder containing the converted source code. The new folder also contains a comprehensive conversion report that identifies all behavioral changes in the new code. The conversion report is available in the converted project, or you can view the report in a web browser where you can export the conversion report as a CSV or XML file.

    Converting files using the Code Conversion Utility does not modify the original source code files.

After converting your code, resolve changes in the converted code to replicate the behavior of your original code.

Recently Viewed Topics