Property: ChannelGroup for CalculationChannel <Data>
- Updated2024-09-12
- 1 minute(s) read
Internal Data > Properties > Property: ChannelGroup for CalculationChannel <Data>
Property: ChannelGroup for CalculationChannel <Data>
Specifies the channel group which contains a specific calculation channel in the script interface for internal data.
Set oChannelGroup = Object.ChannelGroup
Object | CalculationChannel <Data> Object with this property |
oChannelGroup | ChannelGroup <Data> Returned object |
The following example generates a calculation channel from a formula with the unit “m/s” and displays the name of the channel group which contains this calculation channel:
VBScript | Python |
Dim oMyCalculationChn Set oMyCalculationChn = Data.Root.ChannelGroups(1).Channels.AddCalculationChannel("Result", "=Speed * 2", "m/s", 1) Set oMyCalculationChn = Data.Root.ChannelGroups(1).Channels.AddCalculationChannel(sMyCalculationReference, 1) Call MsgBox(oMyCalculationChn.ChannelGroup)