NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Step with Combination of String Value & Numeric Limit Test

Can someone help me with procedure to develop a custom step with Combination of String Value & Numeric Limit Test

0 Kudos
Message 1 of 3
(2,648 Views)

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,

jigg
CTA, CLA
testeract.com
~Will work for kudos and/or BBQ~
Message 2 of 3
(2,618 Views)

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:

  • Built-in step types do not meet your needs.
  • Test specifications include common, repetitive actions that must occur before or after code modules, such as setting up the step or analyzing the results.
  • You want to simplify the user experience for configuring steps with the help of a user interface.
  • You want to export a common action for other groups, companies, or customers."

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

Message 3 of 3
(2,612 Views)