NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

custom step description

Solved!
Go to solution
When creating a custom step type, what do I need to enter in the "Step Description Expression" box to display the "operation" and "route(s) to connect/disconnect" the programmer has entered in the switching tab properties of each step? This custom step is only switching so i don't want to have to open the properties dialog and look at each step to find out what it is switching. Thanks, Jason
0 Kudos
Message 1 of 2
(2,968 Views)
Solution
Accepted by topic author jason1

Hello Jason,

 

In the "Step Description Expression" box you could do something like:

  "Operation: " +

(
    Step.TS.SwitchEnabled ?
    (
        Step.TS.SwitchOperation==1?
            "Connect " + " | Route(s): " + Step.TS.RouteGroupConnect:
            (
                Step.TS.SwitchOperation==2?
                    "Disconnect"+ " | Route(s): " + Step.TS.RouteGroupDisconnect:
                    (
                        Step.TS.SwitchOperation==3?
                            "Disconnect All":
                            (
                                Step.TS.SwitchOperation==4?
                                "Connect/Disconnect" + " | Route(s) Connect: " + Step.TS.RouteGroupConnect + " | Route(s) Disconnect: " + Step.TS.RouteGroupDisconnect:
                                    "Error"

 

 

                            )
                    )
            )        
    )
    :"Switching not enabled"
)

 

 

It is a bit confusing because SwitchOperation is a number that corresponds to an operation so that's why we have the nested conditional statements.  

 

Let me know if you have any questions.

Kristen
National Instruments
Message 2 of 2
(2,947 Views)