12-17-2009 09:57 AM
I would like to run a labview executable and have been unable to do so. The executable was built on a Windows platform using Labview 9. I'm using a Linux box and when I try to run the executable from a terminal I receive the error message "bash: cannot execute binary file" and if I try to double-click the executable on the desktop I receive the error message "Nautilus has no installed viewer capable of displaying ".
I've already installed the Linux labview runtime engine.
Am I missing files that need to be associated with the executable? Or is there an environment variable set improperly?
Thank you,
Laura
12-17-2009 11:22 AM
An exe's binaries are not the same on different OS's. You cannot run any windows exe in Linux, no just a LabVIEW exe.
In order to run on Linux, you need to load the source code with the LabVIEW for Linux development environment and rebuild the exe.
12-17-2009 12:15 PM - edited 12-17-2009 12:16 PM
12-17-2009 01:07 PM
Ah, I was afraid that was the case. I have Labview (8.5) on the Linux box, but I do not see where I can build an exe; how is this done? The project also seems to be missing a number of files when transfered from Windows to Linux; how do I find these missing files?
Thank you for your responses.
12-17-2009 01:11 PM - edited 12-17-2009 01:13 PM
As mentioned, to build a LINUX executable, you have to use the LINUX LabVIEW.
You need the FULL or PROFESSIONAL versions of LabVIEW for Linux, or you need to purchase the APP BUILDER add-on.
Those allow you to create a stand-alone executable.
"Stand-alone" means you don't need the LabVIEW environment, but you still need the (free) LabVIEW RunTime.
If you only have LabVIEW BASIC for Linux, then your code could be using some advanced VIs that aren't available in BASIC LabVIEW, and that's why they're missing.
What files are missing?
Blog for (mostly LabVIEW) programmers: Tips And Tricks
12-17-2009 01:13 PM
CoastalMaineBird wrote:You need the FULL or PROFESSIONAL versions of LabVIEW for Linux, or you need to purchase the APP BUILDER add-on.
That is not correct. The Full version does not contain the Application Builder. The Application Builder is included in the Professional or Developer Suite version.
12-17-2009 01:21 PM
I am running the full development version of Linux labview 8.5. However, I do not see any tool to build an executable.
When I copy the labview project from the windows machine to the linux box and then try to open the vi, labview is unable to find a number of files including NiRioSrv.so and nirio_resource_hc.ctl as well as a number of FPGA vi templates, controls, and xnodes.
12-17-2009 01:28 PM
LauraFB wrote:I am running the full development version of Linux labview 8.5. However, I do not see any tool to build an executable.
As I noted, the Full development version does not contain the Application Builder. You will need to purchase this as an add-on.
When I copy the labview project from the windows machine to the linux box and then try to open the vi, labview is unable to find a number of files including NiRioSrv.so and nirio_resource_hc.ctl as well as a number of FPGA vi templates, controls, and xnodes.
You need to install the drivers for the hardware that was being used. Of course, this assumes there are Linux drivers available.
12-17-2009 02:20 PM
12-21-2009 02:45 PM
Joe Friedchicken
NI Configuration Based Software Get with your fellow OS users
[ Linux ] [ macOS ]Principal Software Engineer :: Configuration Based Software
Senior Software Engineer :: Multifunction Instruments Applications Group (until May 2018)
Software Engineer :: Measurements RLP Group (until Mar 2014)
Applications Engineer :: High Speed Product Group (until Sep 2008)