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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to Modify a Labview exe?

I have a Labview exe that I did not create, but trying to modify. I have the dll file, and the VI's that went into creating the GUI. I've never worked with a labview exe until trying to modify this, so I'm pretty new into this site of the program. I always thought what you created had to run in labview. Anyways, I've spent the last couple days doing some research and playing around with some of the stuff, but so far haven't had any luck. Each change either hasn't done anything, or has completely prevented the application from opening. I'm not trying to do anything that complex, at least I don't think it is that complex, once a file is loaded into the gui, I want to have the GUI locked except for the run button to prevent an accidental change in values. If anyone is anyone able to help it will be greatly appreciated. Thanks.

 

 

0 Kudos
Message 1 of 13
(5,642 Views)

You need the original source code that was used to make the .exe.  That means all the .vi files.  I don't know what .dll file you are referring to.

 

You will modify the VI files as needed, then build a new .exe from those modified files.

 

Since you haven't used LabVIEW before, start with tutorials. How to Learn LV

 

 

0 Kudos
Message 2 of 13
(5,631 Views)

I am a little confused by the term "loading a file into the GUI". For some background information though, generally you cannot change an .exe without the source code and a professional development license. What you get when you run an .exe is running in LabVIEW (runtime). The .exe is basically a package of VI's that the application needs to run. You can have VI's or code that are external to the .exe that are required to run, these are generally referred to as dependencies. Depending on how the application was designed, you could theoretically change some of the external dependencies to change how the .exe executes but generally this is not how people design their executable applications to function.


Corey Rotunno

0 Kudos
Message 3 of 13
(5,622 Views)

The exe that I want to modify allows you to load a configuration file for all the settings before running. Once that file is loaded I'd like to lock down all the registers, so the values can't be changed while running. 

0 Kudos
Message 4 of 13
(5,603 Views)

If the original LabVIEW program was written correctly, you shouldn't have a problem.  A configuration file, having the values you want to use when the program is run, is read by the program (generally when it starts) and the values are saved in memory for the duration of the program.  Once read, changing the values won't matter until (a) you save the (now-changed) file and (b) run the application again, now using the changed file.

 

That's kind of the point of a Configuration File -- to have a (relatively static) set of variables that are read once, used throughout the program, but can be modified if the situation (configuration) changes.

 

Bob Schor

0 Kudos
Message 5 of 13
(5,597 Views)

The issue I'm having is if while running the program it happens to fail, the values get changed back to the original values of when you launch the program. If you don't notice the change it will mess up future runs, which is why I'd like to be able to lock the configuration variables when I'm going to be doing a large set of runs. 

0 Kudos
Message 6 of 13
(5,588 Views)

But if the program was written correctly, when the program restarts, it will read the configuration file again and reload those values.

0 Kudos
Message 7 of 13
(5,575 Views)

Could be why this person wants to modify it.  😉

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 8 of 13
(5,572 Views)

Yup! That's what I want to modify. At the moment if it fails while running, you have to reload the configuration file or it uses the values from when starting the application. I want the configuration values to stay obviously. 

0 Kudos
Message 9 of 13
(5,570 Views)

Which gets back to the answers already given.

 

Fix the source code so it does what you want.  Make a new .exe.

0 Kudos
Message 10 of 13
(5,543 Views)