07-31-2019 06:07 AM
Hello,
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:
Dim i
For i=1 to ChnNoMax
Call ChnOffset("[1]/KonsC_2_Volumen_K2_ml[ml]","[1]/KonsC_2_Volumen_K2_ml[ml]Offset",0,"first value offset")
Next
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?
Thank you
Solved! Go to Solution.
07-31-2019 10:19 AM
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
08-01-2019 05:29 AM
It works very well. Thank you.