NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with pass/fail expression.

I've got an array of strings parameter called Parameters.CAN_Switch_Channel_Name[0] (equal to a string) which gets passed into a subsequence.  During run time when this subsequence gets called, a new parameter gets created which gets named the string which is passed in through Parameters.CAN_Switch_Channel_Name[0].  So for instance if Parameters.CAN_Switch_Channel_Name[0] is equal to CC_VS_Spd.CC_Set_Switch, then a parameter will get created at run time called: Parameters.CC_VS_Spd.CC_Set_Switch.  I want to create a pass/fail expression to check the new parameter.  I am not sure how to build the expression.  I tried:
 
Parameters."Parameters.CAN_Switch_Channel_Name[0]"  This didn't work!
Parameters.(Parameters.CAN_Switch_Channel_Name[0])  This didn't work either!
 
I need a way of pulling out the value in Parameters.CAN_Switch_Channel_Name[0] and appending it to Parameters. to reference the parameter created at run time.
 
Any ideas?
0 Kudos
Message 1 of 2
(2,965 Views)
Hi,
 
 
I read this a few times now, and just when I think I got ......
 
In your SubSequence you have a parameter which is called CAN_Switch_Channel_Name[] which is an array of strings.
Now do you wish to change the Name of this string array from CAN_Switch_Channel_Name to CC_VS_Spd.CC_Set_Switch or is it that the contains of the array is set to eg
 
CAN_Switch_Channel_Name[0] = "CAN_Switch_Channel_Name to CC_VS_Spd.CC_Set_Switch"
 
and is this done in the Sequence or before the sequence ist called.
 
Maybe a small example of what you are trying to achive, even if its not working may help.
 
Regards
Ray Farmer
Regards
Ray Farmer
0 Kudos
Message 2 of 2
(2,957 Views)