I'm using Measurement Studio in VB and have open the sample for continuous thermocouple analog in operation. I am basically trying to alter that code to read multiple channels ... However, my problem seems to be in the actual acreation of multiple channels. I have created an AIChannelCollection called myChannels, but now I can't seem to add channels to it as the sample did (in adding one).
Simply put ... I can't do myChannels = myTask.AIChannels.CreateThermocoupleChannel("SC1Mod2/ai0:3" ...) or anything of the sort - I also tried a for loop since the command appears to only create one channel at a time ... but still with no luck.
Any suggestions? I've got a hunch it has something to do with AICh
annelCollection being an array, although (even in my for loop attempt at adding) I can't seem to index it.
Thanks for any help.
Brett