I have 111 groups in my Diadem-project. In every group there are the same channels. Now I want to offset a certain channel in all groups. For this task I wrote a small script:
For i=1 to ChnNoMax
Call ChnOffset("/KonsC_2_Volumen_K2_ml[ml]","/KonsC_2_Volumen_K2_ml[ml]Offset",0,"first value offset")
Now I need a command how I can count up the channel number that the offset is done automatically for the specific channel in all groups.
Has somebody an advice?
Solved! Go to Solution.
Dim i, ChannelName ChannelName = "The Specific Name of the Channel" ' maybe KonsC_2_Volumen_K2_ml[ml] For i = 1 To Data.Root.ChannelGroups.Count Step 1 Call ChnOffset("[" & i & "]/" & ChannelName & "","[" & i & "]/" & ChannelName & "", 0, "first value offset") Next
Now change the specific channel name that you need