Hi, hope someone can give me some advice on this one.
I have 2 seperate 1D string arrays returning to Station Globals in Teststand 4.0 from seperate LAbview VIs.
The first array contains the names of LIN signals (which all stay the same for the length of test)
The second array contains the current state of the LIN signals ( which can change as the DUT activates its functionality )
For example, position 2 of the first array contains the string "TrunkLidState".
And position 2 of the second array can change between the following, "open", "close"
What I need to do is test for a status of any of the signals in such a way that I can say :
if Trunklidstate = "open" then Pass
else
if Trunklidstate = "closed" then Fail
rather than going :
if Stationglobals.LIN_Array[1]= "open" then Pass
else
if Stationglobals.LIN_Array[1]= "closed" then Failed
because "Trunklidstate" may not always be in the second element of the array.
Thanks