09-10-2007 02:06 AM
09-10-2007
04:14 PM
- last edited on
04-16-2025
10:33 PM
by
Content Cleaner
09-11-2007 01:41 AM
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?
09-11-2007 01:44 AM
Hi Sam...
and also i dont have the course manual you are talking about. please suggest how to get one?
09-11-2007
10:26 AM
- last edited on
04-16-2025
10:35 PM
by
Content Cleaner
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,