DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Exit a Script

Hello,

 

I am trying to exit a script when a certain condition is met.

 

So

 

IF Var1 = "Exit"

    Quit()

Else

Keep Running.

 

I guess I would be looking to something similar to a Kill function which when called would terminate the current script and any other script which was call the current process.

 

Any Ideas? 

Tim
0 Kudos
Message 1 of 3
(6,318 Views)

Not sure if this function is still available but how about trying AutoQuit

0 Kudos
Message 2 of 3
(6,312 Views)

Hi Guys,

 

  AutoQuit(Msg) is still available, though it no longer shows up red in the SCRIPT editor since about DIAdem 11.  It's not ideal for function libraries or user commands or any code that goes behind a custom icon or menu in the DIAdem environment.

 

But I still use it all the time,

Brad Turpin

DIAdem Product Support Engineer

National Instruments

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