07-15-2015 09:05 PM - edited 07-15-2015 09:07 PM
Hi everyone, I've been trying to understand how to do it, I have 2 VIs, but firstone is LOGIN, and if this Login is correct then open another VI called TESISFINAL, I don't know if it'll work ok doing it in this way.
Or what I have to do for create an executable that first Open LOGIN and if it's correct then open TesisFinal, don't open 2 VIs at the same time.
Solved! Go to Solution.
07-15-2015 09:31 PM
You have to decide what you want to happen. When the user runs your program (just for the moment, let's pretend it is called "My Program"), what action do you want to have happen? Should it look, to the user, like the "Login" code is running? If so, then that's what you specify in your Build. On the other hand, you might want "My Program" to ignore Login and start running TesisFinal -- this is also OK, you just need to decide and then construct the Build to run whichever piece of code you want to run.
The usual way to do this is to have one VI be the "Starting VI", and have it call on all the other VIs that need to participate in the Project. Is this how you have constructed your code? If so, then go ahead and construct the Executable, specifying the VI that starts running first.
Bob Schor
07-15-2015 09:34 PM
Where I chose what VI starts first? I have to change something in the " Ladder" or something like that?
07-15-2015 09:39 PM
Why does your Project include the NIReport library and LVClass? Also, I strongly recommend you create an Icon (using the Icon Editor) for TesisFinal -- it will dramatically improve the readability and "understandability" of your routine "login" (by getting rid of that big Question Mark).
Bob Schor
07-15-2015 09:47 PM
Yes, I'm doing it, change icon for TesisFinal, but it doesn't help me to chose LOGIN to starts first.
07-15-2015 09:48 PM
Google "Build LabVIEW Executable" to learn about the Application Builder that is part of the LabVIEW Project.
BS
07-15-2015 09:50 PM
I was watching some videos on YOUTUBE haha but Google always is the answer to everything.