06-14-2017 04:17 AM
Can someone help me with procedure to develop a custom step with Combination of String Value & Numeric Limit Test
06-14-2017 09:15 AM
What have you tried so far? What issues are you seeing?
Have you seen this document: http://www.ni.com/product-documentation/8300/en/
What you want to do isn't as trivial as it would seem. For instance, both the numeric and string test step types have similar subproperties (i.e. DataSource, Comp, CompExpr, UseCompExpr, etc...). The Edit substeps for both step types are looking at those subproperties and manipulating them based on what the user selects in the Edit tab on the step settings window. So even if you created a new step type and just merged both steps you would still need to go change the edit substeps to not allow this. I'm positive you should have the source code for that though, it is in C++. I'd recommend you be very careful if you go down this road as you could screw up the default step types.
Hope this helps,
06-14-2017 09:46 AM
Joe Spinnozzi pretty much nails it when he asks:
"Consider modifying a step type or creating a new custom step type in the following situations:
Are you going to use this Custom Step Type repeatedly? Or do you just need to evaluate a String and a Numeric in a single step once?
Should it return a Pass/Fail (either the string was incorrect or the numeric was out of limits) or should it have results for everything? (like multiple numeric limit)
Regards,
Charlie Rodway | Principal Software Engineer | Certified TestStand Architect (CTA)
Computer Controlled Solutions Ltd | NI Silver Alliance Partner | GDevCon#1 Sponsor