LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

top level from exe

I wouold like to be able to find out what VI was set as the start up VI when an executable was created.
 
I want to be able to read the VI Desc property of the Top level VI in an Executable ....but from another
executable.
 
Thanks
0 Kudos
Message 1 of 5
(3,319 Views)
This forum post should help you:
How to get to top level VI/folder
Adnan Zafar
Certified LabVIEW Architect
Coleman Technologies
0 Kudos
Message 2 of 5
(3,278 Views)

Hi Mike,

      I don't know if you're the beta-tester-type.  This VI has only been tested on a few VIs, but seems to do what you need.  Two minor points of caution:

1) It's cunningly crafted to fail at a moment calculated to cost you maximum embarrasement and

2) Vista may complain when this VI tries to open/read EXE!

Besides that, hope it helps! 

Cheers!

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 3 of 5
(3,268 Views)

hi tbd,

How to use Ur VI ? What should be given in the path control ?

First time, I gave a VI, it threw an error from the Open VI Reference. Smiley Indifferent

Second time, I gave an exe, then also it threw an error in the same place. Smiley Sad

What could posibily be wrong with my approach ? Smiley Surprised

Can U explain the correct way to use the VI ?

- Partha ( CLD until Oct 2027 🙂 )
Message 4 of 5
(3,258 Views)

Hi Partha,

      I'm sorry you had trouble with "exe_miner.vi" - see warning #1. >

> What could posibily be wrong with my approach ?

Well, if you were to select a .VI instead of an .EXE, or select an EXE that wasn't created with app. builder - then that could explain error-messages!

Like I said, I tested this on just a few .exes.  If it doesn't work for you, maybe it can be fixed.   The VI chops-out the last 4096 bytes of the target EXE.  If you wire this string to an indicator.  Enable "\" codes, cut/paste the string into a .txt file, then attach the file, I'll work on making the "exe_miner.vi" handle a wider class of VI(s).  Note, exe_miner.vi is basing it's search on a particular character-sequence ("LVARLBVW") if this doesn't appear in the last 4096bytes, that could be a problem.Smiley Wink

Cheers!

Message Edited by tbd on 03-28-2007 02:30 PM

"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
0 Kudos
Message 5 of 5
(3,248 Views)