LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to cross-compile a VI?

I've developed an application and it compiles and runs fine on my windows machine. Now I'd like to compile it for some other targets (eg. OSX aLinux). How can I do this?

 

Thanks in advance for your help,

Chad

0 Kudos
Message 1 of 13
(5,331 Views)

You need to have the LabVIEW development environment for those targets installed on a computer that is running those targets. For example, you'd need to have the Mac version of LabVIEW installed on a Mac. You'd then load up your project and build the application.

0 Kudos
Message 2 of 13
(5,319 Views)

Then it's no longer *cross* compiling!

0 Kudos
Message 3 of 13
(5,317 Views)

I'm not here to get into a debate about the terminology. I just provided an answer to your question. Smiley Wink

0 Kudos
Message 4 of 13
(5,310 Views)
Also, the term is "building", not "compiling" here. Any vi that is ready to run in the development system is compiled. It will be recompiled as needed when loaded on a new system (e.g. windows 32 vs 64 bit, newer labview versin, mac, linux, etc.) Labview can compile code for certain other systems given the right toolkit or module. Just look at PDA, embedded, RT, and FPGA, for example.
0 Kudos
Message 5 of 13
(5,293 Views)

@altenbach wrote:
Also, the term is "building", not "compiling" here. Any vi that is ready to run in the development system is compiled. It will be recompiled as needed when loaded on a new system (e.g. windows 32 vs 64 bit, newer labview versin, mac, linux, etc.) Labview can compile code for certain other systems given the right toolkit or module. Just look at PDA, embedded, RT, and FPGA, for example.


Hi,

I have a similar issue...I am using LV2009 ver 90f3 (64 bit) on my Win7 machine. I have used the "Application Builder" in a quite default way. When running the EXE application on my PC from an USB-Stick it works, but when I go with it to other PCs (Win7) I get an Error saying something like 32bit or 64 bit.

Is there a way to build it on 32bit systems?

Could I save the Project/llb files on older version and then trying to "compile" it from an XP/LabView8 machine ?

Thanks for any help

Y3G


@altenbach wrote:
Also, the term is "building", not "compiling" here. Any vi that is ready to run in the development system is compiled. It will be recompiled as needed when loaded on a new system (e.g. windows 32 vs 64 bit, newer labview versin, mac, linux, etc.) Labview can compile code for certain other systems given the right toolkit or module. Just look at PDA, embedded, RT, and FPGA, for example.


   

0 Kudos
Message 6 of 13
(5,055 Views)

@Y3G wrote:
I have a similar issue...I am using LV2009 ver 90f3 (64 bit) on my Win7 machine. I have used the "Application Builder" in a quite default way. When running the EXE application on my PC from an USB-Stick it works, but when I go with it to other PCs (Win7) I get an Error saying something like 32bit or 64 bit.

Is there a way to build it on 32bit systems?

Could I save the Project/llb files on older version and then trying to "compile" it from an XP/LabView8 machine ?


I am sure the error is more than "something like 32bit or 64 bit" ! Can you quote the exact error message?

 

There are two potential issues:

  1. missing run time engine
  2. incompatible target OS.

 

If the application was built as a 64 bit applications, it will not be able to run on a 32 bit windows machine. For better compatibility, I recommend to develop and build 32bit LabVIEW applications, they will run under 64 bit and 32 bit windows.

 

Of course all target PCs also need the correct runtime engine installed. You can include it with the installer or download it freely from NI.

0 Kudos
Message 7 of 13
(5,049 Views)

Thanks for the hint.

Do you have an Application Note/White paper Documentation on how to build correctly an APplication , and not get into "pitfalls"?

When I opened the application on LV 8.3 (after saving it in LV8.3) I realized that not all SubVis could be read into the Block diagram, since they are not existing in LV8.3 (XML-subVis). Is there any other way to bypass the new development of the XML-Subvi? All the rest subVis were ok.

Thanks

0 Kudos
Message 8 of 13
(5,015 Views)
  • There is no LabVIEW 8.3 version.
  • Applications don't have a block diagram.

 

Please clarify!

0 Kudos
Message 9 of 13
(5,013 Views)

You must have a Run Time Engine installed and it must be of the same type (32 or 64 bit) as the LV that built the application.

/Y 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 10 of 13
(5,008 Views)