Hello Sergev -
A Post Action for any step in TestStand can be treated like a built-in logical branch. After a step executes, you can choose to "On Pass" / "On Fail" jump to a different step or even Terminate an execution.
The catch is, if you are using Action test steps (as is sometimes the case when programming with DLLs) there is no 'Passed' or 'Failed' status returned on the step by default. The step will complete execution with a status of 'Done'. In situation like this, you can either use some sort of custom Post Action, i.e. if your DLL sets a local variable, check the variable to determine where to jump to. Or look into setting the status of the step/ return value from inside your DLL's functions.
Another common situation is that even when using a
Pass/Fail step or Numeric Limit step, the DLL has not set the return values or status paremeters correctly and so is not sending data back to TestStand for status-checking. You may want to look at a few of the TestStand shipping examples concerning DLLs and see some of your options.
(<TestStand>/Examples/Demo/C/computer.seq)
Let me know if you have a question about a particular aspect of Post Action or setting values from inside DLLs and I will try and give you a better answer.
-Regards
Elaine R.
National Instruments
http://www.ni.com/support