NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I programmatically get an Action VI has been executed by Step Into (F8) or not?

I need to parametrize the execution of an Action VI depending on whether the step has been executed by Step Into (F8) or not.

 

I've tried by using InInteractiveMode Property (Read Only) but without success... I haven't understand whether there's a property which returns a step has been executed by Step Into (F8) or not.

 

Thank you for your help.

0 Kudos
Message 1 of 7
(3,375 Views)

Step into is not the same thing as running an interactive execution, it is just a debugging feature for stepping through the execution of a sequence one step at a time. I do not think there is currently an API for determining whether or not a step into is being done. What exactly are you trying to do? Please help us understand your use case better.

 

Hope this helps,

-Doug

0 Kudos
Message 2 of 7
(3,370 Views)

Hi Doug,

 

Thank you for your answer.

 

What I need to do by knowing whether a step (Action VI) has been entered by Step Into (F8) or not is to make the VI running in two different ways according to that:

 

1) Step Into (F8) has been used to enter the VI: the VI behaves in mode 1.

2) Step Into (F8) has not been used to enter the VI: the VI behaves in mode 2.

 

Thank you for your help.

0 Kudos
Message 3 of 7
(3,364 Views)

In order to better understand why someone would want to do this, can you explain in more detail what you are trying to accomplish by having the VI run differently when step into is done versus step into not being done. Why would you want to run your VI differently in this case?

 

-Doug

0 Kudos
Message 4 of 7
(3,361 Views)

Hi Doug,

 

This is because when I step into the VI - and before running it - I'd like to change the values passed as step variables form TestStand.

 

That's why I was thinking to get inside the VI whether the Step Into was done and consequently programmatically change the step varialbles into Test Stand sequence file - by clicking on a "Save Step Variables" control - and then running the VI task by clicking on a "Run Step" control...

 

Maybe there's a better way...

 

0 Kudos
Message 5 of 7
(3,358 Views)

I think you can already do something similar without adding any special code to your VIs. I think you can just show the front panel of the VI after stepping into it from TestStand and interactively change the values passed in before running it. Or am I misunderstanding what you are trying to do?

 

Hope this helps,

-Doug

0 Kudos
Message 6 of 7
(3,339 Views)

If you step into the VI but before actioning the VI's debug buttons, switch to the front panel and change the control to the required values. Then you can continue debugging the VI.

 

Also you can do the same in TestStand, before stepping into the VI, change the parameters about to be passed to the VI. When done, step into the VI with you new values.

 

 

 

Regards
Ray Farmer
0 Kudos
Message 7 of 7
(3,305 Views)