NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

why not find/replace the expression of value in a array?

Hello All,

      i want to search a expression of value and replace it,The value is a element in a array as input controller.

      But the teststand can not find the expression.and i have to replace it one by one.So messy.if i search the other expressions not in array.it is right.

      Can you tell me how to fix it?

      Thanks a lot.

 

BR

Johnny

0 Kudos
Message 1 of 5
(3,384 Views)

Hi,

 

if you want to search and replaced for something that contains within an array of data. First you have to obtain that data, starting at the first element and index through the array until you have found what your are looking for and replaced it. This seems to be standard what every the programming language so I am not sure what you expect TestStand to do differently.

 

 

Regards
Ray Farmer
0 Kudos
Message 2 of 5
(3,379 Views)

There is a find and replace feature in the TestStand sequence editor. Press Ctrl+F or select the "Find/Replace" menu item under the edit menu. It should work fine for array elements. If you are having problems getting this feature to work in your use case, please tell us what version of TestStand you are using and please attach an example sequence file and/or a detailed description of how to reproduce the problem.

 

Hope this helps,

-Doug

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

Hello All,

     Thanks for your reply.I fixed it.

     In the find/replace dialog.if you selected "match case" and "regular expression",TS will not find out the expression about the elements'value of a array that you want.

 

BR

Johnny

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

The "match case" and "regular expression" settings should not affect which values are searched, though it might cause you to not get a match depending on what your regular expression is.

 

-Doug

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