DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

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
ObjectCalculationChannel <Data>
Object with this property
oChannelGroupChannelGroup <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:

VBScriptPython

 

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)
In This Section
Was this information helpful?