highway Posted July 19, 2008 Report Share Posted July 19, 2008 Hi I need to run labview VI's on a computer that has linux on it. I plan on only using the runtime engine on the linux computer and developing the vi's on a different computer. Can I develop the VI's using Labview on a computer that has windows as its operating system or do I need to develop them on a computer with linux? Thanks for you help. Quote Link to comment
pallen Posted July 19, 2008 Report Share Posted July 19, 2008 LabVIEW is cross-platform. But there are a few caveats. You can run a VI developed in Windows on a Linux machine that has LabVIEW installed. But I do not believe you can run an executable created in Windows on a Linux machine. You would have to take the code you developed in Windows and then create the executable file on the Linux machine. This would require having LabVIEW development environment installed on both machines. Quote Link to comment
crelf Posted July 19, 2008 Report Share Posted July 19, 2008 QUOTE (pallen @ Jul 18 2008, 01:17 PM) You can run a VI developed in Windows on a Linux machine that has LabVIEW installed. But I do not believe you can run an executable created in Windows on a Linux machine. You would have to take the code you developed in Windows and then create the executable file on the Linux machine. This would require having LabVIEW development environment installed on both machines. That's right - exe's built on Windows run on Windows only, exe's built on Linux run on Linux only. Quote Link to comment
Mars Su Posted April 19, 2011 Report Share Posted April 19, 2011 LabVIEW is cross-platform. But there are a few caveats. You can run a VI developed in Windows on a Linux machine that has LabVIEW installed. But I do not believe you can run an executable created in Windows on a Linux machine. You would have to take the code you developed in Windows and then create the executable file on the Linux machine. This would require having LabVIEW development environment installed on both machines. And it seems the application build in Linux does not work in Windows either. Quote Link to comment
Rolf Kalbermatter Posted April 20, 2011 Report Share Posted April 20, 2011 And it seems the application build in Linux does not work in Windows either. How should that work? An exe build on Windows expects to run on Windows (or maybe Wine) and an exe built on Linux expects to run on Linux. Linux doesn't know how to load and run the Windows PE format that the LabVIEW exe stub is in, and Windows doesn't know how to run the elf startup stub that is in the LabVIEW for Linux executable. Executable Files are always specific to the platform they are created in, and can't be moved to a different machine architecture, independant if the the CPU type is the same. In the case of LabVIEW VIs (not included in an executable but run for instance through VI Server) a similar limitation applies. VIs will only run in the runtime engine for which they were compiled and since the runtime engine doesn't have a compiler included this means you need to have loaded and saved them the last time on the same platform as you want to run them in a runtime engine. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.