02-25-2011 06:32 AM
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.
02-25-2011 10:17 AM
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
02-25-2011 11:10 AM
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.
02-25-2011 12:25 PM
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
02-25-2011 01:31 PM
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...
02-25-2011 04:23 PM
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
02-28-2011 01:10 AM
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.