10-10-2017 07:37 AM
10-10-2017 07:43 AM
i don't know about the .exe, others may have that information, although i suspect this will not work.
do you have access to the original VI for the exe?
then you could have it in a SubPanel.
10-10-2017 08:07 AM
You could try using the System Exec VI or you could use the Open Vi Reference and feed/receive the data that you want connected using the properties or methods from the executable.
10-10-2017 10:09 AM
@Gabrielo wrote:
This sound more like you should be using a Packed Project Library (PPL) for your "exe" and then have your main code dynamically call the VI in the PPL and load the front panel into a subpanel.
10-10-2017 11:19 AM
The idea is to work directly on an exe or dll and not on a "vi" because I would like that EXE to function as an external plugging.
10-10-2017 11:21 AM
Sure you can do this. Here is an example where I embedd 7-zip into a VI as a string constant. Then on running the VI it is saved to a temp location and ran.
Similar things could be done to encapsulate other binaries like DLLs too.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
10-10-2017 11:51 AM
@Gabrielo wrote:
The idea is to work directly on an exe or dll and not on a "vi" because I would like that EXE to function as an external plugging.
That is exactly the use case for a PPL. A PPL is a compiled library. So it is equivalent to a DLL, but you have the public VIs to interface with however you need to. If you need to update your plugin, you just update the PPL. Need a different functionality, just point to a different PPL.
10-11-2017 02:26 AM
crossrulz escribió:
@Gabrielo wrote:
The idea is to work directly on an exe or dll and not on a "vi" because I would like that EXE to function as an external plugging.
That is exactly the use case for a PPL. A PPL is a compiled library. So it is equivalent to a DLL, but you have the public VIs to interface with however you need to. If you need to update your plugin, you just update the PPL. Need a different functionality, just point to a different PPL.
10-11-2017 06:31 AM
For a PPL, you just make a project specifically for the plugin. You have to use a library (lvlib) for your plugin code. Then you just create a Packed Project Library build specification.
To use in your main project, you can just put the built PPL in your project and use the public VIs, either called directly (just like a normal subVI) or dynamically with the VI's path. If using dynamically called VIs, I recommend using the Get Exported File Path to get the real path of the VI you want to call that is inside of the PPL.