NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

can I add a serial number to a selected single pass in Test Stand

Solved!
Go to solution

Hi, I have a number of boards that I am testing that are either marginal passes or marginal failures and would like to be able to re-test the failures by running the selected steps/single pass test and appending the result to the existing result sheet under the same UUT serial number (unfortunately the whole test take 20 mins so it would be much quicker if I could just re-test the test that failed).

 

I know that you can append results under the same serial number but do not know if you can add a single test to that same result.

At least it would be good if I was able to store the single test result using the UUT serial number

 

Thanks

 

Chris

0 Kudos
Message 1 of 11
(5,165 Views)

Hi,

 

You can select to the test Step(s) you wish to run then use the menu option Execution | Run Selected Tests Using | Test UUTs.

 

Is this the sort of thing you wish to do?

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 2 of 11
(5,158 Views)

Hi Ray,

Unless I'm in the wrong place, I only have the option - Run Selected Steps Using --- Single Pass and this doesn't allow me to enter a serial number.   see attached picture

 

0 Kudos
Message 3 of 11
(5,139 Views)

Hi,

 

In the SequentialModel.seq for Test UUTs you will need to change the Sequence Properties.

 

Copy the SequentialModel.seq from the NI folder to the User folder. (Dont modify the files in the NI folder)

 

Launch SeqEditor and load the SequentialModel.seq file from the \Conponents\User\ ... folder not the NI folder.

Select Test UUTs. View the Test UUTs Properties.

 

In the Test UUTs Properties Dialog, select the Model Tab.

 

Enable the control 'Allow Interface Execution of Entry Point'

 

close the Properties Dialog

save and close SequenctialModel.seq

 

Load your Sequence File and select a Test Step.

Now you should have both Test UUTs and Single Pass available when you select 'Run Selected Test Using .....'

 

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 4 of 11
(5,128 Views)
If you were doing this a lot, and wanted to do some programming, or had too much time on your hands, you could make the first pass and the re-test steps both automatically go into the same report file. You'd have to accumulate a list of the failed steps and check for it at the end of the sequence, then do a second pass of the sequence with all of the steps - except the retest steps - marked as Skip. So you'd need some code to do the evaluation and generate a list of retest steps (this could be done per step with an Engine Callback, see the TestStandReferenceManual.pdf Table 3-4 for what poststep options to use, or maybe with some routine at the end, but that would be harder code), a GoTo step at the end to jump to the top (only once), some code that is a Precondition or a PreStep Callback that skips non-retest steps based on the list.

If you put all this code in your sequence (the client) then the second pass data would automatically be appended. If you put the code in the ProcessModel it would work for all your sequences without modifying them at all, but there'd need to be an extra piece of code that would append the retest data to the first pass data. You could also put in some dialog to notify and ask the operator if he wanted to retest, do multiple retests, etc.

 An alternative to doing a full second pass that skipped non-retest steps would be to use a postStep GoTo in each step, and an array of retest steps in Locals or somewhere, and just jump/GoTo from one retest step to the next during the second pass.

These are all intermediate to advanced. There might be a way to work it out using the step properties like Precondition and PostStep but I can't quite see it at a glance.

cc
0 Kudos
Message 5 of 11
(5,113 Views)

Hi Ray,

 

I tried changing the sequentialmodel as you said but it did not work, maybe I'm doing something wrong.

 

First of all, does it matter which folder you copy the sequentialmodel.seq to. There was not a folder called User under \Conponents (see PIC1), so I created one and saved the file in there.

 

I opened the file and PIC 2 is the screen that came up and I doubled clicked at the top on - Test UUT's (highlited blue) to get the properties.

 

I then selected the Model tab and ticked the box marked - Allow Interactive Execusion of Entry Point (I asume when you wrote 'Allow Interface Execution of Entry Point'  that was a mistake, as it was very similar (unless this is why it doesn't work)  (PIC 3)

 

I then saved it and closed the whole thing and opened my test routine, selected a test and went to - Execute, Run Selected Steps Using... and there was only Single Pass as an option.

 

Can you see where I went wrong?

 

Thanks

 

Chris

0 Kudos
Message 6 of 11
(5,094 Views)

Hi,

 

Just thought that I would add that I am using TEST STAND 4.1, in case this is different to the one you are using...

 

Thanks

 

Chris

0 Kudos
Message 7 of 11
(5,089 Views)

Hi Chris,

 

for 4.1 the User folder is now the Shared Documents locations. In the National Instruments\TestStand 4.1 folder you should find a shortcut to the TestStand Public folder. Copy the contents of the \Components\Models to <TestStand Public>\Components\Models and is not called User anymore.

 

Once you done that launch SeqEditor.

Now when you launch the SeqEditor it will load the SequentialModel.seq from <TestStand Public> area.

 

You are probably not seeing the changes take affect because the User version didn't exist when launching the SeqEditor before and therefore still had the unchanged Sequential Model.seq in memory.

 

Make your changes  and save the file. Now open a sequence file and select a step. You should see the two Entry Points in the Run Selected Step Using....

 

You are right it should be Interactive..

 

Sorry about the confusion. Still working with the old folder layout and forgot about the new layout.

 

Regards

Ray Farmer

Regards
Ray Farmer
0 Kudos
Message 8 of 11
(5,072 Views)
Solution
Accepted by topic author beam7
Thanks, that's excellent.
0 Kudos
Message 9 of 11
(5,061 Views)

Hi Ray,

 

I have been asked to add some text to the result sheet, explaining why the UUT has had the one test re-run but only require the text to be inputed by the user when they select 'Run Selected Tests Using...'  and not when a normal test is run (I hope that makes sense).

 

cheers

 

Chris

0 Kudos
Message 10 of 11
(5,051 Views)