NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
paolo75
Posts: 4
0 Kudos
Accepted Solution

Evaluate expression as post-step

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

 

 



Active Participant
dug9000
Posts: 1,509
0 Kudos

Re: Evaluate expression as post-step

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

Member
paolo75
Posts: 4
0 Kudos

Re: Evaluate expression as post-step

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

Active Participant
dug9000
Posts: 1,509
0 Kudos

Re: Evaluate expression as post-step

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

Member
paolo75
Posts: 4
0 Kudos

Re: Evaluate expression as post-step

yes

 

you are right

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page