09-05-2014 09:17 AM
Hi All,
I need to write a program to find VIs that are present in an EXE by using EXE reference only that I will get by using "Open Application Reference" function, I reffered to few sites but couldn't get a clear idea if this could be done or not,Is there any way to achieve this,if so please let me know how this can be done.
Thanks in Advance,
Sree
09-05-2014 09:22 AM
You could in older versions of LV, you cant any longer.
/Y
09-05-2014 09:58 AM
09-05-2014 11:39 AM
I believe you can still do this in modern versions of LabVIEW. You need the Application >> Exported VIs in Memory property node on the application instance. This will give you a top level VI. Open a reference to this VI, then you can use the Get VI Dependencies Names And Paths to get a list of all the SubVIs that main VI has. I haven't done this in a while but I think it works this way.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
09-05-2014 11:59 AM - edited 09-05-2014 12:01 PM
provided that the main vi calls the subvi (static call) am i right?
09-05-2014 12:01 PM
@Guruthilak wrote:
provided that the main vi calls the subvi (statically?) am i right?
I think so. If you have it called using a static VI reference I think it will be included in that list. If you choose to add a VI to the Always Include when building an EXE, then it won't be listed under it as a dependency, but there is a chance it will be listed as an Exported VI, which actually returns an array of VIs.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
09-05-2014 12:09 PM
if "its in always included list" then just use the path of this vi...