Hi,
I have a channel list that will be in the representation like the following "0, 1, 2, ... 14, 15" in string format. Of course i won't always be using all the channels so sometimes it might be "2, 5, 15" or "15" or "". It all depends on the channels that I need to use. Anyways, using TestStand I need to run a for loop for that runs through the channels and finds the matching string in the channel list then run some more code....Like so:
ChnlList = "1, 2, 3, 11, 15"
For(Chnl = 0, Chnl <=15, Chnl ++)
{
If(Chnl is in ChnlList)
{ Then execute this code}
}
I hope that makes since. I've tried to take the ChnlList string and converting it to decimals that i could use but can't seem to get it into the right format.
My orginal plan was to convert Chnl to a string and search for that string in the ChnlList in TestStand, but that wouldn't work becasue if Chnl = 1 and ChnlList = 15 then it would execute.
So i moved onto Labview to try and do some converting of that string but I'm struggling to get it into something I could use. Any of you smart guys have any ideas?
Thanks,
also i'm using LV 8.2, TS 3.5