NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

getting the string value of a step in Test stand 3.1

Hi All , can anyone advise whicn control I use to retrieve the string value of the STEP name using v3.1.
It was the sequence context in earlier versions.
thanks dht
0 Kudos
Message 1 of 8
(3,650 Views)
I'm assuming you want the step's name as a string? Inside TestStand there is the NameOf function that can be used with any TestStand object. i.e.

Locals.mystring = NameOf(RunState.PreviousStep) or something like this� You can access this function outside of TestStand by using the PropertyObject.Evaluate() method.

You could also use the TS API (in TS or in LV or someplace else) to start with a Step object, turn it into a PropertyObject, and then get its property �Name� which will return the string name of the step.

Third option off the top of my head is to explore the Hidden Properties of TestStand, that you have to enable by going through the Configure menu. There�s a knowledge base about it somewhere on the NI website if you�re curious. If you remember browsing fo
r the step name via a sequence context/expression browser before now, it was probably hidden properties that you were using.

Cheers!

Elaine R.
www.bloomy.com
Cheers,
Elaine R.
www.bloomy.com
0 Kudos
Message 2 of 8
(3,650 Views)
thanks elaine for the tips i shall certainly follow them up
dht
0 Kudos
Message 3 of 8
(3,650 Views)
Hi dht,

try this if you are you CVI

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=5065000000080000001CEA0000&UCATEGORY_0=_8_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=Step+Name&USEARCHCONTEXT_QUESTION_S=0

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 4 of 8
(3,650 Views)
hi Ray , Im actually using Labview, I can get the step name using the property mentioned in the question.It is however described as Legacy in Labview, I guess my real question is is there a better preferably simpler method in TS3.1.
For instance I,m grabbing the high and low test limits by step properties, but dont seem able get the step name.
thanks dht
0 Kudos
Message 5 of 8
(3,650 Views)
Hi dht,

The mechanism the same as for CVI but try this example that has already been posted.

http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000011D60000&USEARCHCONTEXT_CATEGORY_0=_8_&USEARCHCONTEXT_CATEGORY_S=0&UCATEGORY_0=_8_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=How+get+the+name+of+a+TestStand+step+in+LabView&USEARCHCONTEXT_QUESTION_S=0

There are other posted examples, I know I posted a LabVIEW and an API call examples.
This should help.
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 6 of 8
(3,650 Views)
Hi ray , thanks for the link, it works fine , but it was in fact the one that prompted the question. - That if you were to write this code today using the LV 7.1 palette that you would be using the legacy folder, and as such I assumed that there was a different method applicable to LV 7.1 and TS 3.1 . Sorry if I missed something but I'm very much feeling my way around both packages.
thanks dht
0 Kudos
Message 7 of 8
(3,650 Views)
Hi dht,

The VI's may have changed in the palette but the underlying TS API calls are still the same.

Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 8 of 8
(3,650 Views)