01-05-2024 07:16 AM
Hi, I have a script that can Integrate a channel from the data portal. The newly created channel gets the original channel name accept for the addition "_vel" when integrating an acceleration.
However, if the user already has a channel with the same name, I don't want the script to type over that channel but instead add "_2" to the channel name instead.
I have searched for a way to go through the channel names in the data portal and find out if the integrated channel name is already existing but I have not found any simple solution.
There should be a Function for this, like CnnNameExist() or similar...
Thanks in advance!
/Mikael
Solved! Go to Solution.
01-08-2024 09:15 AM
Hi Mikael,
the syntax you're looking for is Data.Root.ActiveChannelGroup.Channels.Exists("Channel_vel").
Greetings,
Vassili