DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Convert a group of numeric channels to waveform

Solved!
Go to solution

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!

0 Kudos
Message 1 of 2
(558 Views)
Solution
Accepted by topic author Aroengines

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

Message 2 of 2
(476 Views)