Moving Developed VIs, Executables and Installers to a Different OS

Updated Jul 12, 2018

Reported In

Software

  • LabVIEW

Operating System

  • Linux
  • Windows
  • Mac OS X

Issue Details

  • I am considering porting my LabVIEW application that I developed on one operating system to another. Is this possible, and are there any special considerations I need to keep in mind? 
  • I have developed a VI on a Windows OS, and have built an executable. I would like to run the executable on a Mac OS or a Linux. Is this possible?

Solution

Developed VIs

As long as the LabVIEW versions are the same, you can move VIs between Windows, Mac OS X, and Linux. When you open the VI on the new platform, LabVIEW detects that the VI is from another platform and recompiles it to run correctly.
 

However, if a VI contains platform-specific features,such as .NET or ActiveX, you cannot move it between platforms. Refer to the Porting VIs among Platforms topic in the LabVIEW Help for more information about the platform-specific features that prevent you from moving a VI between operating systems. This help topic also includes information about workarounds where they are available.
 

Executables and Installers

Executables (Stand-alone applications) and installers are platform dependent. An executable must be built on the target operating system and cannot run on another OS. A VI can be recompiled because the VI includes the source code. However, an executable includes pre-compiled code, and it cannot be converted.

Additional Information

Not all hardware drivers are supported on all platforms. Therefore, National Instruments recommends that you make sure the required drivers for your hardware are supported in the operating system before you move your application to a different operating system.  For example, applications developed using DAQmx 9.8 are not compatible on Linux or OS X.  The application would need to be modified to use the DAQmx Base 3.7 driver. Additionally, it is important to consider that these two drivers do not support all of the same hardware, so moving an application from one operating system to another may require different hardware. You should always consult the README for the device driver to confirm its compatibility with devices and operating systems.

WAS THIS ARTICLE HELPFUL?

Not Helpful