07-30-2009 09:25 AM
Is it possible to integrate an exisiting LabView *.exe file in another LabView vi or LabView project?
The existing LabView *.exe does output some measurement data on the front panel, but I would need this data written e.g. to an Excel sheet. So I thought it must be possible to embed the LabView *.exe file into another LabView vi, that reads data from the *.exe file and writes the data into a data file.
I don't have access to the original LabView program, before it was converted to an *.exe file and I don't know the settings used to built the *.exe.
Toodles,
Optimike
07-30-2009 09:31 AM
07-30-2009 09:39 AM
What is the LabVIEW Version the exe was build with?
Christian
07-30-2009 09:56 AM
I guess the LabView version used to built the exe was 7.1, but I'm not sure about that, because I retrieved the LabVIEW version only by the following procedure.
Created new vi
File -> Open -> Double click on *.exe file
LLB-Manager opens, and if I double click on one of the many vi's displayed I get an error message that reads something like: LabVIEW: VI can not open .... LabVIEW-error code 11: The VI-version (7.1) can not be converted to LabVIEW version (8.6.1), because the VI doesn't have a block diagram.
FYI: Above error message was translated by myself from German to English, so the wording might be somewhat different in an English LabView version.
I'm using LabVIEW version 8.6.1
07-30-2009 10:17 AM
Without testing I'm not sure if it is working.
Maybe you should be able to open an application reference to the application. You should add the entries for VI Server in the configuration file to listen on a specific port. In LV 8.6.1 you can open the application with this port. With this reference you can try to open a VI reference for the VI from which you want the data. Use Get CTRL Value to read the data from the control.
The application must be running before you can do this. For the final solution you must make any error handling on errors by the Open Application Reference primitive.
The thing I'm not sure about is if this will work across different versions of LV.
07-30-2009 12:19 PM
07-30-2009 01:09 PM
To add to waldemar's suggestion, it is certainly possible to communicate with an exe from an older version. You could search around on this forum and on lava for sciware's GOOP wizard. They had to use functionality that was inaccessible after LV 7.1, so they wrote something they called an 'agent' in each version that called the 7.1 code to do the job. And last week they decided to Open up their code, so you're lucky.
Felix