06-28-2023 08:20 AM
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
Solved! Go to Solution.
06-28-2023 08:44 AM
See Asynchronously Starting and Stopping a VI in TestStand
06-28-2023 10:18 AM
I suggest you use the terminal monitor in your VI, available in the TestStand palette
06-28-2023 10:24 AM
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.
06-28-2023 10:41 AM
I'm looking this vi of the TS palette ....i dont relay understand how to sue them but i will certainly find example!
06-28-2023 01:05 PM
Hi,
Please see the link below for an example using Termination Monitor in LV Code module called from TS.
Regards,
Anand Jain
NI
06-29-2023 12:11 AM
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!
06-29-2023 06:39 AM
i nearly successed . ..
the code modul is stop with the labview command STOP. but in testand i get this prompt :
i'm looking for but if you have an idea ! tahnk you
06-29-2023 08:57 AM
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 :
IN my IHM :
In TS properties of the step who call the code modul / properties / Ingnor Run-Time Errors