From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-18-2015 01:12 PM
Hi all,
I wrote a vi a couple of year ago (call it file.vi), and created an executable out of it using the Application Builder (call it newfile.exe). I know I renamed the file
when I created the executable and now I cannot remember what I called the source file (I have hundreds in my PC, and cannot go through them one by one).
Is there anyway I can get the name of the original file from the executable? Notice that I am not asking to recreate the source file from the executable, which I understand is not possible.
05-18-2015 02:53 PM
I just did a binary search of a recently-built LabVIEW executable looking for a string that was part of the Source VI name (but not part of the name of the executable). Didn't find it. So I'm tempted to say "It's not available". I also checked the Properties of the Executable, and found (under Details) the File Description (from the Build Spec) and other info which might help. In particular, the info in the File Description was not in the executable binary (at least not as Ascii text).
Bob Schor
05-18-2015 04:04 PM
It might be possible to enable VI server access on the executable (you would need to add specific lines to the EXE's INI file. Do a search) and then connect to it from LV (using the Open Application Reference primitive with the correct port number) and call the Exported VIs property. I'm not sure which VIs are included in that property, though. The top level VI might be automatically included or might not be. Read the help for the property. There is also the All VIs property, but I don't think that can be called from a remote process.
05-18-2015 04:18 PM
05-18-2015 04:43 PM
Thanks all for the replies.
I am using LabVIEW 2011. I found a few projects and openeded them, but they don't contain the source file for this executable.
The source code that I am looking for was derived from another VI, and I might have to repeat the work 😞
05-18-2015 04:48 PM
05-18-2015 05:19 PM
No, I am not using source control. Perhaps I should.
05-18-2015 05:43 PM
05-18-2015 06:12 PM
Dennis,
I must come clean and admit that I don't really know what source control is. Is it a back up of source codes in one place like a server? I am not a programmer but use some LabVIEW to
automate a few simple tasks (mostly related to test data). I work solo in this area and there's not a group of people working on different pieces of the same project.
I can Google and learn what source control is. I am assuming that the concept itself is not specific to LabVIEW, unless LabVIEW has build-in funtionality for source control
05-18-2015 06:51 PM
@murchak wrote:
Dennis,
I must come clean and admit that I don't really know what source control is. Is it a back up of source codes in one place like a server? I am not a programmer but use some LabVIEW to
automate a few simple tasks (mostly related to test data). I work solo in this area and there's not a group of people working on different pieces of the same project.
I can Google and learn what source control is. I am assuming that the concept itself is not specific to LabVIEW, unless LabVIEW has build-in funtionality for source control
It is more like a database of files. It keeps versions on each file so that you can revert back to a previous version if needed. If working in a team environment, it helps to merge code and keep everybody up to date with everybody else. But the versioning is the most important part. I then recommend keeping the repository on a server that is regularly backed up.
For a simple SCC software, take a look at Tortoise SVN.