From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, 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 Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
rimfire44

Change step color based on run mode.

I'm frequently missing that steps are skipped when running sequences. It would be handy to see a steps' background color change when the run mode has changed to skipped or forced pass/fail.

3 Comments
dug9000
NI Employee (retired)

Newer versions of TestStand change the foreground color for skipped steps by default. You can customize the behavior yourself to get exactly what you are asking for by editing the step list configurations for the step list view (using the context menu option: Edit Step List Configurations).

 

For the viewing file configuration you can set the background color using an expression like the following:

 

Step.TS.Mode == "Normal"?
     tsDefaultColor:
     Step.TS.Mode == "Skip"?
         tsGray:
         Step.TS.Mode == "Pass"?
                tsDarkGreen:
                Step.TS.Mode == "Fail" ?
                       tsRed:
                       tsDefaultColor

 

For the the execution view you can use an expression like the following:

 

Step.GetRunModeEx(RunState.Execution) == "Normal"?
tsDefaultColor:
     Step.GetRunModeEx(RunState.Execution) == "Skip"?
          tsGray:
          Step.GetRunModeEx(RunState.Execution) == "Pass"?
                tsDarkGreen:
                Step.GetRunModeEx(RunState.Execution) == "Fail"?
                       tsRed:
                       tsDefaultColor

 

NOTE: For versions of TestStand prior to TestStand 2014 there might be some issues with using tsDefaultColor, you might have to use a specific color instead.

 

Hope this helps,

-Doug

rimfire44
Member

I'm running TS2013 with the factory default settings and I don't see the color change behavior. Is there something I need to configure in the station options or sequence editor options to enable this?

WireWeaver
Active Participant
Status changed to: Already Implemented
 
https://www.linkedin.com/in/trentweaver