ni.com checkout is currently experiencing issues.

Support teams are actively working on the resolution.

NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Evaluate expression as post-step

Solved!
Go to solution

Hi

 

I need your support;

 

I realize a custom step type;

I insert in a post step a dll execution;

I need to execute some manipulation on the data collected;

I insert the right expression in the post-expression;

now to modify it in the newer release of my step type, I set the TS.PostExpr as Shared; but in this case seems not possible to disable this property;

 

my target is to execute the post-expression content in a SubStep post-step;

is it possible?

May you provide me any examples?

 

Thanks

Paolo

 

 

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

You don't need to use the post expression at all. Just pass the sequence context into your substep and call:

 

seqContext.AsPropertyObject.EvaluateEx() on it with whatever expression you want to evaluate.

 

Hope this helps,

-Doug

0 Kudos
Message 2 of 5
(3,093 Views)

I need to insert 2 sub-steps to execute it.

Is it right?

Is it possible to execute it in 1 sub-step, without any additional variable to store the object reference?

 

Thanks

 

Paolo

0 Kudos
Message 3 of 5
(3,089 Views)

I'm not sure why you would need two substeps. If you are just using the activeX adapter to call the TestStand API, you might want to instead write a code module and call that since that way you will then be able to have a significant amount of code in one stubstep.

 

-Doug

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

yes

 

you are right

0 Kudos
Message 5 of 5
(3,058 Views)