09-01-2023 04:25 PM
Hey guys,
I'm working with about 150~ numeric channels where the names of channels will change occasionally...
I'm using a long command to convert all of them into waveform:
Call ChnConvertNumericToWaveform("[1]/Time (hh:mm:ss)", "'[2]/E1 Engine Speed'....149 other channels....)
Is there anyway to convert all channels in a group to waveform so I can avoid the script errors when the names of channels do change?
Thanks!
Solved! Go to Solution.
09-04-2023 02:31 AM
Hi Aroengines,
you can use an ElementList to collect the channels to convert to waveforms. See my short example below.
dim i
dim channelList
set channelList = Data.CreateElementchannelList
for i = 2 to Data.Root.ChannelGroups(1).Channels.Count
channelList.Add(Data.Root.ChannelGroups(1).Channels(i))
next
Call ChnConvertNumericToWaveform("[1]/Zeit", channelList, False, "WfXRelative")
Regards
Rainer