NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand sequence hierarchie

Hello!
I would like to know if there is a way to get the index position of a
Step related to its absolute position, i.e. Is it a step in a subsequence or
a step in the Main sequence? I need to display an hierarchical view of each
step and substep in my sequence file.

regards.

--
---------------------------------------------------------------------
Guillaume Perron
Concepteur de Logiciel/Software Designer
Averna Technologies
19 Le Royer Ouest Suite 400
Montréal
H2Y 1W4
http://www.averna.ca
0 Kudos
Message 1 of 4
(4,194 Views)
Guillaume,

You could use some of the RunState subproperties.

The RunState.CallStackDepth will tell you the level if its 0 its the top level.

The RunState.StepGroup will tell you if it Setup, Main or Cleanup.

If its not the top level then RunState.Caller will exist. The first RunState will relate to the current sequence being executed. As you flow down the tree via the Caller subproperty you will have access to to each levels Steps in each Sequence.
i.e. If a ProcessModel is being used and a sub Sequence is running from the Main Sequence, then RunState will relate to the Sub Sequence, RunState.Caller.RunState will exists and relate to the MainSequence and RunState.Caller.RunState.Caller.RunState will relate to the ProcessModel.

RunState.PreviousIndex, RunState.StepIndex a
nd RunState.NextStepIndex are the values you are looking for.

Regards
Regards
Ray Farmer
0 Kudos
Message 2 of 4
(4,194 Views)
Ray:

I'm still confused. How do I get the "Run State Properties" as you mention
in your response? What do you mean by "You could use some of the RunState
subproperties" Where is this?? How do I get this?

Your help is greatly appreciated.

-Tom

"Ray F" wrote in message
news:101-506500000005000000FE180000-982303670000@quiq.com...
> Guillaume,
>
> You could use some of the RunState subproperties.
>
> The RunState.CallStackDepth will tell you the level if its 0 its the
> top level.
>
> The RunState.StepGroup will tell you if it Setup, Main or Cleanup.
>
> If its not the top level then RunState.Caller will exist. The first
> RunState will relate to the current sequence being executed. As you
> flow down the tree via the Caller subproperty you will hav
e access to
> to each levels Steps in each Sequence.
> i.e. If a ProcessModel is being used and a sub Sequence is running
> from the Main Sequence, then RunState will relate to the Sub Sequence,
> RunState.Caller.RunState will exists and relate to the MainSequence
> and RunState.Caller.RunState.Caller.RunState will relate to the
> ProcessModel.
>
> RunState.PreviousIndex, RunState.StepIndex and RunState.NextStepIndex
> are the values you are looking for.
>
> Regards
0 Kudos
Message 3 of 4
(4,194 Views)
Hi,

Sorry for the delay in response to your comment. Been on holiday.

You can view the RunState properties in the Expression Browser. Scroll to the bottom of the Variable/Properties list and you will see the RunState. Expand this to see whats available (statically).
In the User Manual in Chapter 8 (8-4), there is a break down of the individual items.

To find out whats values are held by these properties - for example, the CallStackDepth, in LabVIEW you would use the GetValNumber method passing the lookup string 'RunState.CallStackDepth'. In CVI you would use 'TS_PropertyGetValNumber(propObj, &errorInfo, "RunState.CallStackDepth", 0, &stackdepth);'

Its a good idea to look at the examples supplied of visit NI website. The
re are tutorial and more examples.



Hope this helps
Regards
Ray Farmer
0 Kudos
Message 4 of 4
(4,194 Views)