DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Method: GetReference for ComplexChannel <Data>

Method: GetReference for ComplexChannel <Data>

Returns the channel reference of a complex channel in the script interface for internal data. Use this method when you are working with data objects and need channel references for calculations or for layout configurations.

sGetReference = Object.GetReference(ReferenceType)
ObjectComplexChannel <Data>
Object with this method
ReferenceType
 0
eReferenceDefault 
Channel reference of the DIAdem setting
 1
eReferenceNameName 
Group name/Channel name
 2
eReferenceIndexName 
[Group index]/Channel name
 3
eReferenceNameIndex 
Group name/[Channel index]
 4
eReferenceIndexIndex 
[Group index]/[Channel index]
sGetReferenceString
Receives the channel reference.

The following example displays the name of the first channel of the default channel group in the syntax that the ExtendChnName variable specifies:

VBScriptPython

 

Dim sMyChannelReference, oMyGroup
Set oMyGroup = Data.Root.ActiveChannelGroup
sMyChannelReference = oMyGroup.Channels(1).GetReference(ExtendChnName)
Call MsgBoxDisp (sMyComplexChannelReference)
In This Section
Was this information helpful?