NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Determine if tracing is enabled

When Tracing is enabled on our test stations, our test times are drastically longer.  This is expected.  We normally run with tracing disabled, but sometimes we enable it while testing or debugging, and then forget to turn it off again.

We're looking for a way to check (ideally in PreUUTLoop) whether tracing is enabled, and display a warning message box if it is.

RunState.Tracing doesn't seem to indicate anything useful.  I can't find the Tracing setting anywhere in the sequence context, or in the Model Options within the process model.

Does anybody know where that setting is stored, and how it can be accessed at run-time?

We're using a mix of TestStand 2 and TestStand 3.1 installations at this time, so we need answers for both platforms.

- Ron

0 Kudos
Message 1 of 3
(3,217 Views)
Ah... in the TestStand Engine API, Engine.TracingEnabled() property seems to be what I'm looking for.

Weird, I'm sure I tried that before and it didn't work...

- Ron

0 Kudos
Message 2 of 3
(3,214 Views)

We struggled with the execution times with tracing enabled on TS 3.0 and 3.1.  It is most prevelent when there is a loop running, you can see the exectution slow down as the loop runs longer.

Good new is that this appears to be fixed in TS 3.5.

Mike

0 Kudos
Message 3 of 3
(3,196 Views)