DIAdem Help

Method: GetReference for Channels <Data>

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

Method: GetReference for Channels <Data>

Returns the channel reference of channels in a list, 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)
ObjectChannels <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 channel list with references to all the channels in the default channel group, in the syntax that the ExtendChnName variable specifies:

VBScriptPython

 

Dim sChannelList, oMyGroup
Set oMyGroup = Data.Root.ActiveChannelGroup
sChannelList = oMyGroup.Channels.GetReference(ExtendChnName)
Call MsgBoxDisp (sChannelList)

Log in to get a better experience