Suppose that in my Data Portal there is a group (e.g. "Group Test") containing a time channel ("Group Test/time") and several XY Channels ("Group Test/Var00", "Group Test/Var01", etc.)
I would like to create a new XY Channel associated to "Group Test/time". It should be added to the same Group. This new Channel of course hs the same length as all the other channels of that group.
I am able to create a channel, but I cannot associate to the time reference
# Create Channel. OK
dd.ArrayToChannels(outX, ['Group Test/calcChan'])
# Associate calculated channel with X-Reference. KO
dd.Data.Root.ChannelGroups('Group Test').Channels('calcChan').XRelation = 'time'
Running the script above, I get the error message "AttributeError: Property '<unknown>.XRelation' can not be set."
Is there a way to do it? Many thanks