LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to detect the abort excution button of labview

s function= sytem function :

basically something that works like this 

one block but has three tasks inside :

in the first call we excute the starting task (do something like initilization) just one time 

then we excute the running task (run forever) only stop if we hit the abort excution button 

after that we call the termination task that will only excute one time than the program finishes 

 

0 Kudos
Message 21 of 32
(481 Views)

Hi thesara,

 


@thesara wrote:

one block but has three tasks inside :


So you did follow my suggestion as written here?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 22 of 32
(478 Views)

@alexderjuengere wrote:

stop-snippet.png


This is dangerous in the hands of someone as experienced as the OP because they don't yet understand what the abort button does and are highly unlikely to tie up the loose ends before aborting.

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 23 of 32
(454 Views)

@billko wrote:

This is dangerous in the hands of someone as experienced as the OP because they don't yet understand what the abort button does and are highly unlikely to tie up the loose ends before aborting.


yes. it is not going to magically stop or unload a dll

0 Kudos
Message 24 of 32
(419 Views)

If your teacher really want to use the "Toolbar Abort button" i'd Customize Windows apprearence, hide the Toolbar and make a fake one with a red button that just stops your loop. 🙂

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
Message 25 of 32
(394 Views)

Maybe plug everything into one outlet and label the abort button accordingly!

 

altenbach_0-1764606318991.png

 

Message 26 of 32
(379 Views)

@Yamaeda wrote:

If your teacher really want to use the "Toolbar Abort button" i'd Customize Windows apprearence, hide the Toolbar and make a fake one with a red button that just stops your loop. 🙂


This is the answer!!

---------------------------------------------
Former Certified LabVIEW Developer (CLD)
0 Kudos
Message 27 of 32
(352 Views)

@Frozen wrote:

@Yamaeda wrote:

If your teacher really want to use the "Toolbar Abort button" i'd Customize Windows apprearence, hide the Toolbar and make a fake one with a red button that just stops your loop. 🙂


This is the answer!!


It is, so here's your homework finished. An exact replica of the abort button on a pixel-perfect imitation of the toolbar. This is what your teacher asked for.

Certified LabVIEW Architect
Message 28 of 32
(339 Views)

@thols wrote:

@Frozen wrote:

@Yamaeda wrote:

If your teacher really want to use the "Toolbar Abort button" i'd Customize Windows apprearence, hide the Toolbar and make a fake one with a red button that just stops your loop. 🙂


This is the answer!!


It is, so here's your homework finished. An exact replica of the abort button on a pixel-perfect imitation of the toolbar. This is what your teacher asked for.


 

Since edit mode seems to be part of the required "user experience" here (sigh!), once the fake abort button is pressed, the real toolbar will reappear and we suddenly have two. (I would actually take a screenshot of the toolbar, place it on the upper left of the front panel, and overlay various transparent buttons.) The code could be implemented as a state machine that runs when opened and goes back to an idle state (i.e. not edit mode) when abort is pressed, making the theatrics complete.

 

Chances are high that if they want a custom abort button, they also want the rest of the toolbar, such as a run button 😄

 

IMHO, this entire thread is just absurd.

 

0 Kudos
Message 29 of 32
(274 Views)

@altenbach wrote:

@thols wrote:

@Frozen wrote:

@Yamaeda wrote:

If your teacher really want to use the "Toolbar Abort button" i'd Customize Windows apprearence, hide the Toolbar and make a fake one with a red button that just stops your loop. 🙂


This is the answer!!


It is, so here's your homework finished. An exact replica of the abort button on a pixel-perfect imitation of the toolbar. This is what your teacher asked for.


 

Since edit mode seems to be part of the required "user experience" here (sigh!), once the fake abort button is pressed, the real toolbar will reappear and we suddenly have two. (I would actually take a screenshot of the toolbar, place it on the upper left of the front panel, and overlay various transparent buttons.) The code could be implemented as a state machine that runs when opened and goes back to an idle state (i.e. not edit mode) when abort is pressed, making the theatrics complete.

 

Chances are high that if they want a custom abort button, they also want the rest of the toolbar, such as a run button 😄

 

IMHO, this entire thread is just absurd.

 


Yes, OP can do what I did but replicate the complete toolbar and have it run on open. 

 

But you are right, this is absurd.

Certified LabVIEW Architect
0 Kudos
Message 30 of 32
(207 Views)