02-09-2007 03:40 AM
02-09-2007 05:39 AM
I don't know about the part of detecting an installed program or how to find the VI, but I can answer about running the code - it won't work.
When you save a VI in LV the compiled machine code is saved as part of it (that's why you get the VI Recompiled message in the changes dialog when opening a VI in a newer LV version). The RTE actually runs this compiled code and since Linux cannot run Windows binary executables it won't work unless you open it first in LV for Linux and save it there.
One other option I can think of is using Windows emulators like Wine, but I have no idea if that will work. Rolf can probably answer that better (and he probably has already, just search for it).
02-09-2007 06:40 AM
02-09-2007 06:58 AM - edited 02-09-2007 06:58 AM
Message Edited by shoneill on 02-09-2007 01:59 PM
02-09-2007 07:12 AM
@shoneill wrote:
Personally, I'd prefer a "portable" solution.
I don't know how large\complex the code that does the compiling is, but that would make the RTE even bigger than it is now {keep in mind that the code that LV has has to handle opening VIs from older versions, implementing changes, etc.).
Also, I'm guessing it's not in NI's interest to allow people to be able to compile code without paying for the IDE.
Another problem is that if the compiled code was not saved as part of the VI all of the VIs would have to be compiled each time you ran them and that would make the performance very bad. The other option is not to have the code compiled at all, just interpeted (LV 1 actually had this), but that is also a recipe for bad performance.
One possible option is having a virtual machine (like Java), so that you only have to write a VM for each OS, but I have no idea what that means from a technical standpoint.
02-09-2007 07:22 AM
02-09-2007 08:10 AM
02-09-2007 08:10 AM
02-09-2007 08:59 AM - edited 02-09-2007 08:59 AM
Message Edited by shoneill on 02-09-2007 04:01 PM
02-09-2007 10:10 AM