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: 

TS.ld Field Definition and Usage

Solved!
Go to solution

In the property browser is a filed TS.lD and has a value (string) that is not editable. I believe it is an ID but an not sure and why it is used.

 

Does anyone have any insite to this vauriable and how I can use it?

 

thanks

0 Kudos
Message 1 of 5
(3,159 Views)

From the TS help:

UniqueStepId Property (Read Only)
Syntax
Step.UniqueStepId

Data Type
String

Purpose
Returns an identification string unique among all steps that have been or will be created by TestStand.

Remarks
An example of a UniqueStepId is ID#:aXPIZYIPFEWM/Jsuxx0FAD.

 

 

 

I have personally never used it although if you really wanted to you could somehow reference the step that way.

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 5
(3,158 Views)

The step ID is useful when identifying a step in an expression. If the name is used to identify a step, the expression can become invalid if the name changes.  Also, the ID is always unique, so you won't run into issues if you have multiple steps with the same name. The example expressions show how each case is used:

 

Identifying by name 

RunState.Sequence.Main["Statement"]

 

Identifying by ID

RunState.Sequence.Main["ID#:acH/LPN0okmeYnUyPTTDqB"/* Unique Id of 'Statement' */]

 

Note also if you create an expression in the expression browser which references a step in this way, you will be asked which method you wan tto use to identify the step:

1.png

 

Basically, IDs are more robust, but harder to read.

Al B.
Staff Software Engineer - TestStand
CTA/CLD
0 Kudos
Message 3 of 5
(3,152 Views)

TS Help is mentioned.

 

Where is it located and does it define all the TS.SData.xxxxxx flags?

 

thanks

0 Kudos
Message 4 of 5
(3,087 Views)
Solution
Accepted by topic author CarmineS

Hello CarmineS,

 

The TestStand help article is located below:

 

UniqueStepId Property (Read Only)

http://zone.ni.com/reference/en-XX/help/370052J-01/tsapiref/reftopics/step_uniquestepid_p/

 

And for your records a copy of the TestStand help is located online below:

 

TestStand Help

http://zone.ni.com/reference/en-XX/help/370052J-01/

Regards,

Shawn S. | NIC
Instrument Driver/IVI PSE
National Instruments
0 Kudos
Message 5 of 5
(3,066 Views)