NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Stop a labview code module call by testand in Labview Simple IHM

Solved!
Go to solution

Hello !

I'm trying to program a sort of software emergency shutdown.
I am developing an application which uses teststand and labview.
LW codes module are called by teststand. The IHM is made under labview (from the NI simple IHM example).
On this GUI I called the commands "commandkind_terminateAll" / abort ect ... but none allow to exit an LW code module!

For example: if I put a timer of 30 seconds in a code module called by a step, the terminate/abort etc commands wait the end of the VI (30 seconds) before stopping everything.
I want the vi to be aborted immediatly and the cleanup to be done. Is there a solution?

thanks in advance

0 Kudos
Message 1 of 9
(1,236 Views)

See Asynchronously Starting and Stopping a VI in TestStand

-------------------------------------------------------
Applications Engineer | TME Systems
https://tmesystems.net/
0 Kudos
Message 2 of 9
(1,233 Views)

I suggest you use the terminal monitor in your VI, available in the TestStand palette

0 Kudos
Message 3 of 9
(1,208 Views)

it's not what i want to do (or i have not understand  !)

I have to stop a vi Launch in a séquence. Is not a an asynchronous VI it's juste a code module execut ing on testant a each step it's necessary.

I have to kil all the step and code modul who are running when somebody hit the urg button on the IHM.

0 Kudos
Message 4 of 9
(1,204 Views)

I'm looking this vi of the TS palette ....i dont relay understand how to sue them but i will certainly find example!

 

0 Kudos
Message 5 of 9
(1,197 Views)

Hi, 

 

Please see the link below for an example using Termination Monitor in LV Code module called from TS. 

 

Regards, 

Anand Jain

NI

 

Termination Monitor - LabVIEW - NI

0 Kudos
Message 6 of 9
(1,181 Views)

yes thank you,

I have find this yesterday after you give me the advice about using this TS vi. I tried to understand this night...

I understand that I have to create a monitoring of TS activity under my module code. So I create a vi in my module code that I kill if TS has gone into stop mode.

I was planning to do this from the IHM so I didn't understand...and I don't know how the tools to kill a vi react when you compile the project...

I wil try this now and ask other question when it work !!

tanhk you!

0 Kudos
Message 7 of 9
(1,163 Views)

i nearly successed . ..

the code modul is stop with the labview command STOP. but in testand i get this prompt :

 

vincent69_0-1688038484927.png

i'm looking for but if you have an idea ! tahnk you

 

0 Kudos
Message 8 of 9
(1,118 Views)
Solution
Accepted by topic author vincent69

DONE ! it's workin very well !

Thank you so much for the help ! 

In cas somebody fin this post, the solution : 

IN MY LW Code module :

vincent69_0-1688046844600.png

IN my IHM :

vincent69_1-1688046909063.png

In TS properties of the step who call the code modul / properties / Ingnor Run-Time Errors

0 Kudos
Message 9 of 9
(1,103 Views)