NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

TestStand_Multiple Passfail Test

Hi all...

I am a beginner in NI TestStand.

I just want to know whether it is possible to create a custom Step so that it tests multiple passfails in a single Step.

Thanks in advance.
0 Kudos
Message 1 of 5
(3,710 Views)
Hi,
 
Are you talking about a step that is similar to the Multiple Numeric Limit Test step?  Except instead of numeric limits it is a Multiple Pass/Fail Test step? 
 
I recommend reading Chapter 9 in the TestStand course manual if you happen to have a copy of it.  It talks about TestStand Types and creating custom steps.  This is the course manual for TestStand 3.5 though. 
 
 
If you could be more specific with what you want to achieve I could probably help you out a lot more.... who knows? The desired functionality may already exist in TestStand.
 
In short the answer is yes.  But it will take some effort on your part if you start from scratch or from copying an existing step.
 
Regards,
jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 2 of 5
(3,679 Views)

Hi Sam...

 

nice to see your message in less than a day.

 

my requirement is just to have a boolean type instead of numeric of Multiple Numeric Limit Test.

And also to be specific i just want to know whether to start customizing PassFail Test step to multiple pass fail test step

or

customising multiple numeric limits test step to pass fail test step.

 

which one is easier?

 

 

0 Kudos
Message 3 of 5
(3,662 Views)

Hi Sam...

 

and also i dont have the course manual you are talking about. please suggest how to get one?

 

 

0 Kudos
Message 4 of 5
(3,661 Views)
 

Hi i like,

You can recieve the manuals by taking the course. Here is NIs training website: https://www.ni.com/en/shop/services/education-services.html  Or you can contact your local Sales Rep to get one.

I actually came accross this today but the user manual is more detailed: https://www.ni.com/docs/en-US/bundle/322016b/resource/322016b.pdf  Look at chapter 9.  There is a section about creating custom steps.  It's very similar to the course manual except it doesn't contain the exercises.

The biggest problem you will have with copying the Multiple Numeric Limits Test (which if you are going to mimic it except have booleans) is that the MultipleNumericLimitsTest step has substeps that evaluate each value in the returned array.  The substeps are calling into the CommonSubsteps.dll which is located in your <TestStand>\Components\User\StepTypes\CommonSubsteps or <TestStand>\Components\NI\StepTypes\CommonSubsteps.  If it's in NI copy it to the User folder.  TestStand looks there first and if it doesn't find it there then looks in the NI folder.  You'll find this alot throughout the TestStand subdirectories.

The source code for the dll is available in that same folder so you can edit it.  You may have to make a new function similar to the DoMultiNumericMeasEvaluation function.  Of course this will require a lot unless you are confident in programming.

The other option would be to copy the PassFailTest and open it's properties.  Inside the properties there is a tab called Default Expressions.  The Status Expression is the expression which determines if a step passes or fails.  You could change this status expression to contain an expression that evaluates an array of booleans.  The only problem is knowing how many elements are in the array beforehand.

Option C-  In your code module evaluate the booleans and return one and just use the PassFailTest.  This seems to be the simplest.  If you are going to use this step a lot then this is not the best method.  If you only need to do it once then this is the best method.

Hope that helps,

 

 

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
0 Kudos
Message 5 of 5
(3,639 Views)