NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get the step data for a specific step into a C# code module?

Hi,

 

How to get the step data for a specific step into a C# code module?

 

I am using the ‘TestStand User Interface’, when the sequence is in breakmode I want to get the step data for a double clicked step.

When a step is right clicked in the execution pane and ‘Show Step in Variables’ is selected, the current step is highlighted into the variable pane. I want to have all this data into a C# code module.
The action should be triggered by double clicking on a step in the execution pane.

 

Does anyone know if this is possible?

 

Any info will be highly appreciated.

 

Thanks in advance

 

0 Kudos
Message 1 of 2
(2,869 Views)

Hi

 

If there is Step variable "XY" as Number 

I would access it via the SequenceContexts PropertyObject

 

data = myContext.AsPropertyObject.GetValNumber("Step.XY",0);

 

hope this helps

 

 juergen

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 2 of 2
(2,861 Views)