05-21-2018 07:04 AM
Hi All,
I am having an issue when my executable start it is running fine when the stop button is pressed then the Vi stop however it seam like the debug page that opens ,I have checked under build specification >> advanced that the Allow debugging is not checked and also in the Vi Properties I have now unchecked allow debugging,
How can I close the Front Panel when the stopped button is pressed ( I know it is preferred to use the X as in widows however on my level the button is fine for now )
Normal Running VI(App)
Stopped Vi(App)
All help pointer and critics are appreciated
QMESAR
Solved! Go to Solution.
05-21-2018 09:48 AM
You can use the VI FP.Close invoke node.
https://knowledge.ni.com/KnowledgeArticleDetails?id=kA00Z0000019MDTSA2
05-21-2018 12:15 PM
Thank you very much the link and information.I appreciate this ,I am also looking at the Event method but it is a bit out of my reach at the moment.
Regards
QMESAR
05-21-2018 12:55 PM
Well, this invoke node would be pretty much the last thing your code executes when it is done running, and it doesn't have anything to do with how the user tells the code to finish running. You would put this at the end of your code whether you have a stop button, detect a front panel close, etc.
05-21-2018 01:04 PM
Thank you very much!
I am reading the info on the link you posted and I will try this out for sure to learn from it and also to try and make it work for my need at the moment . As I said at the moment I do not see the leaves from the trees it is overwhelming all the stuff
Regards
QMESAR
05-21-2018 10:58 PM
gergoryj
I have used your method and understood what it is dong ,That is all I needed for now .
many thanks again as a learning curve I would like to learn/ investigate the filter Panel close event that altenbach has informed me , in the next step a few weeks from now .
I appreciate your efforts and reply with the link it was very useful and helpful at this point in time.
05-22-2018 02:18 AM
Don't forget that in an Executable, closing the front panel of the main VI does not stop the process or remove it from memory.
you will need to call the 'Exit LabVIEW' function as well! (Found on the application control palette).
James
05-22-2018 02:25 AM
James.
Thank you very much for that I did not know it ,now I do !
I added the Quit labVIEW
Regards
QMESAR
05-22-2018 06:32 AM
@James_W wrote:
Don't forget that in an Executable, closing the front panel of the main VI does not stop the process or remove it from memory.
you will need to call the 'Exit LabVIEW' function as well! (Found on the application control palette).
NO NO NO NO NO NO NO NO NO NO NO NO NO NO NO NO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! That is 100% WRONG. When all front panels are closed, the application will stop and the runtime engine will close. So DO NOT use the Exit LabVIEW function. And make sure all of your code is actually complete before that last panel gets closed because it will cause an abort (I have many years of experience debugging that issue).
05-22-2018 07:29 AM
crossrulz,
Thank you for your reply ,much appreciated.
Regards
QMESAR