NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

using operators how to compare each element from 2 arrays using foreachloop and should be used as a subsequence

hi,

 

I would like to have some solution...could you ls give me the solution

 

requirement is as follows

 

Array 1   [ A_Temp,

               B_Temp,

               C_Oil Pressure,

               D_Oilpressure,

               ......

               ......]

 

Note : A_Temp, B_Temp,C_Oil Pressure,D_Oilpressure all these parameters will be getting  numerical values (dynamically) from the simulink models  

 

Array 2   [A_Temp_1,

               B_Temp_2,

               C_Oil Pressure_3,

               D_Oilpressure_4,

               ......

               ......]

 

Note : A_Temp_1, B_Temp_2,C_Oil Pressure_3,D_Oilpressure_4 all these parameters will be getting  numerical values (dynamically) from the simulink models

 

So my question is:

 

How to verify the following condition using Foreachloop

 

                             A_Temp            >= A_Temp_1

                             B_Temp            >= B_Temp_2

                             C_Oil Pressure  >= C_Oil Pressure_3 

 

After creating this seq, i need to use this subseqence in main file so that user can add parameters                             

 

My teststand version is TS 4.2.1.83

0 Kudos
Message 1 of 3
(3,318 Views)

You can try using the Numeric Limit step type inside of your for each loop by usign one array to set the limits to compare with other array serving as your data source.

 

Any sequence can be used as a subsequence by using the Sequence Call step. You can call a sequence from the current or a different sequence file. Please refer to this Help article for more information.

Regards,

Anjelica W.
National Instruments
Product Marketing Manager
FlexLogger and TestStand
0 Kudos
Message 2 of 3
(3,296 Views)

Hi

 

did you opened the example in this thread?

http://forums.ni.com/t5/NI-TestStand/How-do-I-iterate-using-elements-of-an-array-in-TestStand/td-p/1...

 

Do you need a variable name in your Array?

 

Do you create the Array dynamically?

 

Regards

 

Juergen 

 

 

--Signature--
Sessions NI-Week 2017 2016
Feedback or kudos are welcome
0 Kudos
Message 3 of 3
(3,291 Views)