Migrating LabVIEW Old Source Code to LabVIEW NXG

Updated Jul 21, 2021

Reported In

Software

  • LabVIEW
  • LabVIEW NXG

Other

  • Code Conversion Utility for LabVIEW NXG

Issue Details

Is it possible to migrate my LabVIEW VIs or Projects to LabVIEW NXG?

Solution

Yes, it is possible to migrate LabVIEW Source Code to LabVIEW NXG, with the help of the Code Conversion Utility, which is included in LabVIEW NXG. Follow Guidance in the LabVIEW NXG Help on Converting LabVIEW Code with the Code Conversion Utility to Use in LabVIEW NXG

Before beginning, read through how to prepare your LabVIEW Code for Conversion to LabVIEW NXG.

Considerations

Before converting a whole application, realize that not all features are currently supported in the LabVIEW NXG, see the document Compare LabVIEW and LabVIEW NXG for an overview about the capabilities not supported in LabVIEW NXG. For small applications, the Code Conversion Utility will produce a close representation of the LabVIEW code. For medium to large size applications, the complexity of conversion and cleanup increases, and you should evaluate what parts of your application to convert and which to keep in LabVIEW.

Additional Information

  • After conversion completes, and you have reviewed the report, you can start to resolve the conversion messages. The conversion report provides several ways to organize messages so they can be resolved in a way that makes sense for your project. For most cases, it will be beneficial to start by focusing on messages which require a manual fix. Click on a message in the conversion report to navigate to its location in the code.
    • Most scenarios, other than those involving simple applications, will require a time investment to resolve conversion messages and return the code to a working state. The amount of time required to resolve the messages varies widely depending on the complexity of the code. Smaller sets of codes (less than 50 VIs) should require a few hours, while larger code sets may require significantly more time to resolve the entirety of the conversion messages.
  • If you are considering to migrate a Vision application to LabVIEW NXG refer to the document Frequently Asked Questions about Vision NXG.