NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How to retain previous step value?

Hi All,
 
I am having a small doubt. I have add.vi file in which I am having two controls. Suppose they are named as "A" and "B".  From Test Stand, in a sequence file, in first step I will pass only "A" value. In second step I will pass only "B" value for the same add.vi file. In second step I will not pass "A" value. What I want is, the VI file should read both "A" value from first step and "B" value from second step. Is it possible with the Test Stand? Is there any other possibility to achieve the same?
 
Kindly help me in this regard....Thanks in advance....
 
 
Regards,
Nagaraju
0 Kudos
Message 1 of 6
(3,874 Views)

Hi Nagaraju,

This is not directly possible.  However, there are myriad ways to achieve the end result.  I would recommend saving A as a Station or File Global, and then passing both A and B at the same time, when you would be otherwise executing the second step. 

Cheers,

David Goldberg
National Instruments
Software R&D
0 Kudos
Message 2 of 6
(3,847 Views)
I'm a bit confused with what you are trying to do.  What do you mean by retaining the previous value.  Suppose your parameters are A and B.  What values do you want your controls to be in Step 1?  What values do you want them to be in Step 2?  Are you wanting to use the default values?  If you want to use the same value in two steps, you could always use a Local variable (it doesn't seem like you need a Global).  If you could clarify your question a bit, I'd be happy to help you.

Allen P.
NI
0 Kudos
Message 3 of 6
(3,841 Views)

Hi David,

Thank you very much for your reply.....

Hi Allen,

In first step I will give "A" value as 100 and "B" value is default. Now in second step I will uncheck the default check box for "A" and will give "B" value as 100. What I need is, in the second step I will not give any value to "A". But still it should retain the previous step value 100 to "A".

I think you understood something. 

David, I will try the method which is suggested by you... Allen thank you and looking forward for your suggestion tooo....

Regards,
Nagaraju
0 Kudos
Message 4 of 6
(3,839 Views)
You are going to have to store the input of the first step somewhere, and pass it in again.  You should probably do this with a Local variable.  Pass Locals.A into both steps, and set it with a pre-expression in the first step.

Allen P.
NI
0 Kudos
Message 5 of 6
(3,829 Views)

Hi Allen,

Thank you very much for your suggestion. Let me try it out.

 

Regards,
Nagaraju
0 Kudos
Message 6 of 6
(3,820 Views)