LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to detect the abort excution button of labview

i want to detect the abort excution button in labview so that i can use its signal 

( if a signal can be generated when the user click non the abort button of labview ) to make one last call to the termination task inside the vi 

0 Kudos
Message 1 of 23
(227 Views)

you can detect the X as panel close? event, but not the abort button afaik. code on rt doesn't support ui events at all, despite your device supports embedded ui and is enabled

Actor Framework
0 Kudos
Message 2 of 23
(221 Views)
One shouldn't rely on the abort button in the LabVIEW application; it is like crashing into a tree to stop a car or using Task Manager to kill an application instead of closing it from its window.

What is the scenario you're trying to solve that prompted this approach?
Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution
0 Kudos
Message 3 of 23
(211 Views)

Don't try and detect it, instead, remove it.

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
Message 4 of 23
(206 Views)

not an application but subvies i want to use the abort button to stop the excution of the running task and then i want to run the terminatoin task after the abort button has been pressed ( tis is the requirnement no my design option )

0 Kudos
Message 5 of 23
(205 Views)
So, are you adding a button to your VI along with Event Structure to detect and handle or your question about the abort button in the menu bar of LabVIEW?
Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution
0 Kudos
Message 6 of 23
(199 Views)

The abort button can be removed from any VI.

If you want to stop your application from a sub-vi, then maybe create a stop button in your sub-vi? 😇

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 7 of 23
(199 Views)

@thesara wrote:

not an application but subvies i want to use the abort button to stop the excution of the running task and then i want to run the terminatoin task after the abort button has been pressed ( tis is the requirnement no my design option )


It's a terrible requirement. I'm just gonna say it. Is there an explanation as to why you would want to do this and possibly leave the station (and more importantly the UUT) in an unknown state?

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 23
(142 Views)

@thesara wrote:

not an application but subvies i want to use the abort button to stop the excution of the running task and then i want to run the terminatoin task after the abort button has been pressed ( tis is the requirnement no my design option )


Out of context, this sounds ridiculous and hints at serious architectural problems. Written by a non programmer.

 

Can you show the full requirements?

 

Anything on the he LabVIEW toolbar is for use during development and debugging. It has no purpose on any program operated by a user.

As a fists step, also define your terminology, for example what do you mean by "stop the execution". Going back to edit mode? Again, edit mode has no purpose for the user.

 

A proper application used by others will be a state machine that runs hen opened and ends when done. All running dependencies will end automatically.

Message 9 of 23
(138 Views)

Hi thesara,

 


@thesara wrote:

not an application but subvies i want to use the abort button to stop the excution of the running task and then i want to run the terminatoin task after the abort button has been pressed ( tis is the requirnement no my design option )


You already have been told NOT to use the "stop execution" button in the VI menu, but still you ask for it.

 

And you have been told to keep your discussion in one place so ALL have the same information about your questions and requirements, but again you started a new thread for the very same problem!

 

It seems to me you ask us questions but refuse to learn from the answers…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 10 of 23
(90 Views)