07-20-2022 03:08 PM
How can I add testsocket index to variable in TestStand.
For different socket the variables will be -
FileGlobals.Url0, FileGlobals.Url1, FileGlobals.Url2 ....etc.
Tried using FileGlobals.Url+Str(RunState.TestSockets.MyIndex) in step settings but it does not pass in the value FileGlobals.Urlx, just sends FileGlobals.Url.
Thanks!!
Solved! Go to Solution.
07-20-2022 06:18 PM
FileGlobals.GetValStr("Url" + Str(RunState.TestSockets.MyIndex), 0x0, 0x1)
Change to GetValNum or GetValBool for different datatypes.... I'm guessing string because it's a URL.
Hope this helps,
07-20-2022 06:19 PM
Other option is to put them all in an array and then just index the array off of MyIndex.