From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How can a separate thread terminate TestStand execution?

I have a separate thread that is started by calling a DLL from TestStand. It monitors UPS fault bits using a simple DIO. When a fault condition occurs, I need TestStand to terminate execution. How do I accomplish this using TestStand?
0 Kudos
Message 1 of 4
(3,291 Views)

Hi,

Easies way would be to Call the method Engine.TerminateAll

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 4
(3,287 Views)

Within my C# code, which library do I include?

 

0 Kudos
Message 3 of 4
(3,245 Views)
Howdy Jeff -

You can find the Engine.TerminateAll( ) method in the NationalInstruments.TestStand.Interop.API assembly.  It is located in <TestStand 3.5 Dir>\API\DotNet\Assemblies\CurrentVersion.

Have a great day!

Regards,

Andrew W || Applications Engineer
National Instruments
0 Kudos
Message 4 of 4
(3,224 Views)