NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Post action

Hi All

Please clarify me, why I have problem with executions "Post Action" for DLL adapter step sometimes. The problem is:
1. Sequence file has more steps
2. Has more steps, which call function from external DLL
3. Each step (p.2) is call function from DLL and has "Post Action"
4. Sometimes "Post Action" for steps (p.3) don't executing

Regards
--Sergey
0 Kudos
Message 1 of 2
(3,140 Views)
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
0 Kudos
Message 2 of 2
(3,140 Views)