NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Where to check UUT_RESULT.UUT_STATUS?

Hi guys,

 

I want to check the status at the end of the main sequence in the form of UUT_STATUS. Can I check UUT pass/fail in the cleanup of the main sequence?

0 Kudos
Message 1 of 14
(4,247 Views)

Hi

 

Use a NONE Adaptor for your Pass/Fail step.

 

Regards
Ray Farmer
0 Kudos
Message 2 of 14
(4,242 Views)

Ray, can u explain more. What result I check then?

0 Kudos
Message 3 of 14
(4,226 Views)

I am assuming UUT_RESULT is a container and that UUT_STATUS is a boolean element of that container.

 

Using a <None> Adaptor, insert a Step of type Pass/Fail Test into your sequence.

Set the DataSource of this step from Step.Result.PassFail to UUT_RESULT.UUT_STATUS.

 

Now when you run your sequence you will get a result based on UUT_RESULT.UUT_STATUS.

 

 

Regards
Ray Farmer
0 Kudos
Message 4 of 14
(4,224 Views)

What is the type of UUT_STATUS? There is more then Pass or Fail. There is also error and terminated. Or is it true for Pass and false for Fail?

0 Kudos
Message 5 of 14
(4,220 Views)

Hi,

 

Ok I am confused with what you are asking, maybe you can supply a simple example highlight what you want to do.

 

Regards
Ray Farmer
0 Kudos
Message 6 of 14
(4,217 Views)

I read out a serial number from a device. But I only want to do this when the test of the device passed. So depending on the pass/fail of the total test I want to read/not read this serial number.

0 Kudos
Message 7 of 14
(4,214 Views)

Hi JoVMo

 

Just an idea:

Override PreUutCallback:

Inside the CallBack: Call the PreUutCallback from your model with a simple sequencecall steptype

Check the result from sequencecall steptype and store it in a boolean FileGlobal.

 

Now you may consume this varibale where you like it in your MainSequence

 

 

Hope this helps

 

Regards

 

Juergen

 

 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 8 of 14
(4,193 Views)

If I understand you correctly, the logic may go like this...

 

IF { All Tests Pass }

 

Read Out Serial Number of Device

 

Else

 

{ Do something else }

 

The trick is to determine the condition { All Tests Pass }, the way I would do it, is that if all your tests are in Subsequences you could create a condition builder that only evaluates the step only if ALL the sequences ( called from the MainSequence ) are PASSED.  To do this, create an IF statement in your MainSequence cleanup.  Click on the IF step and click on the 'Condition Builder..' button.  Modify the condition to have it only evalulate if all Sequences pass.

 

Let me know if this an option as I could give more details if necessary...

 

Option 2) Use a callback, such as Process Cleanup.   Modify this to pass in the result of the MainSequence in the parameters of the callback.  This requires a bit more knowledge of your process model and the environment but it is a a bit cleaner and could be used for any sequence you run with a given process model.

 

Thanks,

PH

 

 

 

 

0 Kudos
Message 9 of 14
(4,192 Views)

I like the idea of the callback. Can u explain more. Coz PreUUT handles the steps before testing the main sequence. How can I get the UUT_result out of Pre_UUT? And can I use this too to print a serial number if the test 'pass'?

0 Kudos
Message 10 of 14
(4,183 Views)