DIAdem Help

Method: GetReference for BaseChannel <Data>

  • Updated2024-09-12
  • 1 minute(s) read

Method: GetReference for BaseChannel <Data>

Returns a channel reference of a channel in the script interface for internal data.

sGetReference = Object.GetReference(ReferenceType)
ObjectBaseChannel <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 (sMyChannelReference)