Channels and Channel References

DIAdem 2018 Help


Edition Date: June 2018
Part Number: 370858P-01
View Product Info

DOWNLOAD (Windows Only)


DIAdem 2017 Help
DIAdem 2018 Help
DIAdem 2019 Help
DIAdem 2020 Help
DIAdem 2020 SP1 Help

DIAdem stores data in channels. To access channel data, you need unique channel references in dialog boxes and scripts. For example, to compare channels from different channel groups, you must give the channels unique names. If you select channels in a dialog box or record commands in a dialog box, DIAdem automatically references the correct channel.
The default channel reference consists of the group index and the channel name. To modify the default setting, select Settings»DIAdem Settings»General. You also can reference channels with any combination of the group name or the group index with the channel name or the channel index. The channel index is the position of the channel in the group, and the group index is the position of the group in the data set.

[Group index]/Channel nameDefault setting. Use this setting if you do not know the names of the channel groups or if the names might change, whereas the names of the channels to be compared are the same in different channel groups. The order of the channels in a group can change.
[Group index]/[Channel index]Use this setting if you do not know the names of the channel groups and of the channels, or if the names can change, but the indexes of the channels to be compared are the same in different channel groups. If you do not specify a group index, DIAdem uses the default group.
Group name/[Channel index]Use this setting if you do not know the names of the channels, or if the names can change, but the indexes of the channels to be compared are the same in different channel groups. The order of the groups can change.
Group name/Channel nameUse this setting if the channel groups have different names and the channels have different names, and you need both names for a unique channel reference. The channel index and the group index can be different. The order of the channels in a group and the order of the groups can change.
/Channel names
[]/Channel names
/[Channel index]
[]/[Channel index]
Use the setting without specifying a group name or group index in order to access channels from the default group. In DIAdem VIEW you cannot access the default group with this syntax.
The following example saves the result of the calculation in the default group:
Call Calculate("Ch(""/Result"") = Ch(""[1]/[1]"")*10")
Channel numberUse this setting if the channel references must be compatible with earlier DIAdem versions and you are sure that the order of channel numbers has not changed. The channel names are irrelevant.
The channel numbers can change, for example, if you delete channels.
Note For more information about naming data sets, channel groups, channels, and custom properties, refer to the Name Conventions page.
Note DIAdem uses unique names for channel groups, so that the name of a channel group cannot occur twice. If you load a data set into the DIAdem Data Portal and the name of a channel group already exists, DIAdem appends a number to the new group name to distinguish between the channel group names. A channel name must also be unique within a channel group.

The following table illustrates the relation between the structure view in the Data Portal and the group index combined with the channel name, the group name combined with the channel name, and the assignment to possible channel numbers. The indexes and names are clearly structured in the Data Portal hierarchy. However, channel numbers can be assigned to any channels. Use the indexes and names of the groups and channels in layouts and scripts.

Data Structure[Group Index]/Channel NameGroup Name/Channel NamePossible
Channel Numbers

Dataset

  Group_A

     Channel_A  

      Channel_B  

     Channel_C  

  Group_B

     Channel_A  

      Channel_B 

     Channel_C  

  Group_C

         Channel_A  

          Channel_B 

         Channel_C  

 

      "[1]/Channel_A"     

      "[1]/Channel_B"     

      "[1]/Channel_C"    

      "[2]/Channel_A"  

      "[2]/Channel_B"  

      "[2]/Channel_C"  

      "[3]/Channel_A"    

      "[3]/Channel_B"

      "[3]/Channel_C"   

 

  "Group_A/Channel_A"   

  "Group_A/Channel_B"   

  "Group_A/Channel_C"   

  "Group_B/Channel_A"   

  "Group_B/Channel_B"   

  "Group_B/Channel_C"   

  "Group_C/Channel_A"   

  "Group_C/Channel_B"   

  "Group_C/Channel_C"   

 

7

8

9

1

2

3

6

5

4

 

WAS THIS ARTICLE HELPFUL?

Not Helpful