03-11-2015 06:11 AM
Hi all, just an easy question for you 🙂
i have a problem...i'm making a VI that change in multiple excel files ; with ,
I have a little problem...i have to push more times the button that executes this process 😞 why? if i put highlight exec. it works, it works also if i put a breakpoint in the middle of the 2 for loops (but they're not in parallel)
could you help me please?
i'm using labview 2009
PS: could you tell me also in which way i can close all the VI and labview platform stopping my VI by button in an exe file? 🙂
many thanks
03-11-2015 06:35 AM
The issue that you are observing is likely due to your controls' block diagram terminals being outside of the Event Structure. They are being read first, then the Event Structure begins its wait for you to press a button. When you press "GO!" it executes its diagram, but its input tunnels contain the old values (for instance, the first time, they are empty paths).
What you could do is place the control terminals inside the relevant diagram so the latest values get read and used.
Also, you do not need the Wait Until Next ms Multiple - you can use the Event Structure's built-in wait / timeout only.
As for closing out of the application instance in a built executable, there should be a function "Quit LabVIEW" on the Programming -> Application Control palette.
03-11-2015 06:41 AM
Quit LabVIEW" on the Programming -> Application Control palette ---> it works! thanks 🙂
anyway my wait until next ms multiple and all controls are outside the event case...are inside the while loop because i would change them without close and reopen the VI
03-11-2015 06:51 AM
Sorry for before 🙂 putting controls inside the GO event it works 🙂 many thanks
03-11-2015 07:03 AM
VItan wrote:
As for closing out of the application instance in a built executable, there should be a function "Quit LabVIEW" on the Programming -> Application Control palette.
No. Do not do that. That function is like hitting the Abort button in the LabVIEW environment. Close the front panel and the LabVIEW Run-Time Engine will shut down when the code stops executing. You can close the front panel with an invoke node.