LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Embedded Labview exe in a LabView program

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

0 Kudos
Message 1 of 7
(3,908 Views)
Writing data into Excel via Activex is not so hard, and the tools are free. So I think you should go for this solution. I am somewhat rusty on this topic, but search the forum and you will find all the help you need


Besides which, my opinion is that Express VIs Carthage must be destroyed deleted
(Sorry no Labview "brag list" so far)
0 Kudos
Message 2 of 7
(3,904 Views)

What is the LabVIEW Version the exe was build with?

 

Christian

0 Kudos
Message 3 of 7
(3,898 Views)

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

 

0 Kudos
Message 4 of 7
(3,883 Views)

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.

Waldemar

Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions
Message 5 of 7
(3,872 Views)
Instead of getting data directly from the EXE, why dont you just get the data from the outputted excel file?
That would be easier.
Cory K
0 Kudos
Message 6 of 7
(3,844 Views)

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

0 Kudos
Message 7 of 7
(3,833 Views)