LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to start a second labview programme automatically when first programme is aborted ?

Hi,

I have two independent labview programme. I want to run one programme at first. Second programme should start automatically if first programme is aborted by clicking abort button. Could you please help me in this regard.

Thanks

0 Kudos
Message 1 of 6
(3,447 Views)
Don't click on the abort button. It shouldn't even be visible on the tool bar. Under what circumstances are you using it? Just to stop the VI? That would a bad thing to do.
0 Kudos
Message 2 of 6
(3,441 Views)

Hi,

My main progamme deals with different current sources and volt meter. There are many for and while loops and also flat sequences. I want to introduce  an "emergency stop". By clicking the stop, the programme should be terminated and all the meters should also be stopped.  I make a small programme for stopping the meters. I want to do while aborting the first programme, the second programme should be executed automatically.

Is it possible?

0 Kudos
Message 3 of 6
(3,433 Views)

Would it not be better to close the meters when you close the application and have your application exit gracefully rather than having it start another one?

 

(You can call an executable from within LabVIEW using the System Exec VI but I don't think you need that here)


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 4 of 6
(3,429 Views)
A stop button is significantly different than the abort button so you need to clarify what you are actually doing.
0 Kudos
Message 5 of 6
(3,411 Views)

It sounds like you should refactor your code into a proper state machine with an event driven use interface that can respond quickly to emergency events.  Do a search for "state machine" and read up on the subject. 

LabVIEW Pro Dev & Measurement Studio Pro (VS Pro) 2019
0 Kudos
Message 6 of 6
(3,386 Views)