LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Editing an auto executing .vi

I am changing a project that writes data to an EPROM.  The sub .vi's are fixed and write data in the right order, but to the wrong starting location.  I was able to print the Main .vi that includes about 10 sub .vi's and the starting location is in the Main.
 
My problem is that I cannot edit the Main.vi and it starts up the program that asks the user for data.  Is this controlled by parameters in a sub .vi that I can edit or is there some sort of way that the initial programmer could have defined this.
 
Is there a way to make a .vi auto executable, and more importantly a way to defeat it?
 
Thanks.
0 Kudos
Message 1 of 8
(3,294 Views)
If you have access to the project file (*.lvproj), opening the main file from there should prevent it from running when opened.
0 Kudos
Message 2 of 8
(3,293 Views)

And if you don't have a project, put the top level VI on the block diagram of another. You can open it then.

To set any VI to run when opened, you go to VI Properties>Execution.

0 Kudos
Message 3 of 8
(3,288 Views)
There were no *.viproj files when I did a search on that computer.  Thanks for the tips, and I will do the pasting of the .vi into another.  After I edit the Main .vi how do I save it back as a standalone .vi when it is part of another .vi?  I just need to change one starting address then keep the entire Main with all of it's subs in the original structure.
0 Kudos
Message 4 of 8
(3,278 Views)

You save a VI by going to the File menu and selecting 'Save'. Opening a VI does not change it's location so your question doesn't make much sense.

Do you really have a VI or is it an exe file? If it's a VI, is it inside an llb? an llb is a methode of collecting VIs but the VI should still be editable unless the VIs were saved without diagrams.

0 Kudos
Message 5 of 8
(3,275 Views)

There is a directory that consists of about 15 .vi's and a .txt file where data from programming is recorded.  There is also an .exe file which was compiled from the main .vi

On our computers on the production floor only the .exe exists.  The Main.vi is the only one that I cannot get into, but was able to print and contains the location constant where the data starts to program on the 256.

My question was maybe not stated correctly.  I would like to paste the Main.vi into another .vi so it can be opened but then how do I save the Main.vi not as a sub.vi of the new .vi it is pasted into, but as it's old stand alone Main.vi with the changes?

0 Kudos
Message 6 of 8
(3,268 Views)
You still don't get it. Even if you open the vI from another VI, the original location of the VI does not change. It doesn't matter that you placed it on the block diagram of one or one hundred other VIs. Prove it for yourself. Instead of Save, select Save As and then look at the path. If you want to save the new VI, that's a different story but there is absolutely no reason for you to save the new VI.
0 Kudos
Message 7 of 8
(3,266 Views)
Alrighty I tried it and finally get the concept.  Thanks for the help on this.
 
 
0 Kudos
Message 8 of 8
(3,256 Views)