NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple string value test

Hello,

I would like to compare multiple strings in a same step. In a "string value test" step, you can only compare one string. To sum up, I would like to have a "Multiple String Value Test" step. There is already a "Multiple Numeric Test", why is not there a same step with strings?

Ch. PMR
0 Kudos
Message 1 of 2
(3,900 Views)
Hi,
there's two options.
1) you could modify your step to run as a loop, and then flick through a list of strings to compare, or
2) write your own custom step type. This would involve making a piece of code that took in the list of strings to compare against, and how you wanted to compare them, and then return a pass / fail or whatever you wanted to use for a flag to say how the comparison went.
Have a look at the following URL for more information on creating custom step types.

http://digital.ni.com/devzone/devzone.nsf/webcategories/6F8978B74F0425D7862567F3001CF97F?opendocument&node=DZ52236_US

Hope this helps

Sash.
// it takes almost no time to rate an answer Smiley Wink
Message 2 of 2
(3,900 Views)