From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
Since DIAdem 2014 there is the AddElementList method (see the online help for that topic).
set oList = data.CreateElementList
oList.Add(xxx) ' add one Data-Element to the collection
oList.AddElementList(yyy) ' add one Data-Element-List to the collection
Starting with DIAdem 2015 the method has an additional optional parameter selecting between different ways to merge the lists.
Marcus
Hi
I have create an Element List filtering some channels of a group
Dim mSyncLst, iGrp Set iGrp = Data.Root.ActiveChannelGroup Set mSyncLst = Data.GetChannels(iGrp.Name & "/ABC*") 'List With Several Channels
I would like to add to the mSyncLst the channels containing DEF. e.g. Data.GetChannels(iGrp.Name & "/DEF*"), which also contains several channels. Using the method Add mSyncLst, only allows to append one channel each time.
Since DIAdem 2014 there is the AddElementList method (see the online help for that topic).
set oList = data.CreateElementList
oList.Add(xxx) ' add one Data-Element to the collection
oList.AddElementList(yyy) ' add one Data-Element-List to the collection
Starting with DIAdem 2015 the method has an additional optional parameter selecting between different ways to merge the lists.
Marcus